View Full Version : okay here is my question for which i am troubling you guys
mists0fdeath
08-10-2002, 04:44 PM
i want to know how to load and image after clicking a link, i already found out how to do the onClick music, but i cant seem to find the onClick image, if you can help me, thank you very much in advance, and thanks for the previous help. i've been trying it out on here
http://www.geocities.com/mistsofdeath/java.html#
and even if i use onMouseover, i dont know how to stop the image from loading again and again
pardicity3
08-10-2002, 11:17 PM
Well, I think this might get what you want done:
onclick="yourimagename.src='yournewimagesource';"
So for example, you have an image like so:
<image src="originalimage.gif" id="image1">
then in your link you have something like so:
<a href="#" onClick="image1.src='newimage.gif';">Text to be clicked on</a>
I think that is what you want....and also, about the whole stopping the second image (I think your talking about your animations) I don't know of anyother way then to just have your animated pic only play once. Instead of having a looping animation, just have it play once. They only problem with that, is if you don't have the right graphics software it may be a problem.....Though someone on this forum may be able to help you out.
Well, good luck, and I hope I wasn't too confusing!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.