Forum Moderators: open
Shoot your ideas please.
I'd take the general idea of using an external .js file, but I would put the document.write() statements in a function:
function writeDiv(){
document.write('.......');
}
Then, in the HTML file itself, you need to write:
<script>
writeDiv();
</script>
However, this unreliable to say the least. A far more workable solution would be to use a client-side script.
...
SOME HTML
...
<script language="JavaScript"> IsLoaded = 1;</script>
...
SOME HTML
...
We used this technique on the our web site for a main menu layer changing. <snip>
[edited by: papabaer at 12:18 pm (utc) on June 23, 2002]