Fóruns sobre PHP, JavaScript, HTML, MySQLi, jQuery, Banco de Dados, CSS


Moderador: web

 
Avatar do usuário
ADMIN
ADMIN
Tópico Autor
Mensagens: 17722
Nome: Kleber
Descrição do site: Onde você encontra scripts grátis para o seu site
Sexo: Masculino
Localização: RJ / RJ / Brasil
Contato:

Script para mostrar um link a cada minuto

18-03-2007 00:16

Abaixo segue um script para mostrar um link diferente a cada minuto.

<script language="javascript"> /* 60 no linkno equivale ao número de minutos */ var linkno = 60; var date = new Date(); var rd = date.getMinutes(); var ra = rd % linkno; var re = +ra; var mo=0 if (re < 1) re=++re /* link para 00 minuto */ if (re == 00) { re = "http://www.seusite.com/";mo = "seusite.com";}       /* link pra 01 minuto, etc... */ if (re == 01) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 02) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 03) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 04) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 05) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 06) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 07) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 08) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 09) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 10) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 11) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 12) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 13) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 14) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 15) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 16) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 17) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 18) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 19) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 20) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 21) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 22) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 23) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 24) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 25) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 26) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 27) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 28) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 29) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 30) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 31) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 32) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 33) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 34) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 35) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 36) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 37) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 38) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 39) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 40) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 41) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 42) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 43) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 44) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 45) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 46) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 47) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 48) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 49) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 50) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 51) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 52) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 53) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 54) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 55) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 56) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 57) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 58) { re = "http://www.seusite.com/";mo = "seusite.com";} if (re == 59) { re = "http://www.seusite.com/";mo = "seusite.com";}   var link="<a href='"+re+"' target='_blank'>"+mo+"</a>"; document.write(link); </script>

0
A melhor hospedagem para o seu site HostGator!

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado