Click to See Complete Forum and Search --> : netscape 6/7 layers


worldgram
07-21-2003, 03:29 AM
I currently have code on a web page that displays a layer with html generated text when the mouse moves over tagged html text. The page works well with Navigator and IE but nothing happens with NS 6/7. I have been checking on this site and other forums for info. It seems to me that their are contradictions on this problems. I see a lot of postings for layer problems regarding NS 6/7. I see responses that "NS 6/7 doesn't support NS 6/7" and I also see postings that say otherwise. I haven't been able to find a posting that refers specifically to this problem. At this point, I'm just trying to confirm that their is a solution. Can someone confirm this for me? Also can you possibly point me to a URL as an example of layers working on NS 6/7. I'm not a javascript programmer. I'm a "cut and paste" user. Thanks, Worldgram.

gil davis
07-21-2003, 07:15 AM
If your page works in NS 4, but not in NS 6 or 7, then you are probably using the <LAYER> tag or the document.layers array to manipulate the layer. NS 6 & 7 do not support the <LAYER> tag or the document.layers array. You need to learn W3C DOM compliant methods like document.getElementById() to be successful with NS 6, NS 7, Mozilla, and IE 5+.

I have an example page using "layers" at http://gil.davis.home.att.net/followmouse.htm that works in NS 4, NS6, NS7 and IE 5+.