<!--一鸿手机网WWW.1988s.COM文字翻滚代码start------->
//注意必要加进表格代码
var strArray=new Array();
strArray[0]='<a href="#" >一鸿手机网欢迎您光临！</a> <a href="#" >手机采购导购，尽在1988s.com</a>'
strArray[1]='<a href="http://www.1988s.com/"   target="_blank">一鸿手机网（www.1988s.com）</a>   服务更快捷方便'
strArray[2]='<a href="/user/reg.asp" target="_blank" >免费注册成为1988s.com会员,马上领取积分奖品哦<font color=red>1988s.com注册就有礼！</font></a>'
strArray[3]='<a href="#" >一鸿手机网诚征网站合作伙伴。</a>'
strArray[4]='<a href="#">一鸿手机网代理火热招募中， 阳光事业，机会难得</a>'
strArray[5]='<a href="#">订货查询，发货查询，明明白白网购，安全快速！</a>'
strArray[6]='<a href="#">本站全面支持支付宝，安全快捷方便，倡导安全网购</a>'

showId=Math.floor(Math.random()*7);
tempStr=strArray[showId];
strArray[showId]=strArray[0];
strArray[0]=tempStr;
              
document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td>'
+'<div id="toptable" align="right">'
+'<table width=500 border=0 cellspacing=0 cellpadding=0 >'
+'<tr><td width=500 height=21 >'+strArray[0]+'</td></tr>'
+'<tr><td height=21 >'+strArray[1]+'</td></tr>'
+'<tr><td height=21 >'+strArray[2]+'</td></tr>'
+'<tr><td height=21 >'+strArray[3]+'</td></tr>'
+'<tr><td height=21 >'+strArray[4]+'</td></tr>'
+'<tr><td height=21 >'+strArray[5]+'</td></tr>'
+'<tr><td height=21 >'+strArray[6]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');

marqueesHeight=21;
stopscroll=false;
toptable.scrollTop=0;

with(toptable){
  style.width=0;
  style.height=marqueesHeight;
  style.overflowX="visible";
  style.overflowY="hidden";
  noWrap=true;
  onmouseover=new Function("stopscroll=true");
  onmouseout=new Function("stopscroll=false");
}

preTop=0; currentTop=21; stoptime=0;
toptable.innerHTML+=toptable.innerHTML;

function init_srolltext(){
  toptable.scrollTop=0;
  setInterval("scrollUp()",40);
}init_srolltext();

function scrollUp(){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==22)
  {
  	stoptime+=1;
  	currentTop-=1;
  	if(stoptime==80) 
  	{
  		currentTop=0;
  		stoptime=0;
  	}
  }
  else {  	
	  preTop=toptable.scrollTop;
	  toptable.scrollTop+=1;
	  if(preTop==toptable.scrollTop){
	    toptable.scrollTop=42;
	    toptable.scrollTop+=1;
	  }
  }

}