setTimeout("init()", 1); var message=new Array() message[0]="" // font-color of the messagecounter just below the scroller textcountercolor="WHITE" // font-size of the messagecounter just below the scroller textcountersize=7 // distance of the scroller to the left margin of the browser-window (pixels) var scrollerleft=175 // distance of the scroller to the top margin of the browser-window (pixels) var scrollertop=1 // speed 1: lower means faster var pause=10 // speed 2: higher means faster var step=1 // font-size var fntsize=12 // font-family var fntfamily="times new roman" // font-weight: 1 means bold, 0 means normal var fntweight=0 var scrollntimes=5 // do not edit the variables below var scrollerwidth=500 var scrollerheight=60 var scrollerleft_in=scrollerleft+20 var scrollertop_in=scrollertop+2 var backgroundimagecontent var clipleft,clipright,cliptop,clipbottom var i_message=0 var timer var textwidth var textcontent="" var textcountercontent="" if (fntweight==1) {fntweight="700"} else {fntweight="100"} function init() { gettextcontent() if (document.all) { text.innerHTML=textcontent textcounter.innerHTML=textcountercontent textwidth=text.offsetWidth document.all.text.style.posTop=scrollertop_in document.all.text.style.posLeft=scrollerleft_in+scrollerwidth document.all.textcounter.style.posTop=scrollertop_in+14 document.all.textcounter.style.posLeft=scrollerleft_in+0 document.all.backgroundimage.style.posTop=scrollertop document.all.backgroundimage.style.posLeft=scrollerleft clipleft=0 clipright=0 cliptop=0 clipbottom=scrollerheight document.all.text.style.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" scrolltext() } } function scrolltext() { if (document.all) { if (document.all.text.style.posLeft>=scrollerleft_in-textwidth) { document.all.text.style.posLeft-=step clipright+=step if (clipright>scrollerwidth) { clipleft+=step } document.all.text.style.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" if ((document.all.text.style.posLeft>=scrollerleft_in) || (scrollntimes>1)) { var timer=setTimeout("scrolltext()",pause) } } else { scrollntimes-- changetext() } } } function changetext() { i_message++ if (i_message>message.length-1) {i_message=0} gettextcontent() if (document.all) { text.innerHTML=textcontent textwidth=text.offsetWidth textcounter.innerHTML=textcountercontent document.all.text.style.posLeft=scrollerleft_in+scrollerwidth clipleft=0 clipright=0 document.all.text.style.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" scrolltext() } } function stopit() { document.all.text.stop(); } function playit() { document.all.text.start(); } function gettextcontent() { textcontent=""+message[i_message]+"" }