⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.js

📁 如果遇到MD5加密文件(一般都是这个)
💻 JS
字号:

function RunCom(what,opt) 
{
  content1.focus();
  content1.document.execCommand(what, '', opt);
  content1.focus();
}

function createLink() 
{
  content1.focus();
  content1.document.execCommand('CreateLink', true, true);
  content1.focus();
}

function foreColor() 
{
  content1.focus();
  RunCom('ForeColor', postform.fColor[postform.fColor.selectedIndex].value);
  postform.fColor.options.value = 'color';
}

function creatTable()
{
  content1.focus();

  var arr = showModalDialog("table.html", "", "dialogWidth:13.5em; dialogHeight:10.5em; status:0");
  
  if (arr != null){
  var ss;
  ss=arr.split("*")
  row=ss[0];
  col=ss[1];
  var string;
  string="<table border=1 cellSpacing=3 cellPadding=3 width=200 bordercolor=#000000>";
  for(i=1;i<=row;i++){
  string=string+"<tr>";
  for(j=1;j<=col;j++){
  string=string+"<td></td>";
  }
  string=string+"</tr>";
  }
    content = content1.document.body.innerHTML;
    content = content+string;
    content1.document.body.innerHTML = content;
  }
  else
  { 
    content1.focus();
  }
}

function insertImage(ImageType) 
{

window.open("upImage.aspx?type="+ImageType+"","_blank","resizable=yes,width=400,height=200");


}

function text_clear()
{
  content1.document.body.innerHTML = "";
  document.postform.title.value = "";	
}

function insertHtml(HtmlCode)
{
content1.focus();
content1.document.selection.createRange().pasteHTML(HtmlCode);

}

	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -