/*Inspired by Typing Scroller from Dynmamic Drive */
/*
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
*/

function articlearray(){ 
	var titlewidth=0;
	var longmessage=0;
	var atitle="";
	for (i=0; i*2 < articlearray.arguments.length; i++) 
 	{
		atitle="";
		atitle=articlearray.arguments[i*2];
		this[i] = new Object(); 
		this[i].title = articlearray.arguments[i*2]; 
		this[i].href = articlearray.arguments[i*2+1];
		this[i].titlelength=atitle.length;
		if (atitle.length>titlewidth){
			titlewidth=atitle.length; 
			longmessage=i;
			}
 	} 
	this.length = i; //number of items
	this.longestmessage=longmessage; //used to set with of news div
}
<!--"Title","link" -->
var article=new articlearray(
	"More Water restrictions coming...","http://go-jamaica.com/news/read_article.php?id=14548",
	"Teenager arrested for pensioner’s death...","http://go-jamaica.com/news/read_article.php?id=14547",
	"Army inquiry ordered in light of Fort Hood killings...","http://go-jamaica.com/news/read_article.php?id=14546",
	"European Union gives Nigeria peace money...","http://go-jamaica.com/news/read_article.php?id=14545",
	"IMF gives Caribbean an investment warning...","http://go-jamaica.com/news/read_article.php?id=14544",
	"Boundaries work continuing in St. Kitts...","http://go-jamaica.com/news/read_article.php?id=14543",
	"Majesty Gardens draw first blood...","http://go-jamaica.com/news/read_article.php?id=14542"
)

//Settings
var scroller_delay="10000" //pause between titles  5000 -default.
var text_speed="40" //How fast characters are shown - 30 default.
var text_rand=0; //Show titles randomly or in order 0 -Off -1 on.

<!--No need to  Edit Below this Line--//>
var numitems=article.length; //Number of Lines
var temp="";
var nextchar=-1;
var cursor="\\"
var nextitem = 0;

if (text_rand == 1) {
	nextitem = Math.floor(Math.random() * (numitems)); 
	lastrand_item=nextitem;
}

//if IE 4+ or NS6
if (document.all||document.getElementById){
	document.write('<a onclick="document.location=this.href;" id="newstickerarea" ')
	document.write ('href='+ article[nextitem].href+ '"></a>')
}

var scroller = document.getElementById("newstickerarea");

function animate(){
	
	if (temp==article[nextitem].title & temp.length==article[nextitem].titlelength & nextitem!=(numitems)){
		if (article[nextitem].title) {
			scroller.href=article[nextitem].href;
		}

		if (text_rand == 1) {
			do {
				nextitem = Math.floor(Math.random() * (numitems)); 
			}while(nextitem==lastrand_item);
			lastrand_item=nextitem;
		} else {
			nextitem++;
			if (nextitem==numitems)
			{
				nextitem=0;
			}
		}

		nextchar=-1;
		scroller.innerHTML=temp;
		
		temp="";
		setTimeout("nextstep()",scroller_delay)
		}
	else{
		nextstep()}

}

function nextstep(){

	var articletemp="";
	
	if (cursor=="\\"){
		cursor="|"}
	else if (cursor=="|"){
		cursor="/"}
	else if (cursor=="/"){
		cursor="-"}
	else if (cursor=="-"){
		cursor="\\"
	}
	//cursor="_";
	nextchar++;
	if (nextchar<2){
	//alert(nextchar);
	}
	articletemp=article[nextitem].title;
    temp+=articletemp.charAt(nextchar);
	scroller.innerHTML=temp+cursor
	setTimeout("animate()",text_speed)
}
//if IE 4+ or NS6
if (document.all||document.getElementById)
	window.onload=animate // use onload <body onload="animate();sometingelse()">