<div class="htmlarea"> <textarea id="runcode40411"> <script language="JavaScript" defer> var cs=new Array(5); var mydata="red,300,200,我爱北京天安门,http://blog.yb023.com/uploadfile/200611180016400.wma"; var cs=mydata.match(/[^,]+/g); var obj = document.getElementById("dodododo"); obj.innerHTML = cs[3] + " " + cs[4]; obj.style.width = cs[2]; obj.style.height = cs[1]; obj.style.backgroundColor = cs[0]; </script> <div id="dodododo"></div> </textarea><br><input onclick="runEx('runcode40411')" type="button" value="运行代码"> <input onclick="doCopy('runcode40411')" type="button" value="复制代码"> <input onclick="doSave(runcode40411)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div> <br><br><div class="htmlarea"> <textarea id="runcode32125"> <script language="JavaScript"> var cs=new Array(4); var mydata="320,45,1,http://blog.yb023.com/uploadfile/200611180016400.wma"; var cs=mydata.match(/[^,]+/g); </script> <object id="a1" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" align="center" border="0"> <param name="AutoStart" value=""> <param name="Balance" value="0"> <param name="enabled" value="1"> <param name="EnableContextMenu" value="1"> <param name="url" value=""> <param name="ShowStatusBar" value="0"> <param name="PlayCount" value="0"> <param name="rate" value="1"> <param name="currentPosition" value="0"> <param name="currentMarker" value="0"> <param name="defaultFrame" value=""> <param name="invokeURLs" value="0"> <param name="baseURL" value=""> <param name="stretchToFit" value="0"> <param name="volume" value="100"> <param name="mute" value="0"> <param name="uiMode" value="Full"> <param name="windowlessVideo" value="0"> <param name="fullScreen" value="0"> <param name="enableErrorDialogs" value="-1"> <param name="SAMIStyle" value> <param name="SAMILang" value> <param name="SAMIFilename" value> <param name="captioningID" value></object> <script language="JavaScript"> var $ = function(id) { return document.getElementById(id); } $("a1").style.width = cs[0]; $("a1").style.height = cs[1]; $("a1").AutoStart = cs[2]; $("a1").url = cs[3]; </script> </textarea><br><input onclick="runEx('runcode32125')" type="button" value="运行代码"> <input onclick="doCopy('runcode32125')" type="button" value="复制代码"> <input onclick="doSave(runcode32125)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div> <br><br><div class="htmlarea"> <textarea id="runcode10098"> <script language="JavaScript" defer> var cs=new Array(5); var mydata="red,300,200,我爱北京天安门,http://blog.yb023.com/uploadfile/200611180016400.wma"; var cs=mydata.match(/[^,]+/g); var obj = document.getElementById("p"); obj.innerHTML = "<table width="+cs[1]+" height="+cs[2]+"><tr><td><font color="+cs[0]+">宽300,高200的表格,字体为红色 <embed src="+cs[4]+" width=300 height=49> <textarea name="+cs[3]+" cols=\"35\" rows=\"4\">"+cs.join("\n");+"</textarea> "; </script> <div id="p"></div> </textarea><br><input onclick="runEx('runcode10098')" type="button" value="运行代码"> <input onclick="doCopy('runcode10098')" type="button" value="复制代码"> <input onclick="doSave(runcode10098)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>