RE: JS Help 07-24-2013, 04:18 PM
#16
Well, i got your point. Here's the code:
in the head section:
now that we have the defined functions, we need to call them in your html body:
Hope this helps!
in the head section:
Code:
<script type="text/javascript">
function changeImage1() {
this.src = 'images/someimage1.png';
}
function changeImage2() {
this.src = 'images/someimage2.png';
}
</script>now that we have the defined functions, we need to call them in your html body:
Code:
<img name="image1" src="images/download1.png" onmouseover="changeImage1()" onclick="changeImage2()" border=0 />Hope this helps!
Yar-har Fiddle-dee-dee, being a pirate is alright to be! Do what you want cause a pirate is free, you are a pirate! AHOY!
![[Image: tumblr_m7isvt2N171ranhnao1_500.gif]](http://25.media.tumblr.com/tumblr_m7isvt2N171ranhnao1_500.gif)


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)