Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash & DHTML DIV problem in NS6

Status
Not open for further replies.

Zenwunien

Programmer
Apr 18, 2002
5
RO
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=&quot;divIn&quot;><OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; ID=flash WIDTH=236 HEIGHT=46>
<PARAM NAME=movie VALUE=&quot;swi/intro.swf&quot;>
<PARAM NAME=quality VALUE=high>
<EMBED src=&quot;swi/intro.swf&quot; quality=high bgcolor=#FFFFFF
WIDTH=336 HEIGHT=46 TYPE=&quot;application/x-shockwave-flash&quot;
PLUGINSPAGE=&quot; </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 &quot;hidden&quot; the sfw and &quot;visible&quot; 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
 
Zen,

I hate to even mention this, but some times the very obvious is the root cause.

Have you tested your CSS syntax to be fully compatible to NS6? As you are aware, the properties for IE and NS differ (no surprise there) and this might be your problem.

Also, have you tried publishing you fla as an animated gif?

NS may like better working with gif in lieu of swf ...

Good luck!


josel

KNOWLEDGE: Something you can give away enlessly and gain more of it in the process! - Jose Lerebours
 
tx, josel, but as I've wrote up, the script works fine, fully cros-browser, with any other object (GIF<JPG, text, etc.), inside that DIVs, except than a SWF file.

It is a good ideea to transform that SWF into an animated gif, tx for that.

Yet, why react NS6 like that, I wonder ?
 
zen,

I do not think the problem lies with your SWF as much as with NS itself. I have had a share of problems with NS while developing in CFML.

I love it when we are presented with these problems by a group of beuraucrats that have little concern over what we go through while they play their corporate games ... Besides, AOL is now responsible for NS and its capabilities. Need I say more? :cool:

Regards;

Jose Lerebours
KNOWLEDGE: Something you can give away enlessly and gain more of it in the process! - Jose Lerebours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top