JavaScript复习--标题跑马效果

<title>标题跑马效果</title>
    <script type="text/javascript">
        function TitleMoving()
        {
            var title = document.title;
            var strFirst = title.charAt(title.length-1);
            var strLast = title.substring(0,title.length - 1);
            document.title = strFirst + strLast;
        }
        setInterval("TitleMoving()",500);
    </script>

原文地址:https://www.cnblogs.com/fanshaomin/p/3601258.html