

Peguei um sistema de banner rotativo em js mas só mostra a imagem...
Gostaria de saber como fazer com esse mesmo sitema :
Banner 0: http://www.algumacoi...m.br/banner.gif (endereço da imagem) no mesmo href="http://www.algumacoi...m.br/index.html ( Que quando a pessoa clicar nesse banner abrirá uma nova página em http://www.algumacoi...m.br/index.html.
A seguir o código a ser modificado.
Se alguém souber por favor me ajude, agradeço desde já.
<script language="JavaScript"> var numero = Math.floor(Math.random()*1); txt=""; alt=""; banner=""; width="300"; height="300"; if (numero == 0 ) { banner="URL DO BANNER"; } if (numero == 1 ) { banner="URL DO BANNER"; } document.write('<center>'); document.write('<img src=\"' + banner + '\" width=') document.write(width + ' height=' + height + ' '); document.write('alt=\"' + alt + '\" border=1><br>'); document.write('<small>' + txt + '</small></a>'); document.write('</center>'); </script>
Edição feita por: invasoesdemaniacos, 14/12/2003, 18:18.