Here is a demo page. The only things that you need to work this page correctly the image with the names I've used in the source. Hopefully you can arrange that at your end
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled Document</title>
<style type="text/css">
</style>
</head>
<body>
<div id="container">
<div id="links">
<a href="http://www.google.com" id="a1">Google <img src="g.gif" border="0" id="m1"/></a><br/>
<a href="http://www.yahoo.com" id="a2">Yahoo! <img src="y.gif" border="0" id="m2"/></a><br/>
<a href="http://www.mozilla.com" id="a3">Mozilla <img src="mo.gif" border="0" id="m3"/></a><br/>
</div>
<div id="imgs">
<div><img src="1.jpg" border="0" id="1"/></div>
<div><img src="2.jpg" border="0" id="2"/></div>
<div><img src="3.jpg" border="0" id="3"/></div>
</div>
</div>
<script type="text/javascript">
var $ = function(id){
return document.getElementById(id);
};
(function(){
$('a1').onmouseover = function(){
handleMouseOver({gifsource:"m1",gifdest:"g1.gif",gifalt:"new google gif",jpgsource:"3",jpgdest:"11.jpg",jpgalt:"new jpg 11"});
};
$('a2').onmouseover = function(){
handleMouseOver({gifsource:"m2",gifdest:"y1.gif",gifalt:"new yahoo gif",jpgsource:"2",jpgdest:"22.jpg",jpgalt:"new jpg 22"});
};
$('a3').onmouseover = function(){
handleMouseOver({gifsource:"m3",gifdest:"mo1.gif",gifalt:"new mozilla gif",jpgsource:"1",jpgdest:"33.jpg",jpgalt:"new jpg 33"});
};
})();
function handleMouseOver(obj){
$(obj.gifsource).src = obj.gifdest;
$(obj.gifsource).alt = obj.gifalt;
$(obj.jpgsource).src = obj.jpgdest;
$(obj.jpgsource).alt = obj.jpgalt;
}
</script>
</body>
</html>
Hope this helps.
Bookmarks