PDA

View Full Version : JS SWFobject attributes



GGMcGee
October 3rd, 2008, 12:44 AM
Trying to add the parameters wmode="transparent" and menu="false" to two flash object on one page.

The first flash object is in an uneditable region of a template. It doesn't even need these attributes and automatically doesn't allow menu access. But I added the code in anyway.

The second flash object is in an editable region on a page. I added the code in to wherever I think I possibly should have, and it works in firefox 3, but not in IE7.

Doesn't anyone know what I'm doing wrong? Can it work in both browsers?

I'm confused as hell as to why the first flash object works and the second one doesn't........

First Flash object


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="myId" width="779" height="180" id="myId" wmode="transparent" menu="false">
<param name="movie" value="flash/logofader.swf" wmode="transparent" menu="false" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/logofader.swf" width="779" height="180" wmode="transparent" menu="false">
<!--<![endif]-->
<p>Blah</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>


Second Flash object


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="slideTextId" width="470" height="220" id="slideTextId" wmode="transparent" menu="false">
<param name="movie" value="flash/slideText.swf" wmode="transparent" menu="false" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/slideText.swf" width="470" height="220" wmode="transparent" menu="false">
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>

tfg
October 3rd, 2008, 08:34 AM
parameters need their own tag

this:
<param name="movie" value="flash/slideText.swf" wmode="transparent" menu="false" />

needs to be this:
<param name="movie" value="flash/slideText.swf" />
<param name="wmode" value="transparent" />
<param name="menu" value="false" />

GGMcGee
October 5th, 2008, 08:30 PM
Thanks!

tfg
October 6th, 2008, 06:58 AM
no problem :)