Hi,
i try to make some simple link rotating script but i stuck in the middle.I want to change every 2 second the visibility of div layer.
Here is the code
<html>
<head>
<style>
.visible{border:solid 1px black;width:200;height:100;
display: block; background-color: #990099;
font-family: “Futura Lt BT”;font-size: 10pt;
color: #FFFFFF; padding-top:50; padding-left:50;}
.hidden{border:solid 1px black;
width:200;display: none;}
</style>
<script type=”text/javascript”>
function banner_change1()
{
banner1.className=’visible’;
banner2.className=’hidden’;
}
function banner_change2()
{
banner2.className=’visible’;
banner1.className=’hidden’;
}
function rotate()
{
var TimerID;
a=0;
while(a==0){
banner_change1();
TimerID=setTimeout(“banner_change2()”,2000);
return;
}
}
</script>
</head>
<body bgcolor=”#ADD8E6″ onload=”rotate()” >
<table height=”200″ border=”1″>
<tr>
<td width=”196″> <div id=”placeholder” style=”width:200;height:100;”>
<div id=”banner1″ class=”hidden” style=”background-color:#FF8090;”><a href=”#”>Link
One</a></div>
<div id=”banner2″ class=”hidden” ><a href=”#”>Link Two</a></div>
</div></td>
</tr>
</table>
</body>
</html>
I can`t figure what is wrong so if someone could help i be very pleased.
Thanks
Wrong