<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://s.cn/go.aspx" 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://www.a" target="_blank"><font color=blue>免费!</font></a>';
strArray[3] = '<a class="a02" href="http://client.alexa.com/" target="_blank"><font color=red>下载并</a></a>';
strArray[4] = '<a class="a02" href="http://www.anyp.cn" 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[i]+'</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>
posted on 2006-01-18 12:00
萌芽的叶子 阅读(204)
评论(0) 编辑 收藏 引用 所属分类:
html