a_design_interactive
07-20-2006, 08:36 PM
as i've mentioned before, i'm no javascript wiz, but i thought this script worked-- i mean, i've got it working elsewhere-- but i can't figure out why this isn't working for a new site where i want to use it-- currently testing on LocalHost-- same place where i can test the other one which works.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title></title> <meta http-equiv="description" content="" />
<meta http-equiv="content-Style-Type" content="text/css" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/centrewebdestyle.css" />
<script type="javascript">
Rollimage = new Array()
Rollimage[0] = new Image(280,19)
Rollimage[0].src = "antirobots.gif"
Rollimage[1] = new Image(280,19)
Rollimage[1].src = "antirobotshover.gif"
function SwapOut() {
document.CWD.src = Rollimage[1].src;
return true;
}
function SwapBack() {
document.CWD.src = Rollimage[0].src;
return true;
}
</script>
</head>
<body id="contact">
<div id="pagewidth">
<div id="header">
<?php
include 'inc/navcontainer.php';
?>
</div>
<div id="maincol">
<img id="pagename" src="images/pagenames/contact.gif" height="62" width="235" border="0" alt="" />
<a href="link.htm"
onmouseover="SwapOut()"
onmouseout="SwapBack()">
<img name="CWD" src="antirobots.gif" height="19" width="280" border="0" /></a>
<!-- GETTING STARTED - PARA ONE -->
<!-- <p class="cantseeme">hiddentext</p> -->
</div> <!-- END MAINCOL -->
<?php
include 'inc/contfooter.php';
?>
</div>
<!-- END PAGEWIDTH -->
</body>
</html>
i got this originally from this page:
http://joemaller.com/js-singleroll.shtml
thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title></title> <meta http-equiv="description" content="" />
<meta http-equiv="content-Style-Type" content="text/css" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/centrewebdestyle.css" />
<script type="javascript">
Rollimage = new Array()
Rollimage[0] = new Image(280,19)
Rollimage[0].src = "antirobots.gif"
Rollimage[1] = new Image(280,19)
Rollimage[1].src = "antirobotshover.gif"
function SwapOut() {
document.CWD.src = Rollimage[1].src;
return true;
}
function SwapBack() {
document.CWD.src = Rollimage[0].src;
return true;
}
</script>
</head>
<body id="contact">
<div id="pagewidth">
<div id="header">
<?php
include 'inc/navcontainer.php';
?>
</div>
<div id="maincol">
<img id="pagename" src="images/pagenames/contact.gif" height="62" width="235" border="0" alt="" />
<a href="link.htm"
onmouseover="SwapOut()"
onmouseout="SwapBack()">
<img name="CWD" src="antirobots.gif" height="19" width="280" border="0" /></a>
<!-- GETTING STARTED - PARA ONE -->
<!-- <p class="cantseeme">hiddentext</p> -->
</div> <!-- END MAINCOL -->
<?php
include 'inc/contfooter.php';
?>
</div>
<!-- END PAGEWIDTH -->
</body>
</html>
i got this originally from this page:
http://joemaller.com/js-singleroll.shtml
thanks!