<head>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title>Question 1</title>
<link rel="stylesheet"
media="screen" href="default.css" />
<script type="text/jasvascript"
language="javascript" src="standard.js">
</script>
</head>
(6+3+2+2+2=15 marks)
(5+3+2=10 marks)
The following frameset diagram has a title bar (source titlebar.html) that occupies 15% of the vertical space of the window, a list of internal navigation links (source - navbar.html) and a destination frame (initial source - start.html) which occupy 20% and 80% of the horizontal space respectively.
|
Title Bar |
|
|
Navigation Bar |
Destination Frame |
Clicking links from the navigation bar will cause the page to be loaded into the destination frame.
(6+2+2=10 marks)
Supply well written XHTML code to generate the following Web Page. The page
contains an image ‘feral.jpg’
(180x120pixels). The email address is
n.mcewan@latrobe.edu.au and the ‘home’,
‘history’
‘photos’
and ‘ movies’ links are hypertext
links to feralracing.html,
racehistory.html and two named anchor
tags (photos &
movies) within
multimedia.html respectively. The
NHRA online link is a hypertext
link to http://nhra.com.
This web page makes use of
only one table and has a background image ‘
yellowCudaBG.jpg’.
NOTE: This page does not contain any CSS definitions or JavaScript code.
There is no need to include the XML declaration, the DTD declaration or
reference to the XML namespace in your code.
d
(20 marks)
Given the following Cascading Style Sheet definitions, answer the
following questions.
(1+5+2+3+4=15 marks)
Write a complete web page which requires the user to input a month number. When the user presses a button labelled " determine month number", the name of the month will be displayed in a box on the current webpage. Should the user enter an inappropriate month number, an appropriate message will be displayed in the box where the month name appears. If there is no entry for the month number when the button is pressed, a dialog box must appear which indicates that an entry must be made.
NOTE: This web page is not processed by another web page
There is no need to include the xml declaration, doctype declaration or reference to the XML namespace in your code.
d
(15 marks)
Write the Javascript necessary to dynamically generate a table containing three columns. The first column has a numeric value (X), the second column has the inverse of the value (ie 1/X), and the third column has the square root of the the value in the first column (ie Math.sqrt(X)). Assume that the number of decimal places is determined by Javascript.
There is no need to include the xml declaration, doctype declaration or reference to the XML namespace in your code.
| X | Inverse of X | Square Root of X |
|---|---|---|
| 1 | 1.000 | 1.000 |
| 2 | 0.500 | 1.414 |
| 3 | 0.333 | 1.732 |
| 4 | 0.250 | 2.000 |
| 5 | 0.200 | 2.236 |
| 6 | 0.167 | 2.449 |
| 7 | 0.143 | 2.646 |
| 8 | 0.125 | 2.828 |
| 9 | 0.111 | 3.000 |
| 10 | 0.100 | 3.162 |
(15 marks)