Freeonline在线编辑器(自由软件)[2]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 bxxxr 的 blog

       overflow:none;">
<textarea id=xxcodearea wrap=off
onscroll='xxlinearea.scrolltop=this.scrolltop;'
onpropertychange='xxlinenum();'
oncontextmenu='window.event.returnvalue=false;xxmenudiv.style.visibility="visible";'
style="border:#ae34f8 solid 0px;
       font-size: 12px; font-family: 宋体;
       width:100%;
       height:100%;
       overflow:auto">
&lt;/textarea>
</div>

<div id=xxmenudiv z-index:10
oncontextmenu='window.event.returnvalue=false;xxmenudiv.style.visibility="hidden";'
style="background-color:menu;
       filter:alpha(opacity=60);
       position:absolute;
       top:0;
       left:0;
       width:100%;
       height:100%;
       overflow:auto;">
<input onclick='xxmenudiv.style.visibility="hidden";xxrun();'
type=button
value="运行"><p>
<table border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td height=1>
<input onclick='xxmenudiv.style.visibility="hidden"' type=button
value="编辑"><br>
<input onclick='xxmenudiv.style.visibility="hidden";xxcodearea.focus();document.execcommand("undo")'
type=button value='撤销'><br>
<input onclick='xxmenudiv.style.visibility="hidden";xxcodearea.focus();document.execcommand("redo")'
type=button value='恢复'><br>
<input onclick='xxmenudiv.style.visibility="hidden";xxcodearea.focus();document.execcommand("cut")'
type=button value='剪切'><br>
<input onclick='xxmenudiv.style.visibility="hidden";xxcodearea.focus();document.execcommand("copy")'
type=button value='复制'><br>
<input onclick='xxmenudiv.style.visibility="hidden";xxcodearea.focus();document.execcommand("paste")'
type=button value='粘贴'><br>
<input onclick='xxmenudiv.style.visibility="hidden";xxcodearea.focus();document.execcommand("delete")'
type=button value='删除'><br>
<input onclick='xxmenudiv.style.visibility="hidden";xxcodearea.focus();document.execcommand("selectall")'
type=button value='全选'><br>
    </td>
  </tr>
</table>
<p>
<input type=checkbox id=linebar onclick=xxlinenum()>行号
<p>
<input onclick='xxmenudiv.style.visibility="hidden";window.open(location.href,"","");'
type=button value="新建">
<form style="display:inline" action="file:///c|/my documents/"
method=get target=_blank>
<input onclick='xxmenudiv.style.visibility="hidden"' type="submit"
value='我的文档'></form> &nbsp;
<input onclick='xxmenudiv.style.visibility="hidden";alert(xxabout.value);'
type=button value='关于'>
<input onclick='xxmenudiv.style.visibility="hidden";alert(xxhelp.value);'
type=button value='帮助'>
<p>
<p>
<input type="text" name="xxsource">
<input onclick='xxmenudiv.style.visibility="hidden";window.location="view-source:"+xxsource.value;'
type="button" value='源文件'>
</div>

</body>
</textarea>
<!------------------------------>
<object
id=xxclose
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="command" value="close">
</object>

<script>
function window.onload()
{
  xxclose.click()
  var xxclone=window.open("","","resizable=1,status=1")
  xxclone.document.open()
  xxclone.document.write(xxcode.value)
  xxclone.document.close()
}
</script>

本文关键:本程序是用JavaScript在网吧里写的。它的基本用途是在线编写脚本程序。
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top