关闭

滚动新闻

标签: classdivfunctionbbsbordertable
1061人阅读 评论(0) 收藏 举报
分类:

<div id="icefable1">
<TABLE cellSpacing=0 cellPadding=0 width=510 border=0>

  <tr background="http://images.5460.net/otherSiteImages/bbs/bbs/newimage/jhdian-1.gif">
    <td width="16%" height="25" scope="row">
<div align="left"><a target="_blank" href="/bbs/bbs/bbsInfoList.jsp?bbsid=61"><span _fcksavedurl=""/bbs/bbs/bbsInfoList.jsp?bbsid=61"><span" class="style100"> [心情驿站]</span></a></div></td>
    <td width="84%" height="25" class="style74" scope="row">
      <div align="left" class="style89"><a href="/bbs/main.jsp?id=1516756&bbsid=61"  target="_blank">我们都在BBS想干什么</a></div></td>
</tr>

  <tr background="http://images.5460.net/otherSiteImages/bbs/bbs/newimage/jhdian-1.gif">
    <td width="16%" height="25" scope="row">
<div align="left"><a target="_blank" href="/bbs/bbs/bbsInfoList.jsp?bbsid=115480"><span _fcksavedurl=""/bbs/bbs/bbsInfoList.jsp?bbsid=115480"><span" class="style100"> [原创文学]</span></a></div></td>
    <td width="84%" height="25" class="style74" scope="row">
      <div align="left" class="style89"><a href="/bbs/main.jsp?id=1516149&bbsid=115480"  target="_blank">希璐 我的冬妮娅</a></div></td>
</tr>

  <tr background="http://images.5460.net/otherSiteImages/bbs/bbs/newimage/jhdian-1.gif">
    <td width="16%" height="25" scope="row">
<div align="left"><a target="_blank" href="/bbs/bbs/bbsInfoList.jsp?bbsid=115481"><span _fcksavedurl=""/bbs/bbs/bbsInfoList.jsp?bbsid=115481"><span" class="style100"> [星座物语]</span></a></div></td>
    <td width="84%" height="25" class="style74" scope="row">
      <div align="left" class="style89"><a href="/bbs/main.jsp?id=1516060&bbsid=115481"  target="_blank">测试看谁是你最爱的人</a></div></td>
</tr>

  <tr background="http://images.5460.net/otherSiteImages/bbs/bbs/newimage/jhdian-1.gif">
    <td width="16%" height="25" scope="row">
<div align="left"><a target="_blank" href="/bbs/bbs/bbsInfoList.jsp?bbsid=116980"><span _fcksavedurl=""/bbs/bbs/bbsInfoList.jsp?bbsid=116980"><span" class="style100"> [爱情之海]</span></a></div></td>
    <td width="84%" height="25" class="style74" scope="row">
      <div align="left" class="style89"><a href="/bbs/main.jsp?id=1516468&bbsid=116980"  target="_blank">能否接受欺骗你的男人</a></div></td>
</tr>
</TABLE>
</div>
 <div id="icefable2" style="position:absolute;z-index:1;visibility:hidden"></div>
 <script>
marqueesHeight=25;
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=-2; stoptime=0;

function init_srolltext(){
  icefable2.innerHTML="";
  icefable2.innerHTML+=icefable1.innerHTML;
  icefable1.innerHTML=icefable2.innerHTML+icefable2.innerHTML;
  setInterval("scrollUp()",50);
}
function scrollUp(){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==26)
  {
   stoptime+=1;
   currentTop-=1;
   if(stoptime==50)
   {
    currentTop=0;
    stoptime=0;
   }
  }
  else {
   preTop=icefable1.scrollTop;
   icefable1.scrollTop+=1;
   if(preTop==icefable1.scrollTop){
     icefable1.scrollTop=icefable2.offsetHeight-marqueesHeight;
     icefable1.scrollTop+=1;
   }
  }

}
init_srolltext();
</script>

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:47341次
    • 积分:502
    • 等级:
    • 排名:千里之外
    • 原创:4篇
    • 转载:15篇
    • 译文:0篇
    • 评论:2条
    最新评论