<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><html> <br><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <br><머리> <br><제목></제목> <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 : 함수(t) { <br>t.flag = true; <br>clearInterval(t.toId); <br>}, <br>continueReader : function (t) { <br>if (t.flag) <br>t.startReader(); <br>t.flag = 거짓; <br>} <br>}; <br>var content = "蒙古亲王僧格林沁慓悍勇猛,他率领的军队向来号称能征惯战,八旗兵、绿营他티브看不上眼,更何况那些临时招募的练勇。可偏偏就是这些他眼中的乌众,这些年来在江南战果累累,最终攻下了江宁,夺得了对太平军작품战的全胜。"<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></body> <br><br></html> <br><br> </div>