| |||
¿Como hacen eso? Hola,Me gustaria saber el script con el que se puede hacer algo como el que aparece en la pagina de telecinco.es . Me refiero al de arriba a la derecha, donde pone "Ahora en pantalla". ¿Como hago ue el texto se desplace asi? |
| |||
Re: ¿Como hacen eso? Hola 3dboy: Ahora no tengo aquí el script, pero es muy común. Haz una búsqueda por: 'scroll de noticias' y supongo que no tendrás problemas para encontrar uno. Korrikalari |
| |||
Re: ¿Como hacen eso? Acá te dejo el código <html> <body> <!-- Copiar dentro del tag BODY --> <script language="JavaScript1.2"> // Ancho (pixeles) var marqueewidth=150 // Alto var marqueeheight=150 // Velocidad (mayor, mas rapido) var speed=2 // Contenido var marqueecontents='<font face="Arial"><strong><big> ;Gracias por visitar <a href="http://www.webtutorial.com.ar">WebTutorial.</a> Si encontrás este programa útil, decile a tus amigos que lo descarguen de <a href="download/scriptmaster.zip">este lugar.</a> Que lo disfrutes!</big></strong></font>' 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> <ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01"> <layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};></layer> </ilayer> </body> </html> <hr noshade size=1><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE] |