亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? editor.js

?? NONO一族J2EE新聞系統 采用了目前流行的J2EE技術
?? JS
字號:
/////////////////////////////////////////
//editor functions
///////////////////////////////////////
//create editor object
function createEditor(editorName, editorObjectName, toolbarPaneName, workspaceName, resourcePath){
  var editorObj = findObject(editorObjectName);
  if(editorObj == null){
    err("editorObj object not exist!");
    return false;
  }
  if(editorObj.loaded)return false;
  
  //get browser version
  var userAgent = navigator.userAgent.toLowerCase();
  editorObj.isIE5 = (userAgent.indexOf("msie 5.0")  > -1);
  editorObj.isIE55 = (userAgent.indexOf("msie 5.5")  > -1);
  editorObj.isIE6 = (userAgent.indexOf("msie 6.0")  > -1);
  editorObj.isIE = (editorObj.isIE5 || editorObj.isIE55 || editorObj.isIE6);
  
  //init member variables
  editorObj.loaded=false;
  editorObj.pureText=true;
  editorObj.HTMLMode = true;
  editorObj.bodyTag="<head><style type=\"text/css\">body {font-size:	10.8pt}</style><meta http-equiv=Content-Type content=\"text/html; charset=gb2312\"></head><BODY bgcolor=\"#FFFFFF\" MONOSPACE></BODY>";
  editorObj.resourcePath = resourcePath;
  editorObj.textarea = findObject(editorName);
  editorObj.toolbars = findObject(toolbarPaneName);
  
  //init composition
  if(editorObj.isIE){
    editorObj.composition = findObject(workspaceName);
  }
  else{
    editorObj.composition = findObject(workspaceName).contentWindow;
  }
  
  //init member functions
  editorObj.setMode = setMode;
  editorObj.cleanHTML = cleanHTML;
  editorObj.getText = getText;
  editorObj.setText = setText;
  editorObj.getPureHtml = getPureHtml;
  editorObj.textToTextarea = textToTextarea;
  editorObj.textToComposition = textToComposition;
  editorObj.showWorkspaceHTML = showWorkspaceHTML;
  editorObj.showWorkspaceCode = showWorkspaceCode;
  
  
  //operation commands
  editorObj.emptyOperation = emptyOperation;
  editorObj.createRange = createRange;
  editorObj.execCommand = execCommand;
  editorObj.insertHTML = insertHTML;
  editorObj.insertFlash = insertFlash;
  editorObj.insertRM = insertRM;
  editorObj.insertWMV = insertWMV;
  editorObj.insertImage = insertImage;
  editorObj.foreColorDlg = foreColorDlg;
  editorObj.backColorDlg = backColorDlg;
  
  //composition component init
  editorObj.composition.document.open();
  editorObj.composition.document.write(this.bodyTag);
  editorObj.composition.document.close();
	editorObj.composition.document.designMode="On";
  	
	this.loaded = true;
  return true;
}

//Show HTML in workspace
function showWorkspaceHTML(){
	this.toolbars.style.display = "block";
	this.setMode(true);
	return;
}

//Show code in workspace
function showWorkspaceCode(){
	this.toolbars.style.display = "none";
	this.setMode(false);
	return;
}

//Change edit mode(html or code)
function setMode(isHTML)
{
  if(this.HTMLMode == isHTML)return;
  this.HTMLMode = isHTML;
  var cont;
  if (this.HTMLMode) {
    cont = this.composition.document.body.innerText;
    this.composition.document.body.innerHTML = cont;
  }
  else {
    this.cleanHTML();
    this.cleanHTML();

    cont = this.composition.document.body.innerHTML;
    this.composition.document.body.innerText = cont;    
  }

  this.composition.focus();
  return;
}

//Get the content text
function getText(){
	if (this.HTMLMode){
		this.cleanHTML();
		this.cleanHTML();
		return this.composition.document.body.innerHTML;
	}
	else
	{
		return this.composition.document.body.innerText;
	}
}

//Set the content
function setText(str){
	if (this.HTMLMode)
		this.composition.document.body.innerHTML = str;
	else
		this.composition.document.body.innerText = str;
	return;
}

//Clean html tags
function cleanHTML(){
  var fonts = findObjectListByTag("FONT", this.composition.document);
  var curr;
  for (var i = fonts.length - 1; i >= 0; i--) {
    curr = fonts[i];
    if (curr.style.backgroundColor == "#ffffff") curr.outerHTML	= curr.innerHTML;
  }
  return;
}

