terribrill
06-13-2003, 11:49 PM
Hey!
I'm not really sure what I'm doing but I wanted to try to do a rollover. I've only been doing this for like a week so excuse my ignorance. I am trying to get this rollover to work but when I put my mouse over it, all I get is a box with a red X in it. What am I doin wrong? Do you have any idea's? Thanks...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>JavaScript</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript" TYPE="Text/JavaScript">
if (document.images) {
rightarrow = new Image
leftarrow = new Image
rightarrow.src = "images/rightarrow.gif"
leftarrow.src = "images/leftarrow.gif"
}
else {
rightarrow = ""
leftarrow = ""
document.images = ""
}
</SCRIPT>
</head>
<body>
<A HREF="index.htm" onMouseover="document.images.src=leftarrow.src" onMouseout="document.images.src=rightarrow.src"><IMG SRC="images.rightarrow.gif" NAME="images" border="0" id="images">
</A>
</body>
</html>
I'm not really sure what I'm doing but I wanted to try to do a rollover. I've only been doing this for like a week so excuse my ignorance. I am trying to get this rollover to work but when I put my mouse over it, all I get is a box with a red X in it. What am I doin wrong? Do you have any idea's? Thanks...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>JavaScript</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript" TYPE="Text/JavaScript">
if (document.images) {
rightarrow = new Image
leftarrow = new Image
rightarrow.src = "images/rightarrow.gif"
leftarrow.src = "images/leftarrow.gif"
}
else {
rightarrow = ""
leftarrow = ""
document.images = ""
}
</SCRIPT>
</head>
<body>
<A HREF="index.htm" onMouseover="document.images.src=leftarrow.src" onMouseout="document.images.src=rightarrow.src"><IMG SRC="images.rightarrow.gif" NAME="images" border="0" id="images">
</A>
</body>
</html>