<script type="text/javascript">
//运行文本域代码
function runEx(cod1) {
 cod=document.all(cod1)
 var code=cod.value;
 if (code!=""){
 var newwin=window.open('','',''); //打开一个窗口并赋给变量newwin。
 newwin.opener = null // 防止代码对论谈页面修改
 newwin.document.write(code); //向这个打开的窗口中写入代码code,这样就实现了运行代码功能。
 newwin.document.close();
}
}
//复制文本域代码
function cycode(obj) {
var rng = document.body.createTextRange();
rng.moveToElementText(obj);
rng.scrollIntoView();
rng.select();
rng.execCommand("Copy");
//window.status="高亮度包含的代码已被复制到剪贴板!Contents highlighted and copied to clipboard!"
//setTimeout("window.status=''",1800)
rng.collapse(false);
}
</script><TEXTAREA id=run_test7989417888314541 name=textarea rows=10 cols=60><img src="http://kyouj.com/inc/1.jpg" onLoad="this.width > 400 ? this.width=400:this.width" onClick="location.href=this.src" /></TEXTAREA><BR>
<INPUT onclick=runEx("run_test7989417888314541") type=button value=运行代码> 
<INPUT onclick=cycode(run_test7989417888314541) type=button value=复制代码>
求助修改上面俩段函数使之支持 火狐 firefox