Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/11/2003, 10:47
Avatar de freegirl
freegirl
Colaborador
 
Fecha de Ingreso: octubre-2003
Ubicación: Catalonia
Mensajes: 4.334
Antigüedad: 21 años, 5 meses
Puntos: 156
por fin he solucionado mi problema . Despues de mucho probar scrollers, he encontrado un script senzillo y que te deja poner la cantidad de scrollers que quieras.

Pues nada os dejo aqui el codigo por si nunca necesitais un scroll de texto


<script language="JavaScript1.2">

/*
Cross browser scrolling text script
distributed by hypergurl.com
http://www.hypergurl.com
*/


//change the scrollers width (in pixels)
var scrollerwidth=450
//change the scrollers height
var scrollerheight=100
//change the scrollers scroll speed (larger is faster)
var speed=3
//change the scrollers contents
var scrollercontents='<font face="Arial" color="green" size="5"><b>Place your content here.<br> Script distributed by <a href="http://www.hypergurl.com">Hypergurl.com.</a> Please consider giving Hypergurl a link back when using this script.</b></font>'

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

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

function intializescroller(){
document.vscroller01.document.vscroller02.document .write(scrollercontents)
document.vscroller01.document.vscroller02.document .close()
thelength=document.vscroller01.document.vscroller0 2.document.height
scrollit()
}

function scrollit(){
if (document.vscroller01.document.vscroller02.top>=th elength*(-1)){
document.vscroller01.document.vscroller02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.vscroller01.document.vscroller02.top=scro llerheight
scrollit()
}
}

window.onload=regenerate2
</script>


<ilayer width=&{scrollerwidth}; height=&{scrollerheight}; name="vscroller01">
<layer name="vscroller02" width=&{scrollerwidth}; height=&{scrollerheight};></layer>
</ilayer>


saludos,

freegirl