zoukankan      html  css  js  c++  java
  • 不间断向上滚动的文字

    <link href="text.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
    margin-left: 0px;
    margin-top: 0px;
    }
    -->
    </style><div id=demo style=overflow:hidden;height:20;156;color:#ffffff>
    <table width="156" height="20" border=0 align=left cellpadding=0 cellspace=0>
    <tr>
    <td id=demo1 valign=top> <table width="160" height="20" border=0 cellpadding=0 cellspacing=0>
    <tr>
    <td valign="top">
    <!--gt-->
    <table width="161" border="0" cellpadding="0" cellspacing="0" class="text">
    <tr>
    <td width="161"> <div align="center">
    <p class="text13"><font color="#000000">山城重庆的风景名胜 榕树</font></p>
    </div></td>
    </tr>
    </table>
    <table width="156" border="0" cellpadding="0" cellspacing="0" class="text">
    <tr>
    <td> <div align="center">
    <p class="text13"><font color="#000000">山城重庆的风景名胜 榕树</font></p>
    </div></td>
    </tr>
    </table>
    <table width="156" border="0" cellpadding="0" cellspacing="0" class="text">
    <tr>
    <td> <div align="center">
    <p class="text13"><font color="#000000">山城重庆的风景名胜 榕树</font></p>
    </div></td>
    </tr>
    </table>
    <table width="156" border="0" cellpadding="0" cellspacing="0" class="text">
    <tr>
    <td> <div align="center">
    <p class="text13"><font color="#000000">山城重庆的风景名胜 榕树</font></p>
    </div></td>
    </tr>
    </table>
    <table width="156" border="0" cellpadding="0" cellspacing="0" class="text">
    <tr>
    <td> <div align="center">
    <p class="text13"><font color="#000000">山城重庆的风景名胜 榕树</font></p>
    </div></td>
    </tr>
    </table>
    <table width="156" border="0" cellpadding="0" cellspacing="0" class="text">
    <tr>
    <td> <div align="center">
    <p class="text13"><font color="#000000">山城重庆的风景名胜 榕树</font></p>
    </div></td>
    </tr>
    </table>
    <table width="156" border="0" cellpadding="0" cellspacing="0" class="text">
    <tr>
    <td> <div align="center">
    <p class="text13"><font color="#000000">山城重庆的风景名胜 榕树</font></p>
    </div></td>
    </tr>
    </table>
    <!--juyjhyjyj-->
    </td>
    </tr>
    </table></td>
    <tr>
    <td id=demo2 valign=top></td>
    </tr>
    </table>
    </div>
    <script>
    var speed=80
    demo2.innerHTML=demo1.innerHTML
    function Marquee(){
    if(demo2.offsetTop-demo.scrollTop<=0)
    demo.scrollTop-=demo1.offsetHeight
    else{
    demo.scrollTop++
    }
    }
    var MyMar=setInterval(Marquee,speed)
    demo.onmouseover=function() {clearInterval(MyMar)}
    demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
    </script>
  • 相关阅读:
    【leetcode】1415. The k-th Lexicographical String of All Happy Strings of Length n
    【leetcode】1413. Minimum Value to Get Positive Step by Step Sum
    【leetcode】1410. HTML Entity Parser
    【leetcode】1409. Queries on a Permutation With Key
    1, 2, and 4 symbols per clock中数据排列
    RGB转换成YCbCr
    RAW转换成RGB
    ROM的一种写法
    IP之ALTIOBUF仿真
    IP之ALTDDIO_in仿真
  • 原文地址:https://www.cnblogs.com/bgming/p/247380.html
Copyright © 2011-2022 走看看