//Get pure html code
function getPureHtml(){
  var str = "";
  var paras = findObjectListByTag("P", this.composition.document);
  if (paras.length > 0)	{
    for	(var i=paras.length-1; i >= 0; i--) str	= paras[i].innerHTML + "\n" + str;
  } else {
    str	= this.composition.document.body.innerHTML;
  }
  return str;
}

//Copy the content from composition to textarea
function textToTextarea(){
	this.textarea.value = this.getText();
	return;
}

//Copy the content from textarea to composition
function textToComposition(){
	this.setText(this.textarea.value);
	return;
}

//Do nothing
function emptyOperation(){
  return true;
}

//Create a selection range of the workspace.
function createRange(){
  return this.composition.document.selection.createRange();
}
  
//Execute browser's command
function execCommand(command, param) {
  if (!this.HTMLMode)return;
  
  this.composition.focus();
  var editRange = this.createRange();
  editRange.execCommand(command, true, param);
  
  this.composition.focus();
  editRange.select();
}

//insert html code
function insertHTML(str, scope){
  if (!this.HTMLMode)return;
  this.composition.focus();
  var editRange = this.createRange(scope);
  editRange.pasteHTML(str);
}

//insert flash
function insertFlash(desc){
  if (!this.HTMLMode)return;
  
  var url;
  if(desc == null){
    url = window.prompt("Please input the url of the flash movie", "http://");
  }
  else{
    url = window.prompt(desc, "http://");
  }
	if( url != null ){
		this.insertHTML("<embed src='" + url + "' type='application/x-shockwave-flash'></embed>");
	}
}

//insert RM
function insertRM(desc){
  if (!this.HTMLMode)return;
  
  var url;
  if(desc == null){
    url = window.prompt("Please input the url of the flash movie", 'http://');
  }
  else{
    url = window.prompt(desc, 'http://');
  }
	if( url != null ){
	  tag = "<object id=\"RVOCX\" classid=\"CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"320\" height=\"240\">\n" +
	        "<param name=\"SRC\" value=\"" + url + "\">\n" + 
	        "<param name=\"CONTROLS\" value=\"ImageWindow\">\n" +
	        "<param name=\"CONSOLE\" value=\"cons\">\n" +
	        "<embed src=\"" + url + "\" type=\"audio/x-pn-realaudio-plugin\" width=\"320\" height=\"240\" controls=\"ImageWindow\" console=\"cons\"></embed>\n" +
	        "</object>\n";
	  this.insertHTML(tag);
	}
}

//insert WMV
function insertWMV(desc){
  if (!this.HTMLMode)return;
  
  var url;
  if(desc == null){
    url = window.prompt("Please input the url of the flash movie", 'http://');
  }
  else{
    url = window.prompt(desc, 'http://');
  }
	if( url != null ){
		this.insertHTML("<embed type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 flename=mp src=" + url + "  width=320 height=240></embed>\n");
	}
}

//insert Image
function insertImage(){
  this.execCommand("InsertImage");
}

//get the parent element of the "start" tag
function getEl(sTag, start){
  while	((start != null) && (start.tagName != sTag)){
		start = start.parentElement;
	}
  return start;
}

//get the closest tag of the select range
function getCurrentTag(){
  var editRange = this.createRange(scope);
}

//show fore color dialog
function foreColorDlg(){
  var color = modalDialog(this.resourcePath +
                      "/selectcolor.jsp?resourcePath=" + this.resourcePath +
                      "&language=" + this.language +
                      "&styleName=" + this.styleName , 390, 450);
  if(color == null)return;
  
  this.execCommand('ForeColor', color);
}

//show back color dialog
function backColorDlg(){
  var color = modalDialog(this.resourcePath +
                      "/selectcolor.jsp?resourcePath=" + this.resourcePath +
                      "&language=" + this.language +
                      "&styleName=" + this.styleName , 390, 450);
  if(color == null)return;
  
  this.execCommand('BackColor', color);
}


