<div class="codetitle"> <span><a style="CURSOR: pointer" data="16195" class="copybut" id="copybut16195" onclick="doCopy('code16195')"><u>复制代码</u></a></span>代码如下:</div> <div class="codebody" id="code16195"> <br> <br><meta http-equiv="content-type" content="text/html; charset=UTF-8"> <br> <br><title></title> <br><script type="text/javascript"> <BR>function Reader(content, cID, stopID, continueID) { <BR>this.conLoad = document.getElementById(cID); <BR>this.stopBtn = document.getElementById(stopID); <BR>this. continueBtn = document.getElementById(ContinueID); <BR>this.content = コンテンツ; <BR>this.index = 0; <BR>var t = this; <BR>this.stopBtn.onclick = ( <BR>function () { <BR>return function () { <BR>t.stopReader(t); <BR>}; <BR>})(t); <BR>this. continueBtn.onclick = ( <BR>function () { <BR>return function () { <BR>t. continueReader(t); <BR>}; <BR>})(t); <BR>} <BR>Reader.prototype = { <BR>startReader : function () { <BR>var t = this; <BR>t.toId = setInterval(function () { <BR>if (t.content[t.index]) { <BR>t.conLoad.innerHTML = t.content[t.index]; <BR>} <BR>t.index ; <BR>if (t.content.length == t.index) { <BR>clearInterval(t.toId); <BR>t.conLoad.innerHTML = "【未完了待機】" ; <BR>} <BR>}、200); <BR>}, <BR>stopReader : function (t) { <BR>t.flag = true; <BR>clearInterval(t.toId); <BR>}, <BR>ContinueReader : function (t) { <BR>if (t.flag) <BR>t.startReader(); <BR>t.flag = false; <BR>} <BR>}; <BR>var content = "蒙古亲王僧格林沁慾猛猛、他率领の冰阅向来号名能功惘、八旗兵、运他都看不視、更多內容招聘的勇士。 "<BR>" 逆に、他の蒙古鉄は、ひねりの角に頻繁にぶつかっています。 、相形之下、昔日の声威锐减。この一代天問の後、曾曾兄弟と湘军窝着一皮無名怒火。幼天王を走らせ、朝野誼四起、物欲沸騰、僧侶林沃は十分に活躍し、富明阿を興して城を観察し、去江をよく知った。 "; <BR>//页面の追加が完了したら実行します。 <BR>window.onload = function () { <BR>new Reader(content, "content", "btnStop", "btnContinue").startReader(); <BR>}; <BR></script> <br> <br><div id="content"></div> <br><div id="operate"> <input type="button" id="btnStop" value="stop"><input type="button" id="btnContinue" value="続行"> </div> <br> <br><br> </div>