Начало
Scrolls
Textarea скроллер
Сохраняет много места на странице, показывая бесконечное количество новостей, обновлений, или другую информацию.
The news will appear here when the page has finished loading.
JavaScript Scrolls: Textarea скроллер
<!-- THREE STEPS TO INSTALL TEXTAREA SCROLLER: 1. Copy the coding into the HEAD of your HTML document 2. Add the onLoad event handler into the BODY tag 3. Put the last coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin var max=0; function textlist() { max=textlist.arguments.length; for (i=0; i<max; i++) this[i]=textlist.arguments[i]; } tl = new textlist( "This is the newsticker. Great for giving visitors information. And lot's of it.", "Infinite lines to write on, and an easy configuration - overall it's a breeze :-)", "You can configure the messages and the size of the textarea, neat!", "Internet Explorers can also see our newsticker backround and text color. But that will probably only work with IE.", "Signed Tarjei Davidsen; StG member." ); var x = 0; pos = 0; var l = tl[0].length; function textticker() { document.tickform.tickfield.value = tl[x].substring(0, pos) + "_"; if(pos++ == l) { pos = 0; setTimeout("textticker()", 2000); if(++x == max) x = 0; l = tl[x].length; } else setTimeout("textticker()", 50); } // End --> </script> </HEAD> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY OnLoad="textticker()"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <center> <form name=tickform> <textarea name=tickfield rows=3 cols=38 style="background-color: rgb(0,0,0); color: rgb(255,255,255); cursor: default; font-family: Arial; font-size: 12px" wrap=virtual>The news will appear here when the page has finished loading.</textarea> </form> </center> <!-- Script Size: 1.89 KB -->