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

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

?? edit.js

?? java web網絡編程示例,原代碼資源
?? JS
字號:
/*
* File   : $Source: /usr/local/cvs/opencms/modules/org.opencms.editors/resources/system/workplace/editors/simplehtml/edit.js,v $
* Date   : $Date: 2006-03-27 14:53:04 $
* Version: $Revision: 1.4 $
*
* This library is part of OpenCms -
* the Open Source Content Mananagement System
*
* Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* For further information about Alkacon Software GmbH, please see the
* company website: http://www.alkacon.com
*
* For further information about OpenCms, please see the
* project website: http://www.opencms.org
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

//------------------------------------------------------//
// Script for simple page editor
//------------------------------------------------------//

// dialog windows
var dialogElementWindow = null;
var dialogPropertyWindow = null;

// Indicates if the content of the editor window is already set
var contentSetted = false;

// loads the file content into the editor
function initContent() {
	// setting text can not be done now here for the text editor.
	// MS IE 5 has problems with setting text when the editor textarea is
	// not loaded.
	// Workaround: focus() the text editor here and set the text
	// using the onFocus event of the textarea.
	if (document.forms.EDITOR.edit1) document.forms.EDITOR.edit1.focus();
}

// load the file content into the editor. This is called by the onFocus event of the edit textarea
function initContentDelayed() {
	if(!contentSetted) {
		document.EDITOR.edit1.value = decodeURIComponent(__content);
		contentSetted = true;
	}
}

// saves the editors contents
function saveContent() {
	// we have to do a blur on the textarea here. Otherwise Netscape may have problems with reading the value
	document.EDITOR.edit1.blur();
	document.EDITOR.content.value = encodeURIComponent(document.EDITOR.edit1.value);
}

// action on button click
function buttonAction(para) {
	var _form = document.EDITOR;
	_form.action.value = "";
	switch (para) {
	case 1:
		// reload the editor
		saveContent();
		_form.action.value = actionShow;
		_form.target = "_self";
		_form.submit();
		break;
	case 2:
		// preview selected
		saveContent();
		_form.action.value = actionPreview;
		_form.target = "PREVIEW";
		_form.submit();
		break;
	case 3:
		// change element
		saveContent();
		_form.action.value = actionChangeElement;
		_form.target = "_self";
		_form.submit();
		break;
	case 4:
		// open elements window
		saveContent();
		dialogElementWindow = window.open("about:blank","DIALOGELEMENT","width=320,height=250,left=0,top=0,resizable=yes,scrollbars=no,location=no,menubar=no,toolbar=no,dependent=yes");
		document.ELEMENTS.submit();
		dialogElementWindow.focus();
		break;
	case 5:
		// open properties window
		saveContent();
		dialogPropertyWindow = window.open("about:blank","DIALOGPROPERTY","width=600,height=280,left=0,top=0,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no,dependent=yes");
		document.PROPERTIES.submit();
		dialogPropertyWindow.focus();
		break;
	case 6:
		// exit without saving
		saveContent();
		_form.action.value = actionExit;
		_form.target = "_top";
		_form.submit();
		break;
	case 7:
		// save and exit
		saveContent();
		_form.action.value = actionSaveExit;
		_form.target = "_top";
		_form.submit();
		break;
	case 8:
		// save
		saveContent();
		_form.action.value = actionSave;
		_form.target = "_self";
		_form.submit();
		break;
	case 9:
		// save and perform customized action
		saveContent();
		_form.action.value = actionSaveAction;
		_form.target = "_top";
		_form.submit();
		break;
	}
}

function opensmallwin(url, name, w, h) {
	encodedurl = encodeURI(url);
	smallwindow = window.open(encodedurl, name, 'toolbar=no,location=no,directories=no,status=no,menubar=0,scrollbars=yes,resizable=yes,top=150,left=660,width='+w+',height='+h);
	if(smallwindow != null) {
		if (smallwindow.opener == null) {
			smallwindow.opener = self;
		}
	}
	return smallwindow;
}

// EVENT: all browsers have to check the keydown event
if (document.captureEvents) {
	//non IE
	if(Event.KEYDOWN) {
		//NS 4, NS 6+, Mozilla 0.9+
		document.captureEvents(Event.KEYDOWN);
	}
}
/* this next line tells the browser to detect a keydown
event over the whole document and when it detects it,
it should run the event handler function 'keyDownHandler' */
document.onkeydown = keyDownHandler;

