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?
<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?