...

View Full Version : changing images in a js function?



blindbull
08-07-2002, 05:57 PM
I suspect that the answer to this question is no as images are loaded when the page loads. However, I have a bit of XSLT that runs a javascript function. The purpose of the function is that when the image is clicked it's image changes from a minus to a plus. It doesn't work, does anyone have some JS that does?

If this cannot be done than is it possible to change the text between the <a> and </a> on an anchor tag, as I could use that instead.

beetle
08-07-2002, 06:15 PM
Uh, of course that can be done! how do you think rollovers work?
<img src="plus_sign.gif" onClick="this.src='minus_sign.gif'" />Unless I misunderstood you?

blindbull
08-08-2002, 10:07 AM
Beautiful!

Thanks very much.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum