滑动的效果(支持各种的浏览器)


<div id="bobogd" style="width:100%;height:80px;overflow:hidden" οnmοuseοver="iScrollAmount=0" οnmοuseοut="iScrollAmount=1">

  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:12px; margin:0px; padding:0px;">
  <tr>
    <td width="50%" height="80">
     <li> <a href="
http://www.epabc.com/aucinfo.asp?aucid=431" target="_blank">
现代512MBDDR400</a></li>
     <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=413
" target="_blank">三星金条512MBDDR400  </a></li>
   <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=336
" target="_blank">暑期实习岗位大放送</a></li>    </td>
    <td width="50%" height="80" style="padding-top:5px;">
      <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=398
" target="_blank">小黄花鱼!</a></li>
      <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=408
" target="_blank">供应树莓</a></li>
    <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=409
" target="_blank">来福士广场杨梅聚会圆满成功。</a></li>    </td>
  </tr>
  <tr>
    <td height="80">
      <li> <a href="
http://www.epabc.com/aucinfo.asp?aucid=329" target="_blank">南极冰藻</a></li>
      <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=330
" target="_blank">暑期实习岗位大放送(第二期)</a></li>
      <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=192
" target="_blank">现代256MBDDR400</a></li>

    </td>
    <td height="80" >
      <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=334
" target="_blank">投上一票,支持您喜欢的网页作品</a></li>
      <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=332
" target="_blank">天海园牌有机中华鳖 </a></li>
      <li> <a href="http://www.epabc.com/aucinfo.asp?aucid=411
" target="_blank">Kijiji Podcast Reloaded</a></li>

    </td>
  </tr>

 
</table>
</div>
<script>
var oMarquee = document.getElementById("bobogd");
var iLineHeight = 80;
var iLineCount = 2;//滚动的行数
var iScrollAmount = 1;
function run() {
oMarquee.scrollTop += iScrollAmount;
if ( oMarquee.scrollTop == iLineCount * iLineHeight )
oMarquee.scrollTop = 0;
if ( oMarquee.scrollTop % iLineHeight == 0 ) {
window.setTimeout( "run()", 4000 );
} else {
window.setTimeout( "run()", 30 );
}
}
oMarquee.innerHTML += oMarquee.innerHTML;
window.setTimeout( "run()", 4000 );
</script> 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值