PDA

Click to See Complete Forum and Search --> : JavaScript, CSS with NetScape


billyo
Jun 23rd, 2000, 12:38 AM
I know that NetScape doesn't support as much JavaScript and CSS as IE4+, but I still try because some people still use the browser (though if you've seen what a lemon NS6 is...). I think one of the coolest things about JS and IE5 is the document.all[object].style.cssText='CSS:text;'; You can use this to change just about any property of any object in the html, but I haven't been able to find any near equivalent bit of script that works for NetScape (I know that document.all is invalid under NetScape.) Specifically I'm interested in using DHTML to change a cell's border and background color (no problem with IE5, but a true frustration under NetScape).

noone
Jun 23rd, 2000, 01:27 AM
Netscape's DOM is a bit different from IE, instead of document.all you have to use document.layer
check out http://www.builder.com for an article on cross browser scripting.

billyo
Jun 23rd, 2000, 05:07 AM
I've been checking out the sites per your advice, but I still haven't found what I'm looking for. Specifically, what I would like to see are "gifless" mouseover effects in Netscape. I can do it by creating pairs of <div> tags with different styles and then setting them to the same absolute postion and controlling their visibility, but it's a pain. What I'd like is something like:
document.layers.object.bgColor="colorvalue";
or something.

Psyrus
Jul 9th, 2000, 12:43 PM
A good site for cross-browser DHTML can be found at:

http://www.siteexperts.com/

Psyrus

keetsh
Jul 18th, 2000, 02:51 AM
Anyway.. whenever you're designing a good looking page using DHTML styles on Internet Explorer, you always have to re-design it for Netscape....

Feb 1st, 2001, 06:53 AM
spot the hidden irony: Netscape doesnt support JS as well as IE.

Thats like saying IE wont support VBscript...

Ho hum...