JS
#1
Posted 18/12/2002, 15:09
<script>
anuncio=Math.random();
anuncio=anuncio*3;
anuncio=Math.round(anuncio);
if(anuncio==0)
{banner="banners/banneranunciante.gif";
link="http://www.siteanunc...ciante.com.br"}
if(anuncio==1)
{banner="banners/banneranunciante.gif";
link="http://www.siteanunc...ciante.com.br"}
if(anuncio==2)
{banner="banners/banneranunciante.gif";
link="http://www.siteanunc...ciante.com.br"}
if(anuncio==3)
{banner="banners/banneranunciante.gif";
link="http://www.siteanunc...ciante.com.br"}
document.write('<a href="'+link+'" target=_blank><img src="'+banner+'" width=468 height=60 border=0></a>')
setTimeout("location.reload()",120000)
</script>
... e salvei ele como "banner.js"
aí, no codigo fonte do meu site, eu coloquei assim:
<script src="banner.js">
.. só q naum deu certo... o q está errado..??
#2 offspring
Posted 18/12/2002, 15:21
#3
Posted 18/12/2002, 15:37
Agora, daria para alguem me responder por favor!!!
#4
Posted 18/12/2002, 17:20
#5
Posted 18/12/2002, 18:24
como assim..???///O script tá certinho... Só ta faltando colocar os links e endereços certos né?!
daria para me explicar direitinho por favor..??
Valew!!!
#6
Posted 18/12/2002, 19:38
#7
Posted 19/12/2002, 13:28
é claro.. akele lá era só um exemplo!!!Tipo, o script tá certo... Vai gerar um banner randomico... O que falta é colocar o nome de seus anunciantes certos! Vc colocou: "banners/banneranunciante.gif" e "www.siteanunciante.com"! Só falta colocar os gifs e endereços de seus anunciantes verdadeiros, entendeu?
Eu fiz tudo akilo com as banner anunciantes e respectivos enderecos, mas na hora de rodar, fica um espaco vazio na pagina...
#8
Posted 20/12/2002, 09:59
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)