SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Sep 2000
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why can't I "hide" in Netscape !!

    I'm trying to hide a div layer in Netscape ---

    Here's my js:
    Code:
    if (document.layers)
    {
    	document.layers['test'].visibility='hide'
    }
    then in my stylesheet:
    Code:
    #test { visibility:visible;}
    But this isn't working.

    Any help would be great, thanks!

  2. #2
    SitePoint Addict
    Join Date
    Sep 2000
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I figured out some of my problem and came up with a new working solution:

    I do this:
    Code:
    document.write("#info {position:absolute; visibility:" + vis + ";}");
    and vis is = "hidden" if the browser is netscape.

    So, that has basically solved my problem of hiding layers.

    Plus, I realized that to hide/show layers in netscape their position must be set.


Bookmarks

Posting Permissions

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