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

CSS Forum

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

10+ Year Member

Msg#: 147 posted 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"
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"

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



WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 147 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved