Jump to content

Passing one value to the next


ZeroShade

Recommended Posts

Like this:

<script type="text/javascript">	function changeimage() {		image = document.getElementById("target_image");		if (image.src == "image_1.jpg") {			image.src = "image_2.jpg";		} else if (image.src == "image_2.jpg") {			image.src = "image_3.jpg";		}		//Etc.	}</script><img id="target_image" src="image_1.jpg" onclick="changeimage()" />

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...