본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Javascript scroller not working in Firefox

  • 2 답장
  • 8 이 문제를 만남
  • 3 보기
  • 최종 답변자: penn1668

more options

I have a Javascript scroller on a site that is working fine in IE but not even visible in Firefox 3.6.16. I've run the Error Console and got nothing, cleared cache and reloaded the page multiple times with no luck.

I don't write javascript so if I need to change something, please provide the code to replace it with. Thanks!

Here is the code for the script:

<script type="text/javascript"> 

		//Change script's width (in pixels)
		var marqueewidth=460
		//Change script's height (in pixels, pertains only to NS)
		var marqueeheight=20
		//Change script's scroll speed (larger is faster)
		var speed=4
		//Change script's contents
		var marqueecontents='<font face="Arial" color="#FFFFFF"><strong><big>Register NOW for the next Yoga Series - Healing Mudra Yoga! Starts April 4! See <a href="./classinfo.htm">Classes</a> page for information.</big></strong></font><background color="#00080">'
		
		if (document.all)
		document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+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('<nobr>'+marqueecontents+'</nobr>')
		document.cmarquee01.document.cmarquee02.document.close()
		thelength=document.cmarquee01.document.cmarquee02.document.width
		scrollit()
		}
		
		function scrollit(){
		if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
		document.cmarquee01.document.cmarquee02.left-=speed
		setTimeout("scrollit()",100)
		}
		else{
		document.cmarquee01.document.cmarquee02.left=marqueewidth
		scrollit()
		}
		}
		
		window.onload=regenerate2
		</script>
		<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01"> 
		<layer name="cmarquee02"></layer></ilayer>
I have a Javascript scroller on a site that is working fine in IE but not even visible in Firefox 3.6.16. I've run the Error Console and got nothing, cleared cache and reloaded the page multiple times with no luck. I don't write javascript so if I need to change something, please provide the code to replace it with. Thanks! Here is the code for the script: <pre><nowiki><script type="text/javascript"> //Change script's width (in pixels) var marqueewidth=460 //Change script's height (in pixels, pertains only to NS) var marqueeheight=20 //Change script's scroll speed (larger is faster) var speed=4 //Change script's contents var marqueecontents='<font face="Arial" color="#FFFFFF"><strong><big>Register NOW for the next Yoga Series - Healing Mudra Yoga! Starts April 4! See <a href="./classinfo.htm">Classes</a> page for information.</big></strong></font><background color="#00080">' if (document.all) document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+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('<nobr>'+marqueecontents+'</nobr>') document.cmarquee01.document.cmarquee02.document.close() thelength=document.cmarquee01.document.cmarquee02.document.width scrollit() } function scrollit(){ if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){ document.cmarquee01.document.cmarquee02.left-=speed setTimeout("scrollit()",100) } else{ document.cmarquee01.document.cmarquee02.left=marqueewidth scrollit() } } window.onload=regenerate2 </script> <ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01"> <layer name="cmarquee02"></layer></ilayer> </nowiki></pre>

글쓴이 cor-el 수정일시

모든 댓글 (2)

more options

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

more options

Thank you but this isn't my code nor is it new to the site. Its been running for years. However, it now does not appear to work in FF and it hasnt been changed. There's got to be some sort of conflict. When I researched the issue this forum came up time and time again for these types of issues. But I'll post there as well.