//需要的變數
//nowIndex : 目前
//delayTimes : 間隔秒數(毫秒)
//arrNews : 新聞(陣列)
//planWidth : 寬度
//planHeight : 高度

var nowIndex = -1;

function changeNews(){
	nowIndex++;
	if(nowIndex == arrNews.length)
		nowIndex = 0;
	
	xiaoqing.innerHTML = '<marquee behavior="slide" scrollamount="2" scrolldelay="65" direction= "up" width="'+planWidth+'" height="'+planHeight+'">'+arrNews[nowIndex]+'</marquee>';
	window.setTimeout("changeNews()",delayTimes);
}