<div class="htmlarea"> <textarea id="runcode19173"> <form name="form2"> value:<input type="text" name="va1"> 黄金分割<input type="text" name="sqrt"> <input type="button" name="button1" value="计算黄金分割" onclick="document.form2.sqrt.value=((Math.sqrt(5)-1)/2)*document.form2.va1.value"> </form> </textarea><br><input onclick="runEx('runcode19173')" type="button" value="运行代码"> <input onclick="doCopy('runcode19173')" type="button" value="复制代码"> <input onclick="doSave(runcode19173)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>