Results 1 to 2 of 2

Thread: Help on a text link that has a onmouseover image

  1. #1
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Help on a text link that has a onmouseover image

    Hi,

    I'm a student of html not of javascript. I'm trying to find a script that will show a thumbnail image, when you mouseover the text link.
    I found one but was unable to make it work. Please help !!!

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
    <html>
    <script>
    function showTip (elementId){
    var tip = document.getElementById(elementId);
    tip.style.display = "block";
    }
    function hideTip (elementId){
    var tip = document.getElementById(elementId);
    tip.style.display = "none";
    }
    </script>
    <style type="text/css">
    #tip{
    display:none;
    width:0px;
    }
    </style>
    <body>
    
    <div id="thing" onmouseover="showTip('tip');" onmouseout="hideTip('tip');">mouseover here!</div>
    <div id="tip"><center><img src="http://www.albanygateway.com.au/Member/Albany_Primary_school/new_2/tiny%20green%20plant%20thumbnail.jpg"</img></center></div>
    </body>
    
    </html>
    enjoy.

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
  •