Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

raikm

problemas com texto de rolagem

Recommended Posts

bem eu tenho um codigo em javascript que é um texto de rolagem e gostaria de saber como colocar um link nas frases q aparece nele

 

 

ta ai

as partes q eu quero por o link eu deixei em negrito

 

 

<html>
<body>
<script language=JavaScript1.2>

var width=200  // largura
var height=300  // altura
var speed=2 // velocidade

var marqueecontents='<P ALIGN="left">'
marqueecontents=marqueecontents+'<font face=verdana size=1 color=#000080>'

marqueecontents=marqueecontents+'NOTICIAS DE ATUALIZAÇÃO DO SITE:<br><br><br>'

marqueecontents=marqueecontents+'<font face=verdana size=1 color=#000000>'

marqueecontents=marqueecontents+'[b]Predio de companhia cooperativa[/b].<br><br><br>'
marqueecontents=marqueecontents+'[b]Centenario da abertura dos portos[/b]<br><br><br>'
marqueecontents=marqueecontents+'[b]Mesa chinesa[/b].<br><br><br>'
marqueecontents=marqueecontents+'[b]Nova Friburgo Edem Club[/b].<br><br><br>'
marqueecontents=marqueecontents+'</font>'

if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+width+';height:'+height+'">'+marqueecontents+'</marquee>')

function regenerate()
{
	window.location.reload()
}

function regenerate2()
{
	if (document.layers)
	{
		setTimeout("window.onresize=regenerate",450)
		intializemarquee()
	}
}

function intializemarquee()
{
	document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
	document.cmarquee01.document.cmarquee02.document.close()
	thelength=document.cmarquee01.document.cmarquee02.document.height
	scrollit()
}

function scrollit()
{
	if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
		document.cmarquee01.document.cmarquee02.top-=speed
	setTimeout("scrollit()",100)
}
	else
	{
	document.cmarquee01.document.cmarquee02.top=marqueeheight
	scrollit()
	}
}
window.onload=regenerate2

	  </SCRIPT>
</body>
</html>

 

se alguem puder me ajudar eu agradeco :rolleyes:

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.