SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Grosseto, Italy
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi,
    I tried changing the layer visibility like below, but something seems wrong...

    in the head tags
    ***************************
    <script language="javascript">
    <!--

    function showit(layerid)
    {
    document.all.item(layerid).style.visibility = "visible";

    }

    function hideit(layerid)
    {
    document.all.item(layerid).style.visibility = "hidden";
    }

    -->
    </script>
    ***************************


    and then I call the function with a link
    ****************************
    <a href="somepage.htm" onMouseOver="showit(first)" onMouseOut="hideit(first)">show</a>
    ****************************

    and this is the layer
    ****************************
    <div id="first" STYLE="visibility: hidden" >sfsfsafg</div>
    ****************************

    can someone please help me out telling me what's wrong with the above code or telling me how to show and hide layers with onmouseover and onmouseout?

    Thanks

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Grosseto, Italy
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok doesn't matter. I figured it out...
    thanks for reading


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
  •