Anda di halaman 1dari 1

<html> <head> <title>Banner rotativo</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> var ultimo=-1, dBanner; function carrega(x)

{dBanner=x;Banners()} function Banners() { var MNews = new Array(); MNews[0]= '<A HREF="LINK DO BANNER" target="_blank"><IMG SRC="ENDEREO DA IMAGEM" WIDTH="120" HEIGHT="60" BORDER="0" ALT=""></a>'; MNews[1]= '<A HREF="LINK DO BANNER" target="_blank"><IMG SRC="ENDEREO DA IMAGEM" WIDTH="120" HEIGHT="60" BORDER="0" ALT=""></a>' MNews[2]= '<A HREF="LINK DO BANNER" target="_blank"><IMG SRC="ENDEREO DA IMAGEM" WIDTH="120" HEIGHT="60" BORDER="0" ALT=""></a>' while((Numero = parseInt(Math.random()*MNews.length))==ultimo); dBanner.innerHTML=MNews[Numero]; setTimeout("Banners()",10000); } </script></head> <body bgcolor="#FFFFFF" topmargin=0 leftmargin=0 text="#000000" onLoad=carrega(t his.divBanner)> <table width="120" border="0" cellspacing="0" cellpadding="0" height="60" border color="#000000"> <tr> <td> <div align="center" id=divBanner></div> </td> </tr> </table> </body> </html>