R
Richard
Ok. I've quoted the inner stuff as needed.
When I click on the "form" {no errors} all I get is a momentary whiteout of
the saturn image and the saturn image returns intact.
No image swapping, no text is written.
Now what?
<script type="text/javascript">
function changeImage(imageName,imageSource,divName,divText){
document.images[imageName].src=imageSource;
document.getElementById(divName).innerHTML = divText;
}
</script>
<form action="#">
<input type="image" src="images/thmb001.jpg" value="101"
onclick="changeImage('main','images/thmb002.jpg','sample','hello')">
</form>
<div id="sample" >
<img src="images/saturn.gif" name="main">
</div>
When I click on the "form" {no errors} all I get is a momentary whiteout of
the saturn image and the saturn image returns intact.
No image swapping, no text is written.
Now what?
<script type="text/javascript">
function changeImage(imageName,imageSource,divName,divText){
document.images[imageName].src=imageSource;
document.getElementById(divName).innerHTML = divText;
}
</script>
<form action="#">
<input type="image" src="images/thmb001.jpg" value="101"
onclick="changeImage('main','images/thmb002.jpg','sample','hello')">
</form>
<div id="sample" >
<img src="images/saturn.gif" name="main">
</div>