Why won't this code work???

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top