Jump to content


BlindShooter

Member Since 12/12/2003
Offline Last Active 09/01/2006, 19:12
-----

Posts I've Made

In Topic: Index Com Fundo Randômico

14/12/2003, 13:02

Tentei dos dois jeitos e não funcionou =(
Alguém teria como colocar no ar ma página com esse código preu poder ver? Obrigado e até mais.

In Topic: Index Com Fundo Randômico

12/12/2003, 14:23

Beleza, valeu mesmo cara, tava achando que num ia conseguir =)
Vou ver se consigo fazer funcionar tb. Até mais e obrigado novamente. ^^

In Topic: Index Com Fundo Randômico

12/12/2003, 13:58

saquei faltou só o () lol XD
De qualquer maneira, num é possível, eu tenho que estar fazendo alguma coisa errada, pois o resultado é o mesmo ( http://www.animex.com.br/teste.htm ), eu acredito que o script esteja correto e talz, além do mais, num entendo nada de java, portanto minha opinião é um tanto quanto nula. Não seria necessário restringir o random.math? se não poderia sair um número como 2 e ficaria 2*16=32 que é um fundo inexistente. num sei =P

In Topic: Index Com Fundo Randômico

12/12/2003, 13:36

Eu estou usando o internet explorer 6
http://www.animex.com.br/teste.htm

eu posso ter feito algo errado, mas aqui está o código da página:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Teste</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>
<script language="javascript">
<!--
fundo=new Array(17);
fundo[0]="http://www.animex.com.br/images/random/animex_index_01.jpg";
fundo[1]="http://www.animex.com.br/images/random/animex_index_02.jpg";
fundo[2]="http://www.animex.com.br/images/random/animex_index_03.jpg";
fundo[3]="http://www.animex.com.br/images/random/animex_index_04.jpg";
fundo[4]="http://www.animex.com.br/images/random/animex_index_05.jpg";
fundo[5]="http://www.animex.com.br/images/random/animex_index_06.jpg";
fundo[6]="http://www.animex.com.br/images/random/animex_index_07.jpg";
fundo[7]="http://www.animex.com.br/images/random/animex_index_08.jpg";
fundo[8]="http://www.animex.com.br/images/random/animex_index_09.jpg";
fundo[9]="http://www.animex.com.br/images/random/animex_index_10.jpg";
fundo[10]="http://www.animex.com.br/images/random/animex_index_11.jpg";
fundo[11]="http://www.animex.com.br/images/random/animex_index_12.jpg";
fundo[12]="http://www.animex.com.br/images/random/animex_index_13.jpg";
fundo[13]="http://www.animex.com.br/images/random/animex_index_14.jpg";
fundo[14]="http://www.animex.com.br/images/random/animex_index_15.jpg";
fundo[15]="http://www.animex.com.br/images/random/animex_index_16.jpg";
fundo[16]="http://www.animex.com.br/images/random/animex_index_17.jpg";
escolha=Math.random * 16;
document.body.background=fundo[escolha];
//-->
</script>
</body>
</html>

In Topic: Index Com Fundo Randômico

12/12/2003, 13:32

Valeu pela ajuda, mas ainda assim eu não consegui (num é possível, posso ser tosco, mas nem tanto lol). veja só:
<script language="javascript">
<!--
fundo=new Array(17);
fundo[0]="http://www.animex.com.br/images/random/animex_index_01.jpg";
fundo[1]="http://www.animex.com.br/images/random/animex_index_02.jpg";
fundo[2]="http://www.animex.com.br/images/random/animex_index_03.jpg";
fundo[3]="http://www.animex.com.br/images/random/animex_index_04.jpg";
fundo[4]="http://www.animex.com.br/images/random/animex_index_05.jpg";
fundo[5]="http://www.animex.com.br/images/random/animex_index_06.jpg";
fundo[6]="http://www.animex.com.br/images/random/animex_index_07.jpg";
fundo[7]="http://www.animex.com.br/images/random/animex_index_08.jpg";
fundo[8]="http://www.animex.com.br/images/random/animex_index_09.jpg";
fundo[9]="http://www.animex.com.br/images/random/animex_index_10.jpg";
fundo[10]="http://www.animex.com.br/images/random/animex_index_11.jpg";
fundo[11]="http://www.animex.com.br/images/random/animex_index_12.jpg";
fundo[12]="http://www.animex.com.br/images/random/animex_index_13.jpg";
fundo[13]="http://www.animex.com.br/images/random/animex_index_14.jpg";
fundo[14]="http://www.animex.com.br/images/random/animex_index_15.jpg";
fundo[15]="http://www.animex.com.br/images/random/animex_index_16.jpg";
fundo[16]="http://www.animex.com.br/images/random/animex_index_17.jpg";
escolha=Math.random * 16;
document.body.background=fundo[escolha];
//-->
</script>

eu fiz uma página de testes com este código no body, mas não aconteceu nada.
E como eu poderia inserir esse script na página de index (cheia de layers lol). O atual código pra imagem de fundo do index é a seguinte:

<div id="Layer3" style="position:absolute; width:812px; height:596px; z-index:3; left: -3px; top: 7px; background-image: url(animex_index.jpg); layer-background-image: url(animex_index.jpg); border: 1px none #000000;">

Pior que num consegui fazer funcionar de jeito nenhum =/

IPB Skin By Virteq