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"/>

Edited by webbi: n/a

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by network18
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"/>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.