Ir para conteúdo
Fórum Script Brasil

Abud

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre Abud

Abud's Achievements

0

Reputação

  1. Olá Pessoal, Tenho um script que uso na minha página que funciona bem com jpg ou gif, mas estou precisando colocar também um banner feito em flash. Se alguém já fez ou souber como posso alterar, por favor ajudem. Segue o código : <script LANGUAGE="JavaScript"> var theImages = new Array() theImages[0] = 'banner1.jpg' theImages[1] = 'banner2.jpg' theImages[2] = 'banner3.gif' var j = 0 var p = theImages.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write('<img src="'+theImages[whichImage]+'"width=468 height=60>'); } </script> <title>Banner Rotativo</title> </head> <body> <script LANGUAGE="JavaScript"> showImage(); </script> </body> </html> um abraço a todos Abud
×
×
  • Criar Novo...