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