Kategorienarchiv: JavaScript

Mai 15

Swap images via JavaScript

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 …

Weiter lesen »

Permanentlink zu diesem Beitrag: http://techblog.steffmeister.at/swap-images-via-javascript/