1 | <HTML><HEAD><TITLE>Parameterized HTML</TITLE> |
2 | <SCRIPT LANGUAGE="JavaScript"> |
3 | <!-- A comment to hide JavaScript from old browsers |
4 | var imagewidth=600; // Variables could be input |
5 | var imagefile="npac.gif"; // in a form or computed... |
6 | // end script hiding --> |
7 | </SCRIPT></HEAD> |
8 | <BODY> É Bunch of normal stuff |
9 | <SCRIPT LANGUAGE="JavaScript" > |
10 | <!-- A comment to hide JavaScript from old browsers |
11 | document.writeln('<img align=top width=' + imagewidth + ' src="' + imagefile + '" >'); |
12 | // end script hiding --> |
13 | </SCRIPT> |
14 | É Yet more normal stuff |
15 | </BODY></HTML> |
16 | Note single quotes used for JavaScript, double quotes for HTML -- can use \' if necessary to hide special meaning from JavaScript |