Fotos Aleatórias
#1
Posted 05/12/2004, 10:51
abaixo vou postar o meu sistema de fotos aleatorias:
<%
Dim arrImg(3), nRand
arrImg(0)="imagem1.jpg"
arrImg(1)="imagem2.jpg"
arrImg(2)="imagem3.jpg"
Randomize()
nRand = Int(Rnd*UBound(arrImg))
response.write "<img src='"&arrImg(nRand)&"' border='0'>"
%>
valew pessoal
#2
Posted 05/12/2004, 11:40
#3
Posted 05/12/2004, 12:37
#4
Posted 05/12/2004, 12:41
<%
Dim arrImg(3), nRand, tempo
arrImg(0)="imagem1.jpg"
arrImg(1)="imagem2.jpg"
arrImg(2)="imagem3.jpg"
Randomize()
nRand = Int(Rnd*UBound(arrImg))
# Coloque o tempo aqui / 1000 == 1 segundo
tempo = 1000;
response.write "<img src='"&arrImg(nRand)&"' border='0'>"
response.write "<script>window.setTimeout('window.location.href=window.location.href'," & tempo & ");</script>"
%>
#5
Posted 05/12/2004, 16:05
#6
Posted 05/12/2004, 16:07
Grava em session o último usado, quando sortear, se o último usado for igual ao sorteado, sorteia novamente.
#7
Posted 23/02/2005, 17:19
Venha conhecer o maravilhoso mundo da Fórmula Mundial
Tudo sobre a categoria mais completa, mais rápida e emocionante do planeta sobre quatro rodas!
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)