Click to See Complete Forum and Search --> : Need help with 'Change image' script!


StellaPolaris
03-06-2003, 11:50 AM
Anyone knows how to deal with 'Change image' script? :

<!-- Begin
function movepic(img_name,img_src) {
document[img_name].src=img_src;
}
// End -->
</SCRIPT>
<!-- STEP TWO: Put this code into the BODY of your HTML document -->

<BODY>


<CENTER>
<A HREF="http://javascript.internet.com"
onmouseover="movepic('button','pic-off.gif')"
onmouseout="movepic('button','pic-on.gif')">
<IMG NAME="button" SRC="pic-off.gif" ALT="Image"></A>
</CENTER>

Where should I actually write/put the images I want?
Thanks for help!

:)

khalidali63
03-06-2003, 12:08 PM
lokingat your code,put all the images in the same directory/folder where your html page.

Khalid