Her er der en version der virker med frames. Den virker 100% i IE 6, Nutscape 6.2 og Opera 6
<!-- default.html start -->
<html>
<frameset rows="50%,50%*">
<frame src=changeimg3.html name=f1>
<frame src=changeimg1.html name=f2>
</frameset>
</html>
<!-- default.html end -->
<!-- changeimg3.html start -->
<html> <head> <title>ChangeImg3</title>
<SCRIPT>
//Script by Ricki Runge
//Find more at
www.script.dkimg = new Image;
defauldImg = "0.gif";
function changeImg(imgName1, imgName2, target) {
img.src = imgName1;
window.parent.frames['f2'].document.getElementById('pic0').src = img.src;
oldImg = document[target].src;
img.src = imgName2;
document[target].src = img.src;
}
function changeImgBack(target) {
img.src = defauldImg;
window.parent.frames['f2'].document.getElementById('pic0').src = img.src;
img.src = oldImg;
document[target].src = img.src;
}
</SCRIPT>
</head>
<body>
<center><h1>ChangeImg3</h1>
Kør musen hen over billed 1 eller 2, så vil de skifte til "on", og billede 0 vil vise hvilket billede musen er over<br>
<a href="
http://www.script.dk" onMouseover="changeImg('1.gif', 'on.gif', 'pic1')" onMouseout="changeImgBack('pic1')"><img src="1.gif" border=1 alt="Link 1" name="pic1"></a>
<a href="
http://www.script.dk" onMouseover="changeImg('2.gif', 'on.gif', 'pic2')" onMouseout="changeImgBack('pic2')"><img src="2.gif" border=1 alt="Link 2" name="pic2"></a><br>
<br><hr><center>Downloaded from: <a href="
http://www.script.dk">Script.dk</a></center></body> </html>
<!-- changeimg3.html end -->
<!-- changeimg1.html start -->
<html>
<body>
<img id="pic0" src="0.gif" border=1>
</body>
</html>
<!-- changeimg1.html end -->
/Rune