You are here: irt.org | FAQ | JavaScript | Image | Q85 [ previous next ]
Try something like this:
<script language="JavaScript"><!-- var color = 'teal'; var picture = 'smile.gif'; document.write('<body bgcolor="' + color + '">'); document.write('<img height="100" width="200" src="' + picture + '">'); //--></script>