• Archives

  • AddThis Social Bookmark Button

    Add to Technorati Favorites

  • Upcoming Conferences

    • no upcoming events
  • Changing the image on hovering through javascript

    By krates | January 8, 2008

    This tutorial is going to teach you how to change the image when you hover your mouse over it throught javascript:

    Have a look below:

    <html>
    <head>
    <script type=”text/javascript”>
    function onhover()
    {
    document.imagel.src=”image1.gif”;
    }
    function hoverout()
    {
    document.imagel.src=”image2.gif”;
    }
    </script>
    </head>

    <body>
    <a href=”http://www.easytutorial.info” target=”_blank”>
    <img border=”0″ alt=”Easytutorials for you” src=”image1.gif” name=”imagel” height=”20″ onmouseover=”onhover()” onmouseout=”hoverout()” /></a>
    </body>
    </html>

    Thanks
    krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Topics: Javascript | Comments Off

    Related Links:

    Comments are closed.