Freeonline在线编辑器(自由软件) (转)

Freeonline在线编辑器(自由软件) (转)[@more@]



  Freeonline[Version8],Copyright(C)2003,Bxxxr
  本程序是自由软件,遵循GPL,没有任何担保。详细情况请参阅gnu通用公共许可证。http://www.gnu.org/
  本程序是用Javascript在网吧里写的。(98SE IE5 CR1G 128M)它的基本用途是在线编写脚本程序,还有一些小功能。
  Mailto:email:bxxxr@yahoo.com.cn">Email:bxxxr@yahoo.com.cn
</textarea>

  状态切换(Esc或RightClick)
  运行(F5或Ctrl+Enter)
  帮助(F1)
</textarea>

function window.onload()
{
  document.title=xxabout.value
  self.moveTo(-4,-4)
  self.resizeTo(screen.availWidth+8,screen.availHeight+8)
  xxcodearea.select()
  xxsource.value=window.location.href
  xxmenudiv.style.visibility="visible"
  linebar.checked=1
  xxlinenum()
}

function xxrun()
{
  xxwww=xxcodearea.value;
  xxrrr=open('','','');
  xxrrr.document.open();
  xxrrr.document.write(xxwww);
  xxrrr.document.close();
}

function document.onkeydown()
{
  if(event.ctrlKey&&event.keyCode==13)
  {
  xxrun()
  }
  else if(event.keyCode==116)
  {
  event.keyCode=0
  event.returnValue=false
  xxrun()
  }
  else if(event.keyCode==27)
  {
  event.keyCode=0
  event.returnValue=false
  if(xxmenudiv.style.visibility=="visible")
  {
  xxmenudiv.style.visibility="hidden"
  }
  else if(xxmenudiv.style.visibility=="hidden")
  {
  xxmenudiv.style.visibility="visible"
  }
  }
}

function document.onhelp()
{
  alert(xxhelp.value)
  return false
}

function xxlinenum()
{
  if(linebar.checked)
  {
  xxlinediv.style.visibility="visible"
  var xxthenum=xxcodearea.value
  xxthenum=xxthenum.split('n')
  xxthenum=xxthenum.length
  xxlinearea.cols=xxthenum.toString().length
  xxcodediv.style.left=xxlinediv.clientWidth
  xxcodediv.style.width=document.body.clientWidth-xxlinediv.clientWidth

  xxlinearea.value=''
  var xxc=1
  while(xxthenum!=xxc-1)
  {
  var xxc1=xxthenum.toString().length-xxc.toString().length
  while(xxc1!=0)
  {
  xxlinearea.value=xxlinearea.value+'0'
  xxc1--
  }
  xxlinearea.value=xxlinearea.value+xxc
  xxc++
  }
  }
  else
  {
  xxlinediv.style.visibility="hidden"
  xxcodediv.style.left=0
  xxcodediv.style.width=document.body.clientWidth
  }
}


style="position:absolute;
  top:0;
  left:0;
  height:100%;
  overflow:none;">
style="background-color:menu;
  border:#ae34f8 solid 0px;
  font-size: 12px; font-family: 宋体;
  height:100%;
  overflow:hidden">
</textarea>

style="position:absolute;
  top:0;
  left:0;
  width:90%;
  height:100%;
  overflow:none;">
οnscrοll='xxlinearea.scrollTop=this.scrollTop;'
onPropertyChange='xxlinenum();'
οncοntextmenu='window.event.returnValue=false;xxmenudiv.style.visibility="visible";'
style="border:#ae34f8 solid 0px;
  font-size: 12px; font-family: 宋体;
  width:100%;
  height:100%;
  overflow:auto">
</textarea>

οncοntextmenu='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;">
type=button
value="运行">



value="编辑">

type=button value='撤销'>

type=button value='恢复'>

type=button value='剪切'>

type=button value='复制'>

type=button value='粘贴'>

type=button value='删除'>

type=button value='全选'>

 


行号


type=button value="新建">
RM style="display:inline" action="file:///c|/My Documents/"
method=get target=_blank>
value='我的文档'>  
type=button value='关于'>
type=button value='帮助'>




type="button" value='源文件'>



<!------------------------------&gt
<object
id=xxclose
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10752043/viewspace-998445/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10752043/viewspace-998445/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值