Monday, November 22, 2010

How to change picture when hovering over with mouse in HTML?

D:How to change picture when hovering over with mouse in HTML?
Try the following on the img tag holding your image (Javascript)



%26lt;image src=';myimage.jpg'; onmouseover=';this.src='mynewimage.jpg';'; /%26gt;



This will replace myimage.jpg with mynewimage.jpg when the mouse hovers over the picture.



Good luckHow to change picture when hovering over with mouse in HTML?
i believe you will have to use javascript. and css can change the way the picture looks when hovered over.
  • sad lonely poems
  • uk hosting
  • No comments:

    Post a Comment