Word for word a word of front-end display content div

<!DOCTYPE html>
<html lang="en">

<head>
       
    <meta charset="UTF-8">
        <title>Title</title>
</head>

<body>
    <div style="width:50%; min-height:200px; margin:50px auto">
        <pre id="language_one" style=" color:#F60; font-size:34px;"></pre>
        <div style="display:none;"the above mentioned id = "LANGUAGE_TWO" > 
            forgive my life love of freedom uninhibited indulgence 
            will Payouyitian fall 
            abandoned over who can be 
            that I would Payouyitian only you were 
            today, I had a cold night to see Piao 
            With cooled Gone pit of the stomach distant 
            wind and rain to catch 
            fog tell it anyway 
            sky wide sea you and me 
            who have not changed in      
        </ div > 
    </ div > 
    < Script Language = "JavaScript" > 
    var index =  0 ;
     var Word = the Document. getElementById ( " LANGUAGE_TWO " ) .innerHTML;

    function type() {
        document.getElementById("language_one").innerText = word.substring(0, index++);
    }
    setInterval(type, 100);
    </script>
</body>

</html>

 

Guess you like

Origin www.cnblogs.com/houBlogs/p/11277825.html