<div class="htmlarea"> <textarea id="runcode3767"> <title>대형, 중형, 소형 글꼴을 구현하는 또 다른 방법</title> <style type="text/css"> <!-- body {font-size:14px} --> </style> <div class="fontSize" id="fs12" style="DISPLAY: none"> <a href="javascript:doZoom(16)"></a>대<a href="javascript:doZoom(14)"> </a>중<span> </span>소</div> <div class="fontSize" id="fs14"> <a href="javascript:doZoom(16)"></a>대<span> </span>중<a href="javascript:doZoom(12)"> </a>소</div> <div class="fontSize" id="fs16" style="DISPLAY: none"> <span></span>대<a href="javascript:doZoom(14)"> </a>중<a href="javascript:doZoom(12)"> </a>소</div> <div id="contentText"> </div>나는 당신의 장미입니다 </textarea> <br><input onclick="runEx('runcode3767')" type="button" value="运行代码"><input onclick="doCopy('runcode3767')" type="button" value="复制代码"> <input onclick="doSave(runcode3767)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A 모두 선택 참고: </a>외부 J를 도입해야 하는 경우 실행하려면 새로 고쳐야 합니다 </div>]<script type="text/javascript"> function $(xixi) { return document.getElementById(xixi); } //转换字号 function doZoom(size){ if(size==12){ $("contentText").style.fontSize = size + "px"; $("fs12").style.display = ""; $("fs14").style.display = "none"; $("fs16").style.display = "none"; } if(size==14){ $("contentText").style.fontSize = size + "px"; $("fs12").style.display = "none"; $("fs14").style.display = ""; $("fs16").style.display = "none"; } if(size==16){ $("contentText").style.fontSize = size + "px"; $("fs12").style.display = "none"; $("fs14").style.display = "none"; $("fs16").style.display = ""; } } </script>