asfman
android developer
posts - 90,  comments - 213,  trackbacks - 0
<script LANGUAGE='JavaScript'>
document.ns = navigator.appName == "Microsoft Internet Explorer"
function randomStr(str){
 var showId=Math.floor(Math.random()*3);
 var tempStr=str[showId];
 str[showId]=str[0];
 str[0]=tempStr;
}
function showStr(str,textWidth,num){
 if(!document.ns){document.write(str[0]+'<br>')}
 else{
  document.write('<table border=0 cellspacing=0 cellpadding=0>'
  +'<tr><td>'
  +'<div id="icefable1'+num+'">'
  +'<table width='+textWidth+' border=0 cellspacing=0 cellpadding=0 style=\'font-size:12px;\'>'
  +'<tr><td height=20>'+str[0]+'</td></tr>'
  +'<tr><td height=20>'+str[1]+'</td></tr>'
  +'<tr><td height=20>'+str[2]+'</td></tr>'
  +'</table>'
  +'</div>'
  +'<div id="icefable2'+num+'" style="position:absolute;z-index:1;visibility:hidden"></div>'
  +'</td></tr>'
  +'</table>');
 }
}
function init_srolltext(num){
countnum=0
marqueesHeight=20;
eval('stopscroll'+num+'=false;')
eval('icefable1'+num+'.scrollTop=0;')
rotatenum=0
eval('icefable1'+num+'.style.width=0;')
eval('icefable1'+num+'.style.height=marqueesHeight;')
eval('icefable1'+num+'.style.overflowX="visible";')
eval('icefable1'+num+'.style.overflowY="hidden";')
eval('icefable1'+num+'.noWrap=true;')
eval('icefable1'+num+'.onmouseover=new Function("stopscroll=true");')
eval('icefable1'+num+'.onmouseout=new Function("stopscroll=false");')
eval('preTop'+num+'=0; ')
eval('currentTop'+num+'=0;')
eval('stoptime'+num+'=0;')
eval('icefable2'+num+'.innerHTML="";')
eval('icefable2'+num+'.innerHTML+=icefable1'+num+'.innerHTML;') 
eval('icefable1'+num+'.innerHTML=icefable2'+num+'.innerHTML+icefable2'+num+'.innerHTML;') 
eval('setInterval("scrollUp'+num+'()",40);')
}
function scrollUp1(){
  if(stopscroll1==true) return;
  currentTop1+=1;
  if(currentTop1==21){
   stoptime1+=1;
   currentTop1-=1;
   if(stoptime1==80){
    currentTop1=0;
    stoptime1=0;
   }
  }else{
          preTop1=icefable11.scrollTop;
          icefable11.scrollTop+=1;
          if(icefable11.scrollTop==78){
            preTop1=0; currentTop1=0; stoptime1=0;icefable11.scrollTop=0
          }
  }
}
var strArray1=new Array();
strArray1[0]='<!--3DB9545EEA91--><a href=http://sina.allyes.com/main/adfclick?db=sina&bid=23411,46139,46176&cid=0,0,0&sid=44949&advid=2010&camid=7784&show=ignore&url=http://www.nanyang-emba.com/project.htm target=_blank>南洋理工大学热招</a><!--$$ limeng/2005-10-1 ~ 2005-12-31/B $-->'
strArray1[1]='<!--6B89959AFD05--><a href=http://sina.allyes.com/main/adfclick?db=sina&bid=23490,46231,46268&cid=0,0,0&sid=45031&advid=2141&camid=7810&show=ignore&url=http://www.cassren.com/pc.html target=_blank>社科院经济学直读</a><!--$$ lanxin/2005-10-1 ~ 2005-12-31/B $-->'
strArray1[2]='<!--1109310759B9--><a href=http://sina.allyes.com/main/adfclick?db=sina&bid=23539,46286,46323&cid=0,0,0&sid=45082&advid=2272&camid=7835&show=ignore&url=http://www.ifm.org.cn/index12.htm target=_blank>国际财务管理考试</a><!--$$ raowei/2005-10-1 ~ 2005-12-31/B $-->'
randomStr(strArray1);
showStr(strArray1,140,1);
init_srolltext(1);
</script>
posted on 2006-04-03 15:20 汪杰 阅读(264) 评论(0)  编辑 收藏 引用 所属分类: hengxing网站js
只有注册用户登录后才能发表评论。

<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(15)

随笔分类(1)

随笔档案(90)

文章分类(727)

文章档案(712)

相册

收藏夹

http://blog.csdn.net/prodigynonsense

友情链接

最新随笔

搜索

  •  

积分与排名

  • 积分 - 459282
  • 排名 - 6

最新随笔

最新评论

阅读排行榜

评论排行榜