Hi to all,
I am tyring to write a javascript that will automatically change a Flash background color.
It works great in IE but I have tried all sorts of things in Netscape and it still eludes me how to access the bgcolor parameter value in the embed code
HERE IS THE FUNCTION where nn = netscape browser
function doPassVar(args){
if (browser == 'nn'){
document.FlashTest.bgcolor = args;
} else {
window.document.getElementById('FlashTest').bgcolor = args;
}
}
HERE IS THE EMBED CODE - its wimplayer at
<embed NAME="FlashTest" src="wimpy.swf?wimpyApp=wimpy.php&backgroundColor=#ffffff displayDownloadButton=yes&infoDisplayTime=3&defaultPlayRandom=yes&startPlayingOnload=yes&popUpHelp=yes" width="100%" height=140 quality="140" bgcolor=#ffffff
pluginspage=" type="application/x-shockwave-flash" swLiveConnect="true">
</embed>
AND THE HREF
<a href="#" onclick="doPassVar('#414141');"><font color=#ebebeb>Steel</font></a>
Thaks ahead of time
Don Portland, Oregon
I am tyring to write a javascript that will automatically change a Flash background color.
It works great in IE but I have tried all sorts of things in Netscape and it still eludes me how to access the bgcolor parameter value in the embed code
HERE IS THE FUNCTION where nn = netscape browser
function doPassVar(args){
if (browser == 'nn'){
document.FlashTest.bgcolor = args;
} else {
window.document.getElementById('FlashTest').bgcolor = args;
}
}
HERE IS THE EMBED CODE - its wimplayer at
<embed NAME="FlashTest" src="wimpy.swf?wimpyApp=wimpy.php&backgroundColor=#ffffff displayDownloadButton=yes&infoDisplayTime=3&defaultPlayRandom=yes&startPlayingOnload=yes&popUpHelp=yes" width="100%" height=140 quality="140" bgcolor=#ffffff
pluginspage=" type="application/x-shockwave-flash" swLiveConnect="true">
</embed>
AND THE HREF
<a href="#" onclick="doPassVar('#414141');"><font color=#ebebeb>Steel</font></a>
Thaks ahead of time
Don Portland, Oregon