954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

onclick event image swap php

Hi. Is it possible onclick event the image blue_go.jpg to be swaped with another one. Thanks

1. <!-- <input type="image" title="Click here to start Uploading" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn" alt="Go"/>
2. <!-- <input type="image" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn"  onclick="beginUpload('<?=$sid;?>'); return false;" alt="Go"/>
webbi
Newbie Poster
1 post since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Hi. Is it possible onclick event the image blue_go.jpg to be swaped with another one. Thanks

1. <!-- <input type="image" title="Click here to start Uploading" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn" alt="Go"/>
2. <!-- <input type="image" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn"  onclick="beginUpload('<?=$sid;?>'); return false;" alt="Go"/>
<script type="text/javascript" language="javascript">
function swap_img(var sr)
{
	document.getElementByID('free_go_btn').src = sr;
}
</script>
<input type="image" title="Click here to start Uploading" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn" alt="Go"/>
<input type="image" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn"  onclick="beginUpload('<?=$sid;?>'); swap_img("<?=$host?>/new_img.jpg"); return false;" alt="Go"/>
network18
Practically a Master Poster
619 posts since Sep 2009
Reputation Points: 29
Solved Threads: 76
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You