But I want to change the image itself AND one in another frame. I found a script that does that, except the second image changes a second image in the other frame. Here's the script:
Code:
<script language="JavaScript">
<!-- Hide from old browsers
var NN3 = false;
image1= new Image();
image1.src = "IMAGE OFF";
image1on = new Image();
image1on.src = "IMAGE ON";
image1alt = new Image();
image1alt.src = "ALT IMAGE OFF";
image1alton = new Image();
image1alton.src = "ALT IMAGE ON";
image2= new Image();
image2.src = "IMAGE OFF";
image2on = new Image();
image2on.src = "IMAGE ON";
image2alt = new Image();
image2alt.src = "ALT IMAGE OFF";
image2alton = new Image();
image2alton.src = "ALT IMAGE ON";
function on3(name) {
document[name].src = eval(name + "on.src");
parent.ALT IMAGE FRAME NAME.document[name + "alt"].src = eval(name + "alton.src");
}
function off3(name) {
document[name].src = eval(name + ".src");
parent.ALT IMAGE FRAME NAME.document[name + "alt"].src = eval(name + "alt.src");
}
NN3 = true;
function on(name) {
if (NN3) on3(name);
}
function off(name) {
if (NN3) off3(name);
}
// ->
</script>
<a target="TARGET FRAME NAME" href="YOUR LINK" onmouseover="on('image1');" onmouseout="off('image1')"><img src="YOUR IMAGE1 OFF" border="0" name="image1"></a><br>
<a target="TARGET FRAME NAME" href="YOUR LINK" onmouseover="on('image2');" onmouseout="off('image2')"><img src="YOUR IMAGE2 OFF" border="0" name="image2"></a><br>
<img src="ALT IMAGE1 OFF" name="image1alt"><br>
<img src="ALT IMAGE2 OFF" name="image2alt"><br>
What I want is to only have "image1alt" change every time and not have an "image2alt" and so on.
Bookmarks