robodan
07-15-2004, 04:40 AM
Dear all,
First of all, let me apologize for sounding a bit on the confused side. I am new to this forum and did not realise that there was a separate JavaScript section. As a result I have gone and posted my original message to the DHTML section, although this could also be said to relate to my question.
Basically, I have made a very minor alteration to a flash detection script that allows it to receive a variable from any page that is linked to it. The idea is that it can then be used to run multiple flash movies of the same dimensions in a ‘css-like’ fashion. To set the variable on the host page I have to declare it with a script tag and then use a separate tag to link to the detection script. Although this works (in a fashion) I am of the thinking that there must be a 'cleaner' way of achieving this.
So far I have looked into several possible solutions including adding a search string to the source attribute of the linking tag, and using the onLoad event handler to set and pass the variable - all to no effect. As I have very limited experience with JavaScript I was wondering if anyone could tell me how variables are usually passed to linked scripts (I have assumed that this must me possible)? If anyone could shed some light on my predicament I would be very grateful, as so far my frantic Googleing has produced only slim results.
For further reference;
http://www.webdeveloper.com/forum/showthread.php?s=&threadid=39438
First of all, let me apologize for sounding a bit on the confused side. I am new to this forum and did not realise that there was a separate JavaScript section. As a result I have gone and posted my original message to the DHTML section, although this could also be said to relate to my question.
Basically, I have made a very minor alteration to a flash detection script that allows it to receive a variable from any page that is linked to it. The idea is that it can then be used to run multiple flash movies of the same dimensions in a ‘css-like’ fashion. To set the variable on the host page I have to declare it with a script tag and then use a separate tag to link to the detection script. Although this works (in a fashion) I am of the thinking that there must be a 'cleaner' way of achieving this.
So far I have looked into several possible solutions including adding a search string to the source attribute of the linking tag, and using the onLoad event handler to set and pass the variable - all to no effect. As I have very limited experience with JavaScript I was wondering if anyone could tell me how variables are usually passed to linked scripts (I have assumed that this must me possible)? If anyone could shed some light on my predicament I would be very grateful, as so far my frantic Googleing has produced only slim results.
For further reference;
http://www.webdeveloper.com/forum/showthread.php?s=&threadid=39438