mayerhead
06-22-2003, 11:59 PM
hello! can someone help me with double mouseovers?
the code i have now, for a single mouseover is:
<head>
<script language="JavaScript">
<!--
if (document.images) {
image1on = new Image();
image1on.src = "http://www.britneyspears.org/~dancers/graphics/brandonh_on.jpg";
image1off = new Image();
image1off.src = "http://www.britneyspears.org/~dancers/graphics/brandonh_off.jpg";
}
function changeImages() {
if (document.images) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
}
}
}
// -->
</script>
</head>
<a href="http://www.brandonhenschel.com" onMouseOver="changeImages('image1', 'image1on')" onMouseOut="changeImages('image1', 'image1off')">
<img name="image1" src="http://www.britneyspears.org/~dancers/graphics/brandonh_off.jpg" alt="" width="210" height="14" border=0></a>
i would like that when you mouseover the name, it turns red and an image appears somewhere else on the page...
it would be great if someone could help me on what to add in and where! thanks!
the code i have now, for a single mouseover is:
<head>
<script language="JavaScript">
<!--
if (document.images) {
image1on = new Image();
image1on.src = "http://www.britneyspears.org/~dancers/graphics/brandonh_on.jpg";
image1off = new Image();
image1off.src = "http://www.britneyspears.org/~dancers/graphics/brandonh_off.jpg";
}
function changeImages() {
if (document.images) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
}
}
}
// -->
</script>
</head>
<a href="http://www.brandonhenschel.com" onMouseOver="changeImages('image1', 'image1on')" onMouseOut="changeImages('image1', 'image1off')">
<img name="image1" src="http://www.britneyspears.org/~dancers/graphics/brandonh_off.jpg" alt="" width="210" height="14" border=0></a>
i would like that when you mouseover the name, it turns red and an image appears somewhere else on the page...
it would be great if someone could help me on what to add in and where! thanks!