`
alyouge
  • 浏览: 191025 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

JS滚动

阅读更多

<DIV id=demo style="OVERFLOW: hidden; WIDTH:950px;" align="center">

  <TABLE cellSpacing=0 cellPadding=0 align=left border=0 cellspace="0">

  <TBODY>

  <TR>

  <TD id=demo1 vAlign=top>

    <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">

     <tr>

    <td><a href="http://www.chinametal.net/" target="_blank"><img src="/images/logoo01.jpg" border="0" width="110" height="48" alt="信用沈阳"></a></td>

 <td style="margin-left:10px;"><a href="http://www.ascx.cn/" target="_blank"><img src="/images/logoo07.jpg" width="110" height="48" border="0"></a></td>

    <td style="margin-left:10px;"><a href="http://www.ddcei.gov.cn/ddcredit/index.jsp" target="_blank"><img src="/images/logoo02.jpg" width="110" height="48" alt="信用丹东" border="0"></a></td>

    <td style="margin-left:10px;"><a href="http://www.lycredit.cn/" target="_blank"><img src="/images/logoo03.jpg" width="110" height="48"  border="0" alt="信用辽阳"></a></td>

    <td style="margin-left:10px;"><a href="http://www.tlcredit.gov.cn/" target="_blank"><img src="/images/logoo04.jpg" width="110" height="48" border="0" alt="信用铁岭"></a></td>

    <td style="margin-left:10px;"><a href="http://www.pjcredit.gov.cn" target="_blank"><img src="/images/logoo05.jpg" width="110" height="48"  border="0"alt="信用盘锦"></a></td>

    <td style="margin-left:10px;"><a href="http://www.hldcredit.gov.cn/" target="_blank"><img src="/images/logoo06.jpg" width="110" height="48" alt="信用葫芦岛"  border="0"></a></td>

  <td style="margin-left:10px;"><a href="http://www.fscredit.gov.cn/" target="_blank"><img src="/images/logoo12.jpg" width="110" height="48" alt="抚顺信用网站"  border="0"></a></td>

 

    </tr>

 

 

    </table> 

 

 

 

 

 

     </TD>

 

  <TD id=demo2 vAlign=top></TD></TR></TBODY>

 

 

 

 

 

 

  </TABLE>

</DIV>

            <div align="center">

              <SCRIPT>

        var speed=30

        demo2.innerHTML=demo1.innerHTML

        function Marquee(){

        if(demo2.offsetWidth-demo.scrollLeft<=0)

        demo.scrollLeft-=demo1.offsetWidth

        else{

        demo.scrollLeft++

        }

        }

        var MyMar=setInterval(Marquee,speed)

        demo.onmouseover=function() {clearInterval(MyMar)}

        demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}

            </SCRIPT>              

      </div>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics