Hi, thanks for looking!
I am trying to replicate a mouseover image swap feature on multiple images like on this site - http://www.togsandclogs.com/latest-arrivals-12-w.asp
I have found some image swap scripts but finding it difficult to find something i can implement for multiple images as above.
The below works ok for a single image
<script type="text/JavaScript">
// Pre load images for rollover
if (document.images) {
smile = new Image
nosmile = new Image
smile.src = "1.png"
nosmile.src = "2.png"
}
function swapImage(thisImage,newImage) {
if (document.images) {
document[thisImage].src = eval(newImage + ".src")
}
}
</script>
<a href="#"
onMouseOver="swapImage('jack','smile')"
onMouseOut="swapImage('jack','nosmile')">
<img src="1.png"
width="100"
height="100"
border="0"
name="jack">
</a>
Any help would be great! thanks