<div class="htmlarea"><textarea id="runcode69773"> <title>文本框字体选择</title> <select id="fontslt" onchange="NYSfont()"><option>选择字体 <script language="javascript"> for (i=9;i<200;i++) {document.write("<option value="+i+">"+i+"pt字体\n");} function NYSfont() {if((fontslt.selectedIndex!=-1) && (fontslt.selectedIndex!=0)){readcontent.style.fontSize=fontslt.options[fontslt.selectedIndex].value;}} </script> </option></select> <textarea id="readcontent" rows="15" cols="100">这里的字体会跟着你的选择而变化 </textarea><br><input onclick="runEx('runcode69773')" type="button" value="运行代码"> <input onclick="doCopy('runcode69773')" type="button" value="复制代码"> <input onclick="doSave(runcode69773)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</textarea></div>