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(ima geName,imageSou rce,divName,div Text){
document.images[imageName].src=imageSourc e;
document.getEle mentById(divNam e).innerHTML = divText;
}
</script>
<form action="#">
<input type="image" src="images/thmb001.jpg" value="101"
onclick="change Image('main','i mages/thmb002.jpg','s ample','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(ima geName,imageSou rce,divName,div Text){
document.images[imageName].src=imageSourc e;
document.getEle mentById(divNam e).innerHTML = divText;
}
</script>
<form action="#">
<input type="image" src="images/thmb001.jpg" value="101"
onclick="change Image('main','i mages/thmb002.jpg','s ample','hello') ">
</form>
<div id="sample" >
<img src="images/saturn.gif" name="main">
</div>
Comment