/* Typing Scroller Submitted by bengaliboy00@hotmail.com (hp: http://www.angelfire.com/nt/bengaliboy/) With modifications by Dynamicdrive.com For full source code, usage terms, and 100s more scripts, visit http://dynamicdrive.com */ //Secify scroller contents var line=new Array() // 08.02.2012 11:00:01 line[1]=" ADSL . . . 6053 kbit/s " // 08.02.2012 11:00:01 line[2]=" UPC . . . 13255 kbit/s " // 08.02.2012 11:00:01 line[3]=" U:fon . . . 761 kbit/s " // 08.02.2012 11:00:01 line[4]=" O2 CDMA . . . 451 kbit/s " // 10.01.2012 13:00:05 line[5]=" T-Mobile 4G . . . 2566 kbit/s " // 08.02.2012 11:00:01 line[6]=" O2 3G . . . 1794 kbit/s " // 08.02.2012 11:00:01 line[7]=" Premium DSL . . . 3966 kbit/s " // 08.02.2012 11:00:01 line[8]=" O2 GPRS/EDGE . . . 1794 kbit/s " // 08.02.2012 11:00:01 line[9]=" T-Mobile GPRS/EDGE . . . 2219 kbit/s " // 08.02.2012 11:00:01 line[10]=" Vodafone GPRS/EDGE . . . 2266 kbit/s " line[11]=" naměřené rychlosti: " //--Don't edit below this line var longestmessage=1 for (i=2;iline[longestmessage].length) longestmessage=i } //Auto set scroller width var tscroller_width=line[longestmessage].length lines=line.length-1 //--Number of lines //if IE 4+ or NS6 if (document.all||document.getElementById){ document.write('
') document.write('') document.write('
') } temp="" nextchar=-1; nextline=1; cursor="\\" function animate() { if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines) { nextline++; nextchar=-1; document.vypisrychlostiform.vypisrychlosti.value=temp+' '; temp=""; setTimeout("nextstep()",2500) } else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length) { nextline=1; nextchar=-1; document.vypisrychlostiform.vypisrychlosti.value=temp+' '; temp=""; setTimeout("nextstep()",2500) } else { nextstep() } } function nextstep(){ if (cursor=="\\"){ cursor="|"} else if (cursor=="|"){ cursor="/"} else if (cursor=="/"){ cursor="-"} else if (cursor=="-"){ cursor="\\"} nextchar++; temp+=line[nextline].charAt(nextchar); document.vypisrychlostiform.vypisrychlosti.value=temp+cursor setTimeout("animate()",100) } //if IE 4+ or NS6 if (document.all||document.getElementById) window.onload=animate // -->