閱讀587 返回首頁    go 阿裏雲 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的關係