1 | <HTML><HEAD><TITLE>Javascript for Parameterizing HTML</TITLE> |
2 | <SCRIPT LANGUAGE="JavaScript" > |
3 | <!-- A Conventional comment to hide JavaScript from old browsers |
4 | var imagewidth=600; // These could be changed by form input or some |
5 | var imagefile="npac.gif"; // computation based on size of window etc. |
6 | //scriptend--> |
7 | </SCRIPT></HEAD> |
8 | <BODY> ......Bunch of Normal Stuff |
9 | <SCRIPT LANGUAGE="JavaScript" > |
10 | <!-- A Conventional comment to hide JavaScript from old browsers |
11 | document.writeln('<img align=top width=' + imagewidth + ' src="' + imagefile + '" >'); |
12 | //scriptend--> |
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 |