阅读587 返回首页    go 京东网上商城


Js跑马灯效果

 

<html xmlns="https://www.w3.org/1999/xhtml">
<head>
    <title>xy欢迎新同学——跑马灯效果</title>
    <script type="text/javascript">
        function scroll() {
            var title = document.title;
            var firstChar = title.charAt(0);               // 取得第一个字符
            var leftChar = title.substr(1, title.length);
            document.title = leftChar + firstChar;
        }

        启动的时候执行
        setInterval("scroll()", 500);
    </script>
</head>
<body>

</body>
</html>

最后更新:2017-04-02 22:16:08

  上一篇:go tomca的用户设置
  下一篇:go Codebehind 、Inherits 和aspx的关系