/*
/////////////////////////////////////////////////
//table functions
/////////////////////////////////////////////////
//a table struct
function TTable(columnCount, rowCount, align, 
                cellpadding, cellspacing, border, 
                height, width, 
                bgcolor, bordercolor, background){
  if(columnCount == null || rowCount == null){
    error("invalid table parameters!");
    return null;
  }
  this.columnCount = columnCount;
  this.rowCount = rowCount;
  this.align = align;
  this.cellpadding = cellpadding;
  this.cellspacing = cellspacing;
  this.border = ((border == null) ? 1 : border);
  this.height = height;
  this.width = width;
  this.bgcolor = bgcolor;
  this.bordercolor = bordercolor;
  this.background = background;
}
// create a table
function insertTable(newTable){
  if(newTable == null){
    error("table struct not create!");
    return;
  }
  var doc = this.composition.document;
  var table = doc.createElement("table");
  
  if(newTable.align != null)table.align = newTable.align;
  if(newTable.cellpadding != null)table.cellpadding = newTable.cellpadding;
  if(newTable.cellspacing != null)table.cellspacing = newTable.cellspacing;
  if(newTable.border != null)table.border = newTable.border;
  if(newTable.height != null)table.height = newTable.height;
  if(newTable.width != null)table.width = newTable.width;
  if(newTable.bgcolor != null)table.bgcolor = newTable.bgcolor;
  if(newTable.bordercolor != null)table.bordercolor = newTable.bordercolor;
  if(newTable.background != null)table.background = newTable.background;
  
  for(var i = 0; i < newTable.rowCount; ++i){
    var tr = doc.createElement("tr");
    table.appendChild(tr);
    for(var j = 0; j < newTable.columnCount; ++j){
      var td = doc.createElement("td");
      tr.appendChild(td);
      td.innerHTML = "&nbsp;";
    }
  }
  this.insertHTML(table.outerHTML);
}

function insertTableDlg(){
  var table = modalDialog(this.resourcePath +
                      "/inserttable.jsp?resourcePath=" + this.resourcePath +
                      "&language=" + this.language +
                      "&styleName=" + this.styleName , 420, 330);
  if(table == null)return;
  
  this.insertTable(table);
}

function insertRow(isAfter){
  
}

*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱码精品一区二区三| av一区二区三区四区| 国产福利一区二区三区在线视频| 91原创在线视频| 日韩女优制服丝袜电影| 亚洲色图在线播放| 国产一区二区不卡| 欧美日产在线观看| 亚洲黄色免费网站| 粉嫩av一区二区三区粉嫩| 欧美一区二区三区喷汁尤物| 亚洲黄色片在线观看| 粉嫩av一区二区三区在线播放| 91麻豆精品91久久久久同性| 亚洲主播在线观看| 99精品一区二区三区| 久久久五月婷婷| 美女久久久精品| 欧美高清www午色夜在线视频| 亚洲手机成人高清视频| 国产成人av电影在线观看| 精品国产一区二区三区忘忧草 | 欧洲视频一区二区| 国产精品久久久久久妇女6080| 精品一区二区三区久久| 欧美一级xxx| 美腿丝袜亚洲综合| 欧美一级免费观看| 青椒成人免费视频| 91麻豆精品国产91久久久资源速度| 亚洲蜜臀av乱码久久精品蜜桃| 不卡区在线中文字幕| 国产精品久久久久7777按摩| 国产99久久久久| 欧美国产精品中文字幕| 国产91精品免费| 国产精品人人做人人爽人人添| 国产成人午夜高潮毛片| 国产精品丝袜一区| 成人激情电影免费在线观看| 国产精品麻豆网站| 91视频一区二区三区| 亚洲女性喷水在线观看一区| 91久久精品网| 亚洲第一激情av| wwwwxxxxx欧美| 久久9热精品视频| 国产日韩精品一区| 99国产精品久久久久久久久久久 | 欧美一区二区三区系列电影| 裸体在线国模精品偷拍| 久久久久久久久久看片| 成人黄色国产精品网站大全在线免费观看| 国产精品丝袜黑色高跟| 日本道免费精品一区二区三区| 一区二区三区国产精华| 欧美一区三区二区| 国产精品一线二线三线精华| 综合久久久久久| 欧美精品色一区二区三区| 精品一区二区三区免费| 中文字幕在线不卡国产视频| 欧美精品在欧美一区二区少妇| 麻豆视频一区二区| 中文字幕在线免费不卡| 制服丝袜中文字幕一区| 成人免费视频播放| 日本成人中文字幕| 亚洲国产精品传媒在线观看| 色av成人天堂桃色av| 蜜桃av一区二区三区电影| 中文字幕亚洲综合久久菠萝蜜| 欧美影视一区二区三区| 国产精品一区二区不卡| 亚洲国产一区二区三区青草影视| 欧美xxxx在线观看| 色综合夜色一区| 国产一区二区影院| 午夜精品福利一区二区三区蜜桃| 久久女同性恋中文字幕| 欧美精品丝袜久久久中文字幕| 国产v综合v亚洲欧| 免费成人性网站| 一区二区三区中文字幕在线观看| 精品国产一区二区精华| 色婷婷综合视频在线观看| 久久不见久久见中文字幕免费| 亚洲欧美日韩电影| 国产女人18水真多18精品一级做 | 天天av天天翘天天综合网 | 欧美一区二区高清| 一本色道a无线码一区v| 国产麻豆精品在线观看| 日韩精品每日更新| 亚洲一二三区在线观看| 中文字幕一区二区三区四区| 久久视频一区二区| 欧美电视剧免费观看| 欧美男男青年gay1069videost| 成人激情图片网| 国产成人夜色高潮福利影视| 久久精品国产77777蜜臀| 日韩专区在线视频| 天堂资源在线中文精品| 亚洲午夜在线视频| 一区二区三区精密机械公司| 中文字幕一区二区三区蜜月| 国产亚洲欧美日韩在线一区| 精品国产sm最大网站免费看| 国产亚洲一区二区在线观看| 日韩视频一区二区三区在线播放| 欧美日韩一级视频| 欧美午夜精品理论片a级按摩| 色婷婷精品久久二区二区蜜臂av | 成人免费在线视频观看| 国产婷婷色一区二区三区在线| 欧美不卡一区二区| 欧美成人一级视频| 欧美tickling挠脚心丨vk| 精品电影一区二区| 久久久久国产一区二区三区四区| 精品国产乱码久久| 国产欧美日韩精品在线| 国产精品系列在线| 日韩理论电影院| 亚洲在线免费播放| 亚洲一区影音先锋| 日本中文字幕不卡| 国产精品一区二区三区乱码| 粉嫩欧美一区二区三区高清影视| jizzjizzjizz欧美| 欧美专区日韩专区| 欧美一卡二卡三卡| 国产拍欧美日韩视频二区| 一区在线观看视频| 亚洲国产乱码最新视频 | 国产suv一区二区三区88区| 成人毛片在线观看| 欧洲av在线精品| 日韩一区二区电影在线| 欧美va亚洲va在线观看蝴蝶网| 中文字幕高清不卡| 亚洲一区二区av在线| 久久成人免费网站| 99这里只有精品| 欧美精选在线播放| 国产日韩av一区| 亚洲尤物视频在线| 国产麻豆精品视频| 欧美在线一二三| 精品成a人在线观看| 亚洲人吸女人奶水| 免费日韩伦理电影| 成人听书哪个软件好| 欧美日韩一二三区| 中文字幕欧美激情一区| 亚洲成av人片在线观看| 国产aⅴ综合色| 欧美福利一区二区| 中文字幕一区日韩精品欧美| 日本aⅴ免费视频一区二区三区| 国产成人午夜99999| 欧美丰满高潮xxxx喷水动漫| 国产精品沙发午睡系列990531| 丝袜诱惑亚洲看片| av成人免费在线| 精品国产一区二区三区久久影院| 亚洲三级在线观看| 国产精品综合在线视频| 欧美猛男男办公室激情| 亚洲人成小说网站色在线| 麻豆精品新av中文字幕| 欧美亚洲自拍偷拍| 亚洲日本乱码在线观看| 国内成人免费视频| 欧美区视频在线观看| 亚洲视频1区2区| 成人黄色av网站在线| 精品国精品国产| 青青草视频一区| 精品视频在线看| 一区二区三区四区在线| proumb性欧美在线观看| 国产天堂亚洲国产碰碰| 国产在线精品视频| 日韩一二三区视频| 亚洲福利视频一区| 在线观看国产91| 一区二区三区产品免费精品久久75| 粉嫩欧美一区二区三区高清影视| 中文字幕在线观看不卡视频| 精品在线观看免费| 欧美一区二区三区免费观看视频| 亚洲成av人片www| 欧美日本乱大交xxxxx| 亚洲成人精品影院| 欧美精品第一页| 免费成人在线播放| 欧美tk—视频vk| 极品美女销魂一区二区三区免费|