Forum Moderators: not2easy

Message Too Old, No Replies

CSS: div visibility problem with Netscape 7

Flash file always displays, no matter what visibility is declared

         

aquarian

11:51 am on Nov 23, 2002 (gmt 0)



Hi, can anyone PLEASE help me?

I used a script from dynamicdrive.com to create a "pop-up" box (looks like a chromeless window) using divs, which works fine in IE4+ and NS4+ - you can check out the code and an example at dynamicdrive.com/dynamicindex11/abox.htm

I slightly modified the code so that the "pop-up" wouldn't appear when the page loads up, but rather, when I click on a link. All I did was make the layer invisible (style="visibility:hidden"), and I added a section to the javascript:

function showbox(){
if (ie4¦¦ns6)
crossobj.style.visibility="visible"
else if (ns4)
document.showimage.visibility="show"
}

It works with IE4+ and NS4+ fine, but I wanted to embed a Flash file as its content. That works fine in IE and even Netscape 4, but in Netscape 7, the "pop-up" appears without the Flash, yet, without hiding the layer in the first place, the Flash appears.

Can anyone help me pin-point what I've done wrong here?

Thanks! :)

[edited by: heini at 12:56 pm (utc) on Nov. 23, 2002]
[edit reason] delinked / see sticky mail at top of screen / thanks! [/edit]

tedster

4:43 pm on Nov 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, aquarian!

I'm not sure you have "done anything wrong".

Are you saying the effect works OK with other kinds of content in the div -- say, text content?

If it only blows up with Flash content, it could very well be a bug with the way NN7 works the Flash plug-in. I've seen other examples where Netscape does not like to hide Flash content in any way.

aquarian

8:52 am on Nov 25, 2002 (gmt 0)



Hi,

Yeah, the div works with textual content, and images also.

I didn't think I was doing anything wrong, but I guess there's no way around it unless the bug is fixed.......