SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: CSS blues

  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS blues

    2ef2
    Last edited by reub77; Jul 17, 2004 at 08:43.

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this should work better.
    Code:
    function getLayer(layerName){
      if(document.layers){
        return document.layers[layerName];
      }else if(document.getElementById){
        return document.getElementById(layerName);
      }else if(document.all){
        return document.all[layerName];
      }else{
        return null;
      }
    }
    function showLayer(layerName){
      if(document.layers)
        getLayer(layerName).visibility = 'show';
      else
        getLayer(layerName).style.visibility = 'visible';
    }
    ----Adopt-a-Sig----
    Your message here!


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
  •