Ir para conteúdo
Fórum Script Brasil
  • 0

Script De Noticias...


Guest - carla -

Pergunta

3 respostass a esta questão

Posts Recomendados

  • 0

clique com o botão direito sobre o texto da noticia e exibir codigo fonte

da uma olhada!

<script language="JavaScript1.2">

/*

Pausing updown message scroller-

&copy; Dynamic Drive (www.dynamicdrive.com)

For full source code, installation instructions,

Terms Of Use, visit http://www.dynamicdrive.com

*/

//configure the below five variables to change the style of the scroller

var scrollerwidth=176

var scrollerheight=110

var scrollerbgcolor='none'

//set below to '' if you don't wish to use a background image

var scrollerbackground='img/pt_fd_table.gif'

//configure the below variable to change the contents of the scroller

var messages=new Array()

messages[0]="<font face='none'><img src='../img/applaus_news/not_jan_fev_01-exposicao.jpg' align='left' hspace='8'><b>Exposição</b><br> Contrastes 2006 - A Arte no Futebol &nbsp;<b><br><br>&raquo;&nbsp;09 de janeiro a 09 de Fevereiro</b></font>"

messages[1]="<font face='none'><img src='../img/applaus_news/not_jan_fev_04-carnaval.jpg' align='left' hspace='6'><b>Carnaval 2006</b><br>Baile Pré-Carnavalesco</font>&nbsp;<b><br>&raquo;&nbsp;10 de fevereiro, das 21h às 3h</b></font>"

messages[2]="<font face='none'><img src='../img/applaus_news/not_jan_fev_03-exposicao.jpg' align='left' hspace='6'><b>Exposição</b><br> A Arte Lúdica de Paula Grau</font>&nbsp;<b><br>&raquo;&nbsp;13 de fevereiro a 9 de março</b></font>"

messages[3]="<font face='none'><img src='../img/applaus_news/not_jan_fev_05-seminario.jpg' align='left' hspace='6'><b>Seminário</b><br> Dicas de Segurança para Mulheres</font>&nbsp;<b><br>&raquo;&nbsp;21 de fevereiro, às 20h</b></font>"

messages[4]="<font face='none'><b>Informações e reservas</b><br>(11) 2133-8606 ou <a href=mailto:cultural@clubtransatlantico.com.br> cultural@clubtransatlantico.com.br</a></font></font>"

///////Do not edit pass this line///////////////////////

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

if (messages.length>1)

i=2

else

i=0

function move1(whichlayer){

tlayer=eval(whichlayer)

if (tlayer.top>0&&tlayer.top<=5){

tlayer.top=0

setTimeout("move1(tlayer)",3000)

setTimeout("move2(document.main.document.second)",3000)

return

}

if (tlayer.top>=tlayer.document.height*-1){

tlayer.top-=5

setTimeout("move1(tlayer)",50)

}

else{

tlayer.top=scrollerheight

tlayer.document.write(messages)

tlayer.document.close()

if (i==messages.length-1)

i=0

else

i++

}

}

function move2(whichlayer){

tlayer2=eval(whichlayer)

if (tlayer2.top>0&&tlayer2.top<=5){

tlayer2.top=0

setTimeout("move2(tlayer2)",4000)

setTimeout("move1(document.main.document.first)",4000)

return

}

if (tlayer2.top>=tlayer2.document.height*-1){

tlayer2.top-=5

setTimeout("move2(tlayer2)",50)

}

else{

tlayer2.top=scrollerheight

tlayer2.document.write(messages)

tlayer2.document.close()

if (i==messages.length-1)

i=0

else

i++

}

}

function move3(whichdiv){

tdiv=eval(whichdiv)

if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){

tdiv.style.top=0

setTimeout("move3(tdiv)",5000)

setTimeout("move4(second2_obj)",5000)

return

}

if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){

tdiv.style.top=parseInt(tdiv.style.top)-5

setTimeout("move3(tdiv)",50)

}

else{

tdiv.style.top=scrollerheight

tdiv.innerHTML=messages

if (i==messages.length-1)

i=0

else

i++

}

}

function move4(whichdiv){

tdiv2=eval(whichdiv)

if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){

tdiv2.style.top=0

setTimeout("move4(tdiv2)",4000)

setTimeout("move3(first2_obj)",4000)

return

}

if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){

tdiv2.style.top=parseInt(tdiv2.style.top)-5

setTimeout("move4(second2_obj)",50)

}

else{

tdiv2.style.top=scrollerheight

tdiv2.innerHTML=messages

if (i==messages.length-1)

i=0

else

i++

}

}

function startscroll(){

if (ie||dom){

first2_obj=ie? first2 : document.getElementById("first2")

second2_obj=ie? second2 : document.getElementById("second2")

move3(first2_obj)

second2_obj.style.top=scrollerheight

second2_obj.style.visibility='visible'

}

else if (document.layers){

document.main.visibility='show'

move1(document.main.document.first)

document.main.document.second.top=scrollerheight+5

document.main.document.second.visibility='show'

}

}

window.onload=startscroll

</script>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...