February 26th, 2003, 09:21 PM
Netscape is killing me...
it's actually my very first script. It works in IE, but not in NS.
here's the link to the page where i test it - http://www.flowersofthevalley.com/mi...andupdated.php
it should work like this -
when you click on the city, it highlightes it, and adds submenu.
when click another city, it closes the previous one, and opens two new pictures.
again, it works in IE...
Maybe some problems with syntaxis or NS doesn't support something that is written.
I'm actually a designer, not a programmer... and it's all so strange to me.
the final look of the page is here - http://www.flowersofthevalley.com/miss/index.php
the code = view source
February 27th, 2003, 08:46 AM
In your web page, click on your link. Then in the address window type:
Netscape will list your errors.
Generally speaking, even if you have errors Internet Explorer will figure out what you're trying to display and display your web page. Netscape expects everything to be perfect.
February 28th, 2003, 07:51 PM
March 1st, 2003, 09:01 AM
March 1st, 2003, 09:43 PM
The problem is that I use <div> to create layers, and netscape doesn't support div. Is there a way to tell netscape to change the source of the image in the div layer? Or should I create a separate page optimized for netscape?
March 2nd, 2003, 04:47 PM
March 4th, 2003, 11:50 AM
Quite a common problem, actually, with a very simple solution.
1. if (document.layers)
2. else if (document.all)
The first is NN4 code, the second is IE4+ code. Problem is, neither is W3C's DOM code. You need one more set of if statements:
3. else if (document.getElementById)
and each of your document.all statements should transform to:
document.getElementById(lastItem).style.display='none' (use 'block', 'inline' or '' for 'visible')
That should do the trick. See also the W3C's DOM site at http://www.w3c.org/DOM/