Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Help- DHTML problem with a SWF file within DIV tag

Flash file, in DIV, lose CSS prorieties in NS6



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

Inactive Member
Account Expired


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

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

Senior Member

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

joined:May 26, 2000
votes: 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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members