<div class="htmlarea"> <textarea id="runcode35915"> <title>动态添加表格</title> <span id="q"></span> <input value="生成表格" onclick="z()" type="button"> </textarea> <br><input onclick="runEx('runcode35915')" type="button" value="运行代码"><input onclick="doCopy('runcode35915')" type="button" value="复制代码"> <input onclick="doSave(runcode35915)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A 全选 注:</a>如需引入外部Js需刷新才能执行</div>]<script language="javascript"> function z() { q.innerHTML=q.innerHTML+'<table cellpadding=0 cellspacing=0 border=1><tr><td bgcolor="#FFccCC">热烈欢迎你光临!!' } </script>