Hi all
Being a relative newbie to javscript (though I understand the syntax thanks to PHP/AS) I don’t really understand how to simply print something out in javascript mid way inside a HTML document.
For example, I have the path to a flash file which requires some dynamic input, i.e. file.swf?var_for_flash=something
I’ve tried setting the flash file path as:
javascript:document.write(‘imgs/nav.swf?var=’+window.myVar)
Have also tried simply setting the flash file path as a javascript function which uses document.write to specify the path, but no joy either..
In short, how can I use a var, established earlier in the page, further down for such a use as this? Hope this makes sense.
Thanks in advance.