function keyDownHandler(e) {
	// EVENT HANDLER: handle tab key in text edit mode
	if (!e) {
		// if the browser did not pass the event information to the
		// function, we will have to obtain it from the event register
		if (window.event) {
			//DOM
			e = window.event;
		} else {
			// total failure, we have no way of referencing the event
			return;
		}
	}

	if (typeof(e.which) == 'number') {
		//NS 4, NS 6+, Mozilla 0.9+, Opera
		key = e.which;
	} else if (typeof(e.keyCode) == 'number') {
		//IE, NS 6+, Mozilla 0.9+
		key = e.keyCode;
	} else if (typeof(e.charCode) == 'number') {
		//also NS 6+, Mozilla 0.9+
		key = e.charCode;
	} else {
		// total failure, we have no way of obtaining the key code
		return;
	}

	switch (key) {
		case 9:
		// prevent switching focus if tabulator key is pressed
		checkTab();
		break;
	}
}

function addText(input, insText) {
	input.focus();
	if (input.createTextRange) {
		document.selection.createRange().text += insText;
	} else if (input.setSelectionRange) {
		var len = input.selectionEnd;
		input.value = input.value.substr(0, len)
			+ insText + input.value.substr(len);
		input.setSelectionRange(len + insText.length, len + insText.length);
	} else {
		input.value += insText;
	}
}

function checkTab() {
	input = document.getElementById("edit1");
	if (input.createTextRange || input.setSelectionRange) {
		input = document.getElementById("edit1");
		if (input.createTextRange) {
			document.getElementById("edit1").selection = document.selection.createRange();
		}
		setTimeout("addText(input, String.fromCharCode(9))", 0);
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品你懂的在线欣赏| 亚洲免费观看在线视频| 国产精品成人免费精品自在线观看| 亚洲三级小视频| 久久99久久精品| 欧美在线观看一区| 欧美激情中文字幕| 美女mm1313爽爽久久久蜜臀| 91免费国产视频网站| 精品国产髙清在线看国产毛片 | 亚洲国产精品一区二区久久恐怖片| 极品少妇一区二区三区精品视频| 欧美午夜片在线观看| 亚洲视频免费看| 成人中文字幕合集| 精品少妇一区二区三区日产乱码| 亚洲一区二区三区四区在线免费观看 | 欧美区视频在线观看| 亚洲免费观看高清完整版在线观看熊| 久久99精品久久久久久国产越南| 欧美在线影院一区二区| 中文字幕一区二区三区四区不卡| 韩国av一区二区三区在线观看| 欧美日韩一区二区在线观看 | 亚洲国产wwwccc36天堂| 97精品电影院| 国产目拍亚洲精品99久久精品| 蜜桃91丨九色丨蝌蚪91桃色| 欧美日韩aaa| 午夜伦欧美伦电影理论片| 欧洲一区二区三区免费视频| 亚洲女性喷水在线观看一区| 99精品偷自拍| 中文字幕亚洲精品在线观看| 99国产一区二区三精品乱码| 国产精品麻豆一区二区| 国产91丝袜在线播放| 久久久久青草大香线综合精品| 玖玖九九国产精品| 欧美精品一区二区三区高清aⅴ| 日本特黄久久久高潮| 日韩一区二区三区四区五区六区| 日本v片在线高清不卡在线观看| 91麻豆精品国产91久久久久| 免费成人在线网站| 26uuu欧美| 国产成人在线观看免费网站| 中文字幕不卡在线播放| 99久久99久久精品免费观看| 亚洲天堂2016| 欧美日韩成人综合天天影院| 麻豆免费精品视频| 国产亚洲欧美色| 国产成人精品午夜视频免费 | 91视频www| 天堂资源在线中文精品| 精品久久久网站| 成人久久18免费网站麻豆| 亚洲欧美激情视频在线观看一区二区三区 | 捆绑变态av一区二区三区| 精品免费视频一区二区| 99免费精品在线观看| 亚洲国产成人tv| 精品动漫一区二区三区在线观看| 国产成人一级电影| 亚洲国产成人av网| 久久精品欧美日韩| 在线观看亚洲精品| 精品一区二区三区免费| 一色桃子久久精品亚洲| 黑人巨大精品欧美黑白配亚洲| 久久久久国产精品免费免费搜索| 一本色道久久综合亚洲aⅴ蜜桃 | 欧美精品一区二区高清在线观看 | 欧美日韩精品久久久| 国产真实精品久久二三区| 久久久精品免费观看| www.成人网.com| 日本亚洲三级在线| 中文一区二区在线观看| 在线免费观看日本欧美| 麻豆视频观看网址久久| 国产欧美精品一区| 欧美久久一区二区| 成人综合婷婷国产精品久久蜜臀| 亚洲欧美国产高清| 欧美不卡在线视频| 色综合久久久久综合体| 免费成人美女在线观看.| 国产精品乱码人人做人人爱| 欧美天堂亚洲电影院在线播放| 狠狠色丁香久久婷婷综| 日韩理论片在线| 日韩精品在线看片z| 99re在线精品| 免费成人结看片| 亚洲精品欧美在线| 26uuu色噜噜精品一区| 成人国产一区二区三区精品| 美洲天堂一区二卡三卡四卡视频| 中文字幕制服丝袜一区二区三区| 欧美一区二区久久久| 99精品桃花视频在线观看| 丝袜美腿亚洲一区| 亚洲三级在线看| 欧美成人性战久久| 欧美理论电影在线| 色综合久久久久久久久久久| 国产一区二区不卡| 日韩av中文在线观看| 一区二区三区四区乱视频| 欧美草草影院在线视频| 日韩欧美在线一区二区三区| 日本韩国精品在线| 成人午夜精品一区二区三区| 蜜臀av性久久久久蜜臀aⅴ| 亚洲一区影音先锋| 亚洲欧美国产毛片在线| 国产三级欧美三级日产三级99 | 欧美精品黑人性xxxx| 日本精品裸体写真集在线观看 | 国产综合色在线| 美女久久久精品| 久久超碰97人人做人人爱| 天天色图综合网| 丝袜美腿成人在线| 亚洲国产精品综合小说图片区| 最新国产精品久久精品| 亚洲少妇最新在线视频| 综合激情网...| 亚洲欧美激情小说另类| 亚洲欧美日韩人成在线播放| 国产精品国产a级| 国产精品丝袜久久久久久app| 久久久亚洲午夜电影| 国产精品久久久久久久久搜平片| 久久久午夜电影| 国产亚洲精品bt天堂精选| 久久精品欧美日韩精品| 国产精品免费丝袜| 亚洲欧美另类小说视频| 一区二区三区日韩欧美精品 | 偷窥少妇高潮呻吟av久久免费| 亚洲精品国久久99热| 亚洲一区在线观看免费| 视频在线观看91| 精品无人区卡一卡二卡三乱码免费卡| 免费观看在线色综合| 黄一区二区三区| 成人短视频下载| 色哟哟国产精品| 欧美电影在线免费观看| 日韩美女天天操| 精品蜜桃在线看| 最近日韩中文字幕| 一区二区久久久久久| 亚洲成a人片综合在线| 免费在线看一区| 黑人精品欧美一区二区蜜桃| 国产精品一级二级三级| 色综合视频一区二区三区高清| 欧美日韩一区不卡| 日韩免费视频一区二区| 欧美激情一区二区三区| 亚洲精品成人少妇| 奇米亚洲午夜久久精品| www.欧美亚洲| 91精品综合久久久久久| 国产蜜臀av在线一区二区三区| 亚洲激情六月丁香| 九色|91porny| 不卡av在线网| 91福利国产精品| 日韩免费成人网| 国产亚洲午夜高清国产拍精品| 一区免费观看视频| 久久99蜜桃精品| 91农村精品一区二区在线| 精品少妇一区二区三区在线视频| 国产欧美一区二区精品仙草咪| 视频一区二区欧美| voyeur盗摄精品| 欧美成人综合网站| 亚洲综合激情网| 国产成人亚洲综合a∨婷婷图片 | 日韩成人dvd| 欧美视频三区在线播放| 国产欧美视频一区二区三区| 日韩av中文字幕一区二区三区| 91影院在线观看| 国产亚洲美州欧州综合国| 亚洲国产精品久久艾草纯爱| 国产91在线观看| 91精品国产91久久综合桃花| 综合电影一区二区三区 | 久久精品一区蜜桃臀影院| 亚洲国产综合91精品麻豆| 99热这里都是精品| 欧美国产欧美综合| 成人国产精品免费观看|