Forum Home
Press F1
 
Thread ID: 50968 2004-11-07 20:44:00 image rollover sam_baird2003 (5464) Press F1
Post ID Timestamp Content User
289086 2004-11-07 20:44:00 im trying to get a rollover to work but it wont this is the script
images/home.gif (home.html)
is there any erros in it
sam_baird2003 (5464)
289087 2004-11-07 21:39:00 Use javascript:

<html>
<head>
<title></title>
<script language="javascript">
<!-- This script works in: Navigator 3 - 4, Opera 3.1, and Explorer 4

if (document.images) {
teston = new Image(); // Active images
teston.src = "test.on.gif";

testoff = new Image(); // Inactive images
testoff.src = "test.off.gif";
}

function imgOn(imgName) {

if (document.images) {
document.src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}

// -->
</script>

</head>
<body>



[img]test.off.gif (testcss.html)
Greg S (201)
1