Forum Moderators: not2easy
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]
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.
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.......