Esto debería marcarse como OT desde el título... Veo que el ejemplo usa una pobre tecnica de poner todo el código en un sola línea, veo que usa los archivos: scroller4newsticns6.js scroller4newsticie.js
Que supongo uno sera para IE, FF, etc y otro para NS. También tengo una teoría... En un div relativo, si se aumentan los pixeles de posicionamiento podría crearse un efecto similar... Saludo, DJ-Dom 2006/5/29, Wilfredo Rodriguez <[EMAIL PROTECTED]>: > Dice descargar un programa en Windows "Trial" para hacer estas > marquesinas que de igual manera genera código ofuscado. De todos modos > encontre otra que hace exactamente lo mismo, ahora me pondre a > entender el código, aca lo pego: > > <html> > <body> > > <table width="100px"> > <tr> > <td height="100px"> > <script language="JavaScript1.2"> > > // Distributed by http://www.hypergurl.com > > // Scrollers width here (in pixels) > var scrollerwidth="450px" > > // Scrollers height here > var scrollerheight="100px" > > // Scrollers speed here (larger is faster 1-10) > var scrollerspeed=1 > > > > // Scrollers content goes here! Keep all of the message on the same line! > > > var scrollercontent='<center><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> The scrolling > message will now pause on mouseover.<br>Thanks David for the > update!</b></font><center>' > > var pauseit=1 > > > // Change nothing below! > > scrollerspeed=(document.all)? scrollerspeed : Math.max(1, > scrollerspeed-1) //slow speed down by 1 for NS > var copyspeed=scrollerspeed > var iedom=document.all||document.getElementById > var actualheight='' > var cross_scroller, ns_scroller > var pausespeed=(pauseit==0)? copyspeed: 0 > > function populate(){ > if (iedom){ > cross_scroller=document.getElementById? > document.getElementById("iescroller") : document.all.iescroller > cross_scroller.style.top=parseInt(scrollerheight)+8+"px" > cross_scroller.innerHTML=scrollercontent > actualheight=cross_scroller.offsetHeight > } > else if (document.layers){ > ns_scroller=document.ns_scroller.document.ns_scroller2 > ns_scroller.top=parseInt(scrollerheight)+8 > ns_scroller.document.write(scrollercontent) > ns_scroller.document.close() > actualheight=ns_scroller.document.height > } > lefttime=setInterval("scrollscroller()",20) > } > window.onload=populate > > function scrollscroller(){ > > if (iedom){ > if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8)) > cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px" > else > cross_scroller.style.top=parseInt(scrollerheight)+8+"px" > } > else if (document.layers){ > if (ns_scroller.top>(actualheight*(-1)+8)) > ns_scroller.top-=copyspeed > else > ns_scroller.top=parseInt(scrollerheight)+8 > } > } > > if (iedom||document.layers){ > with (document){ > if (iedom){ > write('<div > style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden" > onMouseover="copyspeed=pausespeed" > onMouseout="copyspeed=scrollerspeed">') > write('<div id="iescroller" > style="position:absolute;left:0px;top:0px;width:100%;">') > write('</div></div>') > } > else if (document.layers){ > write('<ilayer width='+scrollerwidth+' height='+scrollerheight+' > name="ns_scroller">') > write('<layer name="ns_scroller2" width='+scrollerwidth+' > height='+scrollerheight+' left=0 top=0 > onMouseover="copyspeed=pausespeed" > onMouseout="copyspeed=scrollerspeed"></layer>') > write('</ilayer>') > } > } > } > > </script> > > </td> > </tr> > </table> > </body> > </html> > > > On 5/29/06, Ramon Lapenta <[EMAIL PROTECTED]> wrote: > > Wilfredo Rodriguez escribió: > > > Saludos: > > > > > > Estoy intentando realizar una Marquesina de noticias que tome noticias > > > automáticamente desde un RSS, la párte más dificil ya está hecha, que > > > es la parte de tomar el RSS lo cual lo hago con PHP, pero aún me falta > > > la manera de como debo mostrar las noticias, exactamente lo que busco > > > hacer es lo siguiente: > > > > > > http://www.news-scroller.com/scroller4newstic.html > > > > > > En este caso el código parece estár ofuscado, o simplemente inentendible. > > > > > > Agradecería mucho su ayuda. > > > > > > Hasta luego... > > > > > Ofuscado? > > Yo lo veo bien el JS: > > http://www.news-scroller.com/scroller4newsticie.js > > > > Ademas por ahi dice de donde descargarlo y tal. > > _______________________________________________ > > Lista de distribución Ovillo > > Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org > > Puedes modificar tus datos o desuscribirte en la siguiente dirección: > > http://ovillo.org/mailman/listinfo/ovillo > > > > > -- > _ ___________________________________ > | > | Att. WRRH > | Debian User > | msn,googletalk = <[EMAIL PROTECTED]> > | cv = <http://curriculum.asoajedrene.net> > | blog = <http://libertad.asoajedrene.net> > | > | "Software Libre es un asunto de libertad, > | no de precio. Para entender el concepto, > | debes pensar en libre como en libertad > | de expresión, no como en cerveza gratis. > | Software Libre se refiere a la libertad > | de los usuarios para ejecutar, copiar, > | distribuir, estudiar, cambiar > | y mejorar el software." > |_______________________________________________| > _______________________________________________ > Lista de distribución Ovillo > Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org > Puedes modificar tus datos o desuscribirte en la siguiente dirección: > http://ovillo.org/mailman/listinfo/ovillo > -- www.dj-dom.net [EMAIL PROTECTED] _______________________________________________ Lista de distribución Ovillo Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org Puedes modificar tus datos o desuscribirte en la siguiente dirección: http://ovillo.org/mailman/listinfo/ovillo