Login Register






JS Help filter_list
Author
Message
RE: JS Help #16
Well, i got your point. Here's the code:

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! Wink
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]






Messages In This Thread
JS Help - by unnamed - 07-23-2013, 05:42 PM
JS Help - by unnamed - 07-23-2013, 05:42 PM
JS Help - by unnamed - 07-23-2013, 05:42 PM