can achieve uniform, seamless, plus links and other cosmetic effects, this code is to achieve this function, so that the text from right to right to smooth scrolling, scrolling width, height, speed can be set.
<HTML> <HEAD> <meta http-equiv= ' content-type ' content= ' text/html; charset=gb2312 ' > <title>js text Left Movement </TITLE> </HEAD> <body > <script language= "JavaScript1 .2 "> var marqueewidth=350 var marqueeheight=22 var speed=5 var marqueecontents= ' <strong><big> Welcome to Yun-Habitat Community Network Page special effects column, fine effects all acquisition! </big></strong></font> ' if (document.all) document.write (' <marquee scrollamount= ' +speed+ ' + marqueewidth+ ' > ' +marqueecontents+ ' </marquee> ' function regenerate () {window.location.reload ()} function Regenerate2 () {if (document.layers) {settimeout ("window.onresize=regenerate", 450) Intializemarquee ()}} function in Tializemarquee () {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> </BODY> </HTML>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]