In the framed box at the bottom of the page is the code
that generates the page scriptfivedrill.html.
The first eight lines, seen below
| <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.51 (Macintosh; U; PPC) [Netscape]"> <title>Quiz on the Symbols of Elements Using Script Five</title> </head> <body text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#551A8B" alink="#0000FF" > |
are necessary to generate a page in HTML. If you use your own editor to create your page, this code will change. I have underlined the line that creates the title of the page.
Likewise you must end the page with </body> </html>
Notice the <form> command is included before the javascripts and the <form> after the last one. I have used the same color coding below as in the overall listing of the javascripts found here.
Notice how the variables (the names that the buttons display
and the preprogrammed responses are in red,
while the preprogrammed answer is in blue.
Notice how we have simply copied the script found
here for Script Five, five times, added some
text and formatting commands ( <br>), and changed the variables
that define the responses and the answer.
| <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.51 (Macintosh; U; PPC) [Netscape]"> <title>Quiz on the Symbols of Elements Using Script Five</title> </head> <body text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#551A8B" alink="#0000FF" > <form> <center><big> Quiz on the symbols of the elements.</big></center><br><br> Click on button and, at the prompt,
give the element that corresponds to the abbreviation
1. <input type="button"
value="Pb. "
<br><br> 2. <input type="button"
value="Au. "
<br><br>
3. <input type="button"
value="Ag. "
<br><br> 4. <input type="button"
value="Cu. "
5. <input type="button"
value="Fe. "
<br><br> </form>
</body>
|
Copyright 1999 Jean Alvares