Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/02/2002, 15:25
Avatar de Alvariux
Alvariux
Usuario no validado
 
Fecha de Ingreso: noviembre-2001
Ubicación: Yucatán México
Mensajes: 499
Antigüedad: 22 años, 5 meses
Puntos: 0
Re: scroll en java

Este mensaje seria mucho mejor en el foro de java pero.......


un scroll vertical

<script>
//Specify the marquee's width (in pixels)
var marqueewidth=142
//Specify the marquee's height
var marqueeheight=200
//Specify the marquee's scroll speed (larger is faster)
var speed=2
//Specify the marquee contents
var marqueecontents='<center><br><font color="black" size="2"face="Verdana">Ves este script está muy bien, no ocupa mucho espacio, queda muy bien y puedes escribir tantas cosas como quieras.</center><br><center>También puedes poner links: ejemplo</center><br><center>Si quieres enviarme un e-mial: <a href="mailto:[email protected]&quot ;> Presiona aquí.</a></center><br></u></i></font><br></center>'
if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marque eheight+'">'+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.w rite(marqueecontents)
document.cmarquee01.document.cmarquee02.document.c lose()
thelength=document.cmarquee01.document.cmarquee02. document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=t helength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marque eheight
scrollit()
}
}
window.onload=regenerate2
</script>



saludos


<embed width="200HEIGHT=50" height="50" quality="high" bgcolor="#ffffff" src="http://www.geocities.com/aglezt/alvaro.swf"></embed>