#1
  1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    25

    Question Netscape 6 and CSS display woes


    A question if I may?

    Has anyone used javascript to change the display style of a <div> tag to 'block successfully in Netscape 6? Or, does anybody know a workaround?

    I know that Netscape 4.x didn't like javascript messing with the display style of <div>s. Or at least it could hide them, then never bring them back. Supposedly Netscape 6 does what Netscape 4 didn't, though everytime I try it the browser crashes.

    It's not essential as I can just have Netscape be unreactionary (as always), but it would be nice.

    Anybody?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Posts
    10
    Rep Power
    0
    the CSS "display: block" works for me in NS6 just fine.

    This works for me too:

    document.getElementById('divname').style.display = 'block';


    Working example:

    http://www.xs4all.nl/~ppk/tests/olddisplay.html
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    25
    Shall check it out tomorrow, ta!
  6. #4
  7. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    25


    Very very strange, it works fine on your page, but not on mine. I wonder.... IE does everything fine NS6 doesn't. The code you had was pretty much the same as mine except for a few page particulars. One thing is that you don't specify anything in the style to start with.

    .....

    Nope, just tried removing the original style 'display' attribute. But it dissappears fine, then crashes.


IMN logo majestic logo threadwatch logo seochat tools logo