Hi i am trying to use this code provided below but insted of using word links i want to use images. So i have been given some code which is ment to allow what i am doing but i am confused on how to implement it.
I have really never used javascript before so please help.
Original Code:
http://www.pageresource.com/jscript/jhover3.htm
Given Code:
<body>
<script>
function change1(NewImage){
var x=document.getElementById("ThisIsTheImgToChange")
x.src=NewImage
}
</script>
<img src="/path/to/image" onMouseover="change1('new/path/to/pic')" onMouseout="change2('old/path/to/pic') />
<img src="/path/to/image" onMouseover="change1('new/path/to/pic')" onMouseout="change2('old/path/to/pic') />
<img src="/path/to/image" onMouseover="change1('new/path/to/pic')" onMouseout="change2('old/path/to/pic') />
<img id="ThisIsTheImgToChange" src="/path/to/OriginalImage" />
</body>
I just want to know how i will use it and maybe an example.

I have really never used javascript before so please help.
Original Code:
http://www.pageresource.com/jscript/jhover3.htm
Given Code:
<body>
<script>
function change1(NewImage){
var x=document.getElementById("ThisIsTheImgToChange")
x.src=NewImage
}
</script>
<img src="/path/to/image" onMouseover="change1('new/path/to/pic')" onMouseout="change2('old/path/to/pic') />
<img src="/path/to/image" onMouseover="change1('new/path/to/pic')" onMouseout="change2('old/path/to/pic') />
<img src="/path/to/image" onMouseover="change1('new/path/to/pic')" onMouseout="change2('old/path/to/pic') />
<img id="ThisIsTheImgToChange" src="/path/to/OriginalImage" />
</body>
I just want to know how i will use it and maybe an example.
