L
lewie
I am trying to create a roataing banner for my website, but the I cannot get
the following code to work, can anyone help me....... please.....
<html>
<head><title>Test Page</title>
<script language="javascript">
<!--
var infonum = 1;
function rotateinfo() {
if (++infonum > 3)
infonum = 1;
info.src = "info" + infonum + ".jpg";
window.setTimeout('rotateinfo();', 3000);
}
//-->
</script>
</head>
<body onLoad="window.setTimeout=('rotateinfo();', 3000);">
<p align="center">
<a><img id="info" border="0" src="info1.jpg" width="474" height="100"
style="border-style: solid; border-width: 1px; padding-left: 4px;
padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></a></p>
<p> </p>
</body>
</html>
the following code to work, can anyone help me....... please.....
<html>
<head><title>Test Page</title>
<script language="javascript">
<!--
var infonum = 1;
function rotateinfo() {
if (++infonum > 3)
infonum = 1;
info.src = "info" + infonum + ".jpg";
window.setTimeout('rotateinfo();', 3000);
}
//-->
</script>
</head>
<body onLoad="window.setTimeout=('rotateinfo();', 3000);">
<p align="center">
<a><img id="info" border="0" src="info1.jpg" width="474" height="100"
style="border-style: solid; border-width: 1px; padding-left: 4px;
padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></a></p>
<p> </p>
</body>
</html>