PDA

View Full Version : swapimage function


mattover-matter
03-18-2003, 06:15 AM
Hello, I saw somewhere a swapimage() function, and I want to know how it was done. You could give an image a name then swapimage to change it, something like this:


<A HREF="swapimage('imagename','newimgsrc.gif')">Change Image</A>

<img src="src.gif" id="imagename">

and when u clicked the link it would be changed to newimgsrc.gif. How was this possible?

Borgtex
03-18-2003, 10:31 AM
just do a search for javascript & rollover in google or in this forum