Results 1 to 6 of 6

Thread: JavaScript, CSS with NetScape

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    28

    Unhappy

    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).

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    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.
    "People who think they know everything are a great annoyance to those of us who do."

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    28

    NetScape CSS and JavaScript...

    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.

  4. #4
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    A good site for cross-browser DHTML can be found at:

    http://www.siteexperts.com/

    Psyrus


  5. #5
    Anyway.. whenever you're designing a good looking page using DHTML styles on Internet Explorer, you always have to re-design it for Netscape....

    See you...

    keetsh®


  6. #6
    Guest
    spot the hidden irony: Netscape doesnt support JS as well as IE.

    Thats like saying IE wont support VBscript...

    Ho hum...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width