PDA

View Full Version : css & flash issue maybe



bbolte
03-08-2006, 07:43 AM
i'm thinking this is probably a css issue, but not sure. i have a small flash element in the header, that only shows in IE, not if FF or Opera. the flash plugin is current in all browsers and i can see other flash stuff, just not on this page. here's the html bit:
<div class="headerImg">
<!-- <img src="assets/images/systems/systems1.jpg" border="0" width="400" height="100" alt="" /> -->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="280" HEIGHT="110" id="header" ALIGN="">
<PARAM NAME=movie VALUE="assets/swf/header.swf"> <PARAM NAME=quality VALUE=autohigh> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="header.swf" quality=autohigh bgcolor=#FFFFFF WIDTH="280" HEIGHT="110" NAME="header" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</div>
<img src="assets/images/fsg-logo-hor.gif" border="0" width="421" height="115" alt="Florida State Games" hspace="10" />

</div>
and here's the css bit:
.headerImg {
float: right;
clear: both;
padding: 0 1em -2em 0;
margin: 0 1em -2em 0;
}

the page in question can be seen here (http://www.floridastategamesonline.com/test/) ...

anyone have any ideas?

dc dalton
03-08-2006, 08:19 AM
Your problem has nothing to do with your CSS, its the path you have in your Flash tag:


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="280" HEIGHT="110" id="header" ALIGN="">
<PARAM NAME=movie VALUE="assets/swf/header.swf"> <PARAM NAME=quality VALUE=autohigh> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="header.swf" quality=autohigh bgcolor=#FFFFFF WIDTH="280" HEIGHT="110" NAME="header" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

</OBJECT>

Notice on the embed tag you have this for the path

src="header.swf"

when in fact it should be

src="assets/swf/header.swf"

change that it works fine


IE uses the param tag to find the movie, Netscape based browers (Mozilla, Gecko all those) use the embed

bbolte
03-08-2006, 08:28 AM
oh man, i knew that! thanks dalton...

dc dalton
03-08-2006, 08:32 AM
BTW, get rid of all that <!--//--><![CDATA[//><!-- junk, you dont need it and I would also suggest changing that to xhtml transistional, then do some quick validation