0

わかりましたので、テキストを入力するJavaScript効果を作成してここまで来ました。しかし、これでは明らかに html マークアップを認識可能なものとして渡すことができません。つまり、リンクなどを使用できません。

これを回避する方法はありますか?:S

<div id="Container"></div>
<script type="text/javascript" language="javascript">
    var myString = "This is the text that will be typed...";
    var myArray = myString.split("");
    var loopTimer;
    function textLooper() {
        if(myArray.length > 0) {
            document.getElementById("Container").innerHTML += myArray.shift();
        } else {
            clearTimeout(loopTimer); 
        }
        loopTimer = setTimeout('textLooper()',70);
    }
textLooper();
</script>

js ソリューションだけである必要はありません。機能するものであれば何でも構いません。すべてのアイデアを歓迎します。

ありがとうございました。

4

0 に答える 0