کد
<!--***********|www.gpgtools.blogsky.com|*********** --> <!-- This is a scroller that allows you to display text like in a terminal --> <SCRIPT LANGUAGE="JavaScript"> var max=0; function coffeetext() { max=coffeetext.arguments.length; for (i=0; i<max; i++) this[i]=coffeetext.arguments[i]; } tl = new coffeetext( "This is a scroller that allows you to display text like in a terminal.", "Download some great software here http://www.coffeecup.com", "The text scroller keeps going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going, and going." ); var x = 0; pos = 0; var l = tl[0].length; function coffeetextdisplay() { document.tickform.coffeetextfield.value = tl[x].substring(0, pos) + "_"; if(pos++ == l) { pos = 0; setTimeout("coffeetextdisplay()", 2000); if(++x == max) x = 0; l = tl[x].length; } else setTimeout("coffeetextdisplay()", 50); } </script> <!-- Put the onLoad attribute into your BODY tag --> <BODY OnLoad="coffeetextdisplay()"> <!-- Copy this into the BODY of your HTML document --> <center> <form name=tickform> <textarea name=coffeetextfield rows=6 cols=38 style="background-color: rgb(0,0,0); color: rgb(255,255,255); cursor: default; font-family: Arial; font-size: 12px" wrap=virtual>Text will appear here when the page has finished loading. <!--***************| www.gpgir.org|************** -->