Article View: chile.comp.programacion
Article #2516Re: Scroll en Javascript compatible?
From: :: BoozyWoozy ::
Date: Sat, 03 Dec 2005 08:45
Date: Sat, 03 Dec 2005 08:45
65 lines
2935 bytes
2935 bytes
partiendo por que marquee es de i explorer
prueba con lo siguente:
<marquee width="350" height="10" scrolldelay="3" direction="left"
onMouseOut="start()" onMouseOver="stop()"
>----aqui contenido de la marquesina ----</marquee>
slds
"Pintamono" <pintamono79@yahoo.es> escribi๏ฟฝ en el mensaje
news:1133537222.740415.55990@o13g2000cwo.googlegroups.com...
> Este codigo hace una marquesina desplasandose por pantalla, la cosa es
> que no funciona en firefox...
> por que???
> bueno, antes de colocar este codigo probe colocando un <marquee> y
> funcionaba sin problemas en IE y Firefox hasta que le colocaba la
> propiedad "width" en ese momento dejaba de funcionar en firefox....
> Como lo hago para que este codigo sea compatible con
> firefox+IE+opera+"otro navegador"???
>
> <script language="JavaScript1.2">
>
> var marqueewidth=350
> var marqueeheight=10
> var speed=3
> var marqueecontents='<font class="texto" size="1">Mensaje del
> scroll.</font>'
>
> if (document.all)
> document.write('<marquee direction="left" scrollAmount='+speed+'
> style="width:'+marqueewidth+';height:'+marqueeheight+'">'+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>
>
Technical Details
Message-ID:
<dmrlqg$l55$1@proxy.ifxnw.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news2.ifxnw.cl!not-for-mailReferences:
<1133537222.740415.55990@o13g2000cwo.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,11068600096d7831 X-Google-Attributes: gid1593cb,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news2.ifxnw.cl!not-for-mail From: ":: BoozyWoozy ::" <notengonivoyatener@hotmail.com> Newsgroups: chile.comp.programacion Subject: Re: Scroll en Javascript compatible? Date: Sat, 3 Dec 2005 05:45:55 -0300 Organization: IFX Networks News Server Lines: 67 Message-ID: <dmrlqg$l55$1@proxy.ifxnw.cl> References: <1133537222.740415.55990@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 200.73.29.123 X-Trace: proxy.ifxnw.cl 1133599376 21669 200.73.29.123 (3 Dec 2005 08:42:56 GMT) X-Complaints-To: abuse@ifxnetworks.com NNTP-Posting-Date: Sat, 3 Dec 2005 08:42:56 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original