#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    297
    Rep Power
    17

    Making layers visible and invisible


    Can anyone help? In a page with about fourty layers or so the user should be able to choose each of these layers seperately. In the event handler for this the selected layer should be made visible, while all other layers should be made invisible. Now I don't know how to organise this. Of course I can write very very long event handlers making all not selected layers invisible for each possible selection but I wonder if this can be done more simple. Can anyone help?
    Kippie
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    37
    Rep Power
    18
    Don't know if its the best solution, but I set up an array with all the layers I intend to have. Then I can just run through all of them making everyone invisble and finally making the selected layer visible.

IMN logo majestic logo threadwatch logo seochat tools logo