滾動新聞

<style>
a{font-size:18px}
</style>
<body>
<script LANGUAGE='JavaScript'>
var strArray1=new Array();
strArray1[0]='<a href=http://hotspots.sina.com.cn target=_blank>無線上網無限生活</a><!--nwy/sina/A-->'
strArray1[1]='<a href=http://sms.sina.com.cn/docs/c/100204.html target=_blank>每日笑話非常享受</a><!--nwy/sina/A-->'
strArray1[2]='<a href=http://yp.sina.net/newslist3000-1.html target=_blank>商家急尋合資合作</a><!--nwy/sina/A-->'
showId=Math.floor(Math.random()*3);
tempStr=strArray1[showId];
strArray1[showId]=strArray1[0];
strArray1[0]=tempStr;
</script>
<script>
document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100% align=left >'
+'<div id="icefable11" style="width:101;">'
+'<table width=101 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=101 height=15 >'+strArray1[0]+'</td></tr>'
+'<tr><td height=15 >'+strArray1[1]+'</td></tr>'
+'<tr><td height=15 >'+strArray1[2]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');

marqueesHeight1=21;
stopscroll1=false;
icefable11.scrollTop=0;

with(icefable11){
style.width=0;
style.height=marqueesHeight1;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
οnmοuseοver=new Function("stopscroll1=true");
οnmοuseοut=new Function("stopscroll1=false");
}

preTop1=0; currentTop1=21; stoptime1=0;
icefable11.innerHTML+=icefable11.innerHTML;

function init_srolltext1(){
icefable11.scrollTop=0;
setInterval("scrollUp1()",50);
}init_srolltext1();

function scrollUp1(){
if(stopscroll1==true) return;
currentTop1+=1;
if(currentTop1==22)
{
 stoptime1+=1;
 currentTop1-=1;
 if(stoptime1==40)
 {
 currentTop1=0;
 stoptime1=0;
 }
}
else {
 preTop1=icefable11.scrollTop;
 icefable11.scrollTop+=1;
 if(preTop1==icefable11.scrollTop){
 icefable11.scrollTop=30;
 icefable11.scrollTop+=1;
 }
}

}
</script>
</body>
 
發佈了39 篇原創文章 · 獲贊 1 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章