With the following JavaScript it is easy to reokace an image with another when the mouse is hovering over it:
[CODE javascript]
function imgreplace(Image,Url)
{
document.images[Image].src = Url;
}
[/CODE]
The HTML code for the image looks like this:
[CODE HTML]
[/CODE]
The normal.png is replaced with hover.png when the mouse hovers over the image (onMouseOver). The image is replaced again when the mouse leaves the image (onnMouseOut).
Neueste Kommentare