SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast Scott Botkins's Avatar
    Join Date
    Jun 2003
    Location
    cincinnati
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Need a little help dealing with java and div...

    Hey guys, i am using this code below for my div, but i need layer 1 to show up on page load. Does anyone know how to make it work?

    function showlayer1() {
    document.getElementById("layer1").style.display="block";
    document.getElementById("layer2").style.display="none";
    document.getElementById("layer3").style.display="none";
    }

    function showlayer2() {
    document.getElementById("layer1").style.display="none";
    document.getElementById("layer2").style.display="block";
    document.getElementById("layer3").style.display="none";
    }


    function showlayer3() {
    document.getElementById("layer1").style.display="none";
    document.getElementById("layer2").style.display="none";
    document.getElementById("layer3").style.display="block";
    }

    Thanks,
    Cincinnati Web Design - Creative Web Design by Scott Botkins

  2. #2
    SitePoint Zealot johno's Avatar
    Join Date
    Sep 2003
    Location
    Bratislava, Slovakia
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <body onload="showlayer1();">
    Annotations support for PHP5
    TC/OPT™ Group Leader

  3. #3
    SitePoint Enthusiast Scott Botkins's Avatar
    Join Date
    Jun 2003
    Location
    cincinnati
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your the man!!!....thank you
    Cincinnati Web Design - Creative Web Design by Scott Botkins


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
  •