#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Location
    St. Paul (Minnesota)
    Posts
    1
    Rep Power
    0

    Problems with CSS


    I'm running into some problems with the JavaScript/CSS code for rollover effects on my homepage. For whatever reason, it used to work _only_ under the old Netscape 4.x on any platform, but not under MSIE or Mozilla. Now, it doesn't even appear to work under newer versions of Netscape 4.x.

    Any ideas what could be causing the problem? The URL is http://www.sacredchaos.com/
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Phila, PA
    Posts
    39
    Rep Power
    13
    This isn't a CSS problem, it's a DOM problem.

    Your rollovers use the document.layers document object model, a DOM specific to Netscape versions up through 4+.

    With Netscape 6+, Netscape dropped that proprietary DOM in favor of the W3 recommend DOM 1.0 (document.getElementById)
    http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/

    IE5+ also supports the DOM 1.0

    Earlier versions of IE use Microsoft's proprietary DOM (document.all)

    Here's a good place to learn more:
    http://www.xs4all.nl/~ppk/js/index.html?version5.html

    Good luck

IMN logo majestic logo threadwatch logo seochat tools logo