아날로그 터미널 인쇄 효과

11273 단어 단말기
아날로그 터미널 인쇄 효과
 <!DOCTYPE HTML>
<html>
    <head>
        <title>          </title>
        <meta charset="utf-8">
        <script type="text/javascript" src="js/jquery.js"></script>
        <style type="text/css"> body { margin: 0; padding: 0; background: #000; font-size: 16px; overflow: auto; width: 100%; height: 100%; } #mainDiv { width: 80%; height: 600px; border: 1px solid red; margin: 0 auto; } #code { float: left; width: 440px; height: 400px; color: blue; font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", "sans-serif"; font-size: 16px } #code .string { color: green; } #code .keyword { color: red; font-size: 20px; } </style>
    </head>

    <body>
        <div id="mainDiv">
            <div id="content">
                <div id="code">
                    <br />   QQ: <span class="keyword">1010305129</span>
                    <br />
                    <span class="comments">/*************      *************/</span>
                    <br />
                    <span class="comments">*     :  </span>
                    <br />
                    <span class="comments">*        , </span>
                    <br />
                    <span class="comments">*        。 </span>
                    <br />
                    <span class="comments">*        ,</span>
                    <br />
                    <span class="comments">*        。</span>
                    <br />
                    <span class="comments">/*************      *************/</span>
                    <br />
                    <span class="keyword">    O(∩_∩)O  ~</span>
                    <br />
                </div>
            </div>
        </div>

        <script type="text/javascript"> (function(a) { a.fn.typewriter = function() { this.each(function() { var d = a(this), c = d.html(), b = 0; d.html(""); var e = setInterval(function() { var f = c.substr(b, 1); if (f == "<") { b = c.indexOf(">", b) + 1 } else { b++ } d.html(c.substring(0, b) + (b & 1 ? "_" : "")); if (b >= c.length) { clearInterval(e) } }, 100) }); return this } })(jQuery); $("#code").typewriter(); </script>

    </body>

</html>

좋은 웹페이지 즐겨찾기