HTML image rollover code???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nineteen85
    Confirmed User
    • Jul 2008
    • 288

    #1

    HTML image rollover code???

    Anyone know how to create a rollover effect on images so when you mouse over it it changes to a different image?

    Im using wordpress so it needs to be a code I can just whack into the stylesheet

    Thanks
    25% OFF ALL DESIGN / DEVELOPMENT WORK FOR A LIMITED TIME

    Web designer / developer specializing in;
    HTML, CSS, PHP, Wordpress, Jquery
  • lacuna
    Confirmed User
    • Mar 2006
    • 1950

    #2
    see here

    http://www.java-scripts.net/javascri...r-Script.phtml

    2257 Third-Party Custodian of Records Services
    Designed by an attorney to be DOJ compliant
    Only $1 per record

    Comment

    • Zayne E.
      Confirmed User
      • Apr 2002
      • 1383

      #3
      Originally posted by Nineteen85
      Anyone know how to create a rollover effect on images so when you mouse over it it changes to a different image?

      Im using wordpress so it needs to be a code I can just whack into the stylesheet

      Thanks
      The professional way to do it with CSS is to make your "rollover images" a single image with your non-rollover image then use the CSS to change the background-position of the image upon rollover. It doesn't rely on javascript and is WAY faster than a javascript solution.

      I used it throughout the new AEBN webmaster site to position images for specific languages...but the same effect can be achieved on mouseover using

      a:hover { background-position: 0px 30px; }

      http://www.aebn.net/

      Comment

      • Zayne E.
        Confirmed User
        • Apr 2002
        • 1383

        #4
        Sample - right click, view source, enjoy.

        Comment

        Working...