posts - 116,  comments - 34,  trackbacks - 0
 

<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>&nbsp;'+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 萌芽的叶子 阅读(194) 评论(0)  编辑 收藏 引用 所属分类: html
只有注册用户登录后才能发表评论。

<2005年12月>
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

常用链接

留言簿(3)

随笔分类(115)

随笔档案(116)

文章分类(4)

相册

收藏夹(78)

.net中文社区

.net博客

.net英文社区

AJAX

ASP.NET 2.0

ASP.NET 学习

DataBase

ERP

E杂志

Html&Css

JavaScript

Microsoft

Open Sourse

SAP

WebCasts

WebServices

XML

其他

好友Blog

好文章连接

开发工具

控件

物流

职业经理人

设计模式

读书网站

非技术

项目管理

搜索

  •  

积分与排名

  • 积分 - 57204
  • 排名 - 107

最新评论

阅读排行榜

评论排行榜