/* 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() // 11.03.2010 23:00:04 line[1]=" ADSL . . . 3378 kbit/s " // 11.03.2010 23:00:04 line[2]=" UPC . . . 7395 kbit/s " // 11.03.2010 23:00:04 line[3]=" U:fon . . . 256 kbit/s " // 11.03.2010 23:00:04 line[4]=" O2 CDMA . . . 398 kbit/s " // 11.03.2010 23:00:04 line[5]=" T-Mobile 4G . . . 319 kbit/s " // 11.03.2010 23:00:04 line[6]=" O2 3G . . . 195 kbit/s " // 11.03.2010 23:00:04 line[7]=" Premium DSL . . . 3056 kbit/s " // 11.03.2010 23:00:04 line[8]=" O2 GPRS/EDGE . . . 89 kbit/s " // 11.03.2010 23:00:04 line[9]=" T-Mobile GPRS/EDGE . . . 54 kbit/s " // 11.03.2010 23:00:04 line[10]=" Vodafone GPRS/EDGE . . . 83 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 // -->