Gregg
10-02-2002, 04:17 AM
I have yet to find this in the online help, I am new so I am thinking this should work, but no proof.
I have inserted external scripts into my page. But I would like to do this with a variable. So I can change what script is inserted depending on what action the user takes.
currently my code looks like this:
var logo="logo.js"
<script src="+logo+">
</script>
I know the variable is valid becuse I have inserted the variable using a document.write
Of course I don't know if this is the correct way to approach this. But it seems logical.
Any help would be greatly appreciated.
thanks - Gregg
I have inserted external scripts into my page. But I would like to do this with a variable. So I can change what script is inserted depending on what action the user takes.
currently my code looks like this:
var logo="logo.js"
<script src="+logo+">
</script>
I know the variable is valid becuse I have inserted the variable using a document.write
Of course I don't know if this is the correct way to approach this. But it seems logical.
Any help would be greatly appreciated.
thanks - Gregg