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 …
Kategorie: JavaScript
Permanentlink zu diesem Beitrag: https://techblog.steffmeister.at/swap-images-via-javascript/
Neueste Kommentare