Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
Guest Fernando Sena

Mudando A Capa Do Meu Site Automaticamente

Question

Guest Fernando Sena

Com faço para mudar a imagem(capa) do meu site com este exemplo aqui: www.180graus.com???? Urgente!!!!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Veja o exemplo:

<script language="JavaScript">

var imagens = new Array();

imagens[1]= 'foto1.jpg';

imagens[2] = 'foto2.jpg';

imagens[3] = 'foto3.jpg';

imagens[4] = 'foto4.jpg';

imagens[5] = 'foto5.jpg';

var contador = 1;

function mostraImagem()

{

    document.all.foto.src = imagens[contador];

    contador++;

    if(contador>=imagens.length)

        contador = 1;

}

</script>

<body onLoad="mostraImagem();setTimer('mostraImagem()',3000)">

<img name="foto">

</body>

Isso mostrará 5 fotos numa imagem, com intervalo de 3 segundos entra cada uma.

É isso aí???

:lol:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  



  • Forum Statistics

    • Total Topics
      148588
    • Total Posts
      644154
×
×
  • Create New...