This is a JavaScript to scroll a list of messages or texts to save spaces on your web page. It will show a text one after another from a list which can be displayed in a single DIV or INPUT element. It is best to implement this one for news texts and texts ads.
<html>
<head>
<script language="JavaScript">
//List your messages here
var msg = new Array();
msg[0] = "This is message 1";
msg[1] = "This is message 2";
msg[2] = "This is message 3";
//Here's the function to scroll your messages
function play(num){
//Check whether it reach your last message
//to go back to the first message
if(num >= msg.length)
num = 0;
//Variable declarations
var tmp_elm = document.getElementById("div_display");
var tmp = tmp_elm.innerHTML;
var tmp_next;
//Scrolling process
var random = Math.floor(Math.random() * msg[num].length);
var tmp_chr = msg[num].charAt(random);
if(tmp == msg[num]){
num++;
setTimeout("play("+num+")",4000);
return;
}
if(tmp_chr == tmp.charAt(random)){
play(num);
return;
}
//Preparing output
var first_part = tmp.substring(0,random);
random++;
var last_part = tmp.substring(random,msg[num].length);
var tmp_next = first_part + tmp_chr + last_part;
tmp_elm.innerHTML = tmp_next;
//Recall play
setTimeout("play("+num+")",200);
}
</script>
</head>
<body onload="play(0);">
<div id="div_display">SCROLLED MESSAGES</div>
</body>
</html>testimonial scroller script, testimonials slider in javascript, scrolling testimonials javascript, testimonials slider script, javascript testimonial scroller, javascript scrolling testimonials, wp scroller, testimonials scroller javascript, javascript scrolling random messages that work in firefox -vir, testimonial scroller javascript, javascript message scroller, wp text scroller, text scroller, testimonial scroller for wp, text scroller js aleatorio, text testimonial slider javascript, testimonial scroller java script, javascript scrolling message, testimonials on website one by one in scroll, testimonial text scrolling script, javascript message, testimonial scroller webpage codee, javascript message list, testimonial scroller on website, javascript messagelist, javascript random scroller, javascript rolling testimonials, testimonial scroll text, scrolling the text one after another with code, scrolling testimonials#, scrolling testimonials wordpress plugin, testimonials scroller 3 javascript for text, javascript list of message, javascript array text print msg[1], testimonial scrolling script, html scroll random text, wordpress widget text scrollbar, widget displaying text one after other, why testimonial scrolling JAVASCRIPT, textscroller javascript, texts scroller, text xcrolling in wp, html scrolling testimonial text, scroll text one after another, html scrolling text one after another, testimonials text scrolling, html sliding text one after another, random javascript scrolling different texts, scrolling random text with links javascript, random list java scrolling, javascript scrolling christman lights, quote scroller javascript, php testimonials scroller, php scrolling testimonial, one after another text scrolling in html code, message scroller, latest css text scrolling demo, js testimonial scroller, javascript testimonials slider add author, javascript scrolling list random order, javascript slider with random text, javascript slide testimonials, random quote javascript scroller, random scrolling text script, scrolling random text javascript, scrolling random link javascript, scrolling of text in javascript one after another, scrolling message javascript, scrolling arrays in javascript, scroller msg, Scroller javascript random, javascript scroll list random start, rss scroll text with javascript, random text scroller javascript, random text scroller, random testimonial text javascript, random testimonial scroller, display the testimonials one after another on my website, Xhanch, Xhanch Studio