Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing Flash parameters in Netscape

Status
Not open for further replies.

KarterJK

Programmer
May 11, 2004
27
US
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 forgot to add this
it is the object code so IE will work


<object ID="FlashTest" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="100%" height=<?php echo $width1 ?>>
<param name="movie" value="wimpy.swf?wimpyApp=wimpy.php&backgroundColor=<?php echo $ncolor ?>&displayDownloadButton=yes&infoDisplayTime=3&defaultPlayRandom=yes&startPlayingOnload=yes&popUpHelp=yes">
<param name="quality" value="high">
<param name="bgcolor" value=<?php echo $ncolor ?>>

Don Portland Oregon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top