<style type="text/css">
A.a02 {text-decoration:underline;color:#0B0096;font-size:14px;line-height:160%}
A.a02.hover {text-decoration:none;color:#ff6600;font-size:14px;line-height:160%}
</style>
<script LANGUAGE='JavaScript'>
var totalRolling = 3;
var strArray=new Array();
strArray[0] = '<a class="a02" href="http://public.anyp.cn/Showvote.aspx?sid=14" target="_blank"><font color=red>参加博易可乐调查,赢取收费模板</font></a>';
strArray[1] = '<a class="a02" href="http://g.anyp.cn/" target="_blank"><font color=blue>自助建群</font>功能已经开通!</a>';
strArray[2] = '<a class="a02" href="http://client.alexa.com/install/AlexaInstaller.exe" target="_blank"><font color=red>下载并安装工具条即可屏蔽弹出窗口广告,加快浏览速度</a></a>';
strArray[3] = '<a class="a02" href="http://wuxia.anyp.cn/game/index.aspx" target="_blank"><font color=red>参加侠客行大赛,与甄子丹、阿朵面对面</a></a>';
showId=Math.floor(Math.random()*totalRolling);
tempStr=strArray[showId];
strArray[showId]=strArray[0];
strArray[0]=tempStr;
</script>
<script>
document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td>'
+'<div id="icefable1" style="width:460;">'
+'<table width=460 border=0 cellspacing=0 cellpadding=0>');
for(i=0;i<strArray.length;i++)
{
document.write('<tr><td> '+strArray+'</td></tr>');
}
document.write('</table>'
+'</div>'
+'</td></tr>'
+'</table>');
marqueesHeight=23;
stopscroll=false;
icefable1.scrollTop=0;
with(icefable1){
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=marqueesHeight; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;
function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==marqueesHeight+1)
{
stoptime+=1;
currentTop-=1;
if(stoptime==40)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=marqueesHeight*(totalRolling-1);
icefable1.scrollTop+=1;
}
}
}
</script>
这个是逐条滚动的代码,它实现的是向上滚动。不过不知道怎么和标签结合。有大人给与正解不?
那个arry怎么改?