homepage Welcome to WebmasterWorld Guest from 54.243.23.129
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
Help- DHTML problem with a SWF file within DIV tag
Flash file, in DIV, lose CSS prorieties in NS6
zenwunien




msg:1206763
 12:27 pm on Apr 18, 2002 (gmt 0)

I have inserted a Flash swf in <div></div> and treat it as a DHTML object within a JavaScript 1.2 rollover, together with some other ordinary gifs (build with a makeObject function).

That script appeals the visibility CSS propertiy (hidden/visible) after a browser check.

Without that swf, the rollover works fine whichever browser is.

When insert the swf, it works ok in IE4, 5 and 6, but there is a strange bug in NS6:
1. it looks like the swf does not want to respect the CSS positioning(there is a larger layer beyond the swf, larger than the swf or CSS style defined) and

2 does not respect the visibility when rollover (does not swich visible/hidden when rollover other objects)

the tags are something like:

<div id="divIn"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0";
ID=flash WIDTH=236 HEIGHT=46>
<PARAM NAME=movie VALUE="swi/intro.swf">
<PARAM NAME=quality VALUE=high>
<EMBED src="swi/intro.swf" quality=high bgcolor=#FFFFFF
WIDTH=336 HEIGHT=46 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";>
</EMBED>
</OBJECT></div>

Next there are some other ordinari DIV's with gifs and text
When roll over one of the other gifs it suppose to "hidden" the sfw and "visible" some other text positioned in the same position as the swf is.

The style of the ID is settled by a CSS.

Does anyone knows why NS6 do that? For a while you may see the whole problem at www.anet.ro/newsubaru/main.html

 

tedster




msg:1206764
 5:35 pm on Apr 18, 2002 (gmt 0)

Welcome to the Forum, zenwunien

I haven't pulled your code apart, but wouldn't you eliminate any cross-browser DHTML worries by making the entire block Flash - and then including all the mouseover behaviors directly in the Flash file?

You don't have text content here, so you wouldn't be sacrificing much from a search engine POV.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved