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

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

?? editor.js

?? 新聞發布系統后
?? JS
?? 第 1 頁 / 共 4 頁
字號:
// <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
// 需要IE5.5以上的版本支持


// write out styles for UI buttons
document.write('<style type="text/css">\n');
document.write('.btn     { width: 22px; height: 22px; border: 1px solid buttonface; margin: 0; padding: 0; }\n');
document.write('.btnOver { width: 22px; height: 22px; border: 1px outset; }\n');
document.write('.btnDown { width: 22px; height: 22px; border: 1px inset; background-color: buttonhighlight; }\n');
document.write('.btnNA   { width: 22px; height: 22px; border: 1px solid buttonface; filter: alpha(opacity=25); }\n');
document.write('.cMenu     { background-color: threedface; color: menutext; cursor: Default; font-family: MS Sans Serif; font-size: 8pt; padding: 2 12 2 16; }');
document.write('.cMenuOver { background-color: highlight; color: highlighttext; cursor: Default; font-family: MS Sans Serif; font-size: 8pt; padding: 2 12 2 16; }');
document.write('.cMenuDivOuter { background-color: threedface; height: 9 }');
document.write('.cMenuDivInner { margin: 0 4 0 4; border-width: 1; border-style: solid; border-color: threedshadow threedhighlight threedhighlight threedshadow; }');
document.write('</style>\n');


/* ---------------------------------------------------------------------- *\
  Function    : editor_defaultConfig 系統默認的模式
  Description : default configuration settings for wysiwyg editor
\* ---------------------------------------------------------------------- */

function editor_defaultConfig(objname) {

	this.version = "2.03"

	this.width =  "auto";
	this.height = "auto";
	this.bodyStyle = 'background-color: #FFFFFF; font-family: "Verdana"; font-size: x-small;';
	this.imgURL = _editor_url + 'images/';
	this.debug  = 0;

	this.replaceNextlines = 0; // replace nextlines from spaces (on output)
	this.plaintextInput = 0;   // replace nextlines with breaks (on input)

	this.toolbar = [
					['fontname'],
					['fontsize'],
				//    ['fontstyle'],
				//    ['linebreak'],
					['bold','italic','underline','separator'],
				//  ['strikethrough','subscript','superscript','separator'],
					['justifyleft','justifycenter','justifyright','separator'],
					['OrderedList','UnOrderedList','Outdent','Indent','separator'],
					['forecolor','backcolor','separator'],
					['HorizontalRule','Createlink','InsertImage','InsertTable','htmlmode','separator'],
				//  ['custom1','custom2','custom3','separator'],
					['popupeditor','about']
		];

	this.fontnames = {
					"Arial":           "arial, helvetica, sans-serif",
					"Courier New":     "courier new, courier, mono",
					"Georgia":         "Georgia, Times New Roman, Times, Serif",
					"Tahoma":          "Tahoma, Arial, Helvetica, sans-serif",
					"Times New Roman": "times new roman, times, serif",
					"Verdana":         "Verdana, Arial, Helvetica, sans-serif",
					"impact":          "impact",
					"WingDings":       "WingDings"
		};

	this.fontsizes = {
			"1 (8 pt)":  "1",
			"2 (10 pt)": "2",
			"3 (12 pt)": "3",
			"4 (14 pt)": "4",
			"5 (18 pt)": "5",
			"6 (24 pt)": "6",
			"7 (36 pt)": "7"
	  };

////	this.stylesheet = "http://www.domain.com/sample.css"; // full URL to stylesheet

	this.fontstyles = [     // make sure these exist in the header of page the content is being display as well in or they won't work!
	//    { name: "headline",     className: "headline",  classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },
	//    { name: "arial red",    className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },
	//    { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" },
	];

	this.btnList = {
			// buttonName:    commandID,               title,                onclick,                   image,
			"bold":           ['Bold',                 '加粗',               'editor_action(this.id)',  'ed_format_bold.gif'],
			"italic":         ['Italic',               '斜體',             'editor_action(this.id)',  'ed_format_italic.gif'],
			"underline":      ['Underline',            'Underline',          'editor_action(this.id)',  'ed_format_underline.gif'],
			"strikethrough":  ['StrikeThrough',        'Strikethrough',      'editor_action(this.id)',  'ed_format_strike.gif'],
			"subscript":      ['SubScript',            'Subscript',          'editor_action(this.id)',  'ed_format_sub.gif'],
			"superscript":    ['SuperScript',          'Superscript',        'editor_action(this.id)',  'ed_format_sup.gif'],
			"justifyleft":    ['JustifyLeft',          'Justify Left',       'editor_action(this.id)',  'ed_align_left.gif'],
			"justifycenter":  ['JustifyCenter',        'Justify Center',     'editor_action(this.id)',  'ed_align_center.gif'],
			"justifyright":   ['JustifyRight',         'Justify Right',      'editor_action(this.id)',  'ed_align_right.gif'],
			"orderedlist":    ['InsertOrderedList',    'Ordered List',       'editor_action(this.id)',  'ed_list_num.gif'],
			"unorderedlist":  ['InsertUnorderedList',  'Bulleted List',      'editor_action(this.id)',  'ed_list_bullet.gif'],
			"outdent":        ['Outdent',              'Decrease Indent',    'editor_action(this.id)',  'ed_indent_less.gif'],
			"indent":         ['Indent',               'Increase Indent',    'editor_action(this.id)',  'ed_indent_more.gif'],
			"forecolor":      ['ForeColor',            'Font Color',         'editor_action(this.id)',  'ed_color_fg.gif'],
			"backcolor":      ['BackColor',            'Background Color',   'editor_action(this.id)',  'ed_color_bg.gif'],
			"horizontalrule": ['InsertHorizontalRule', 'Horizontal Rule',    'editor_action(this.id)',  'ed_hr.gif'],
			"createlink":     ['CreateLink',           'Insert Web Link',    'editor_action(this.id)',  'ed_link.gif'],
			"insertimage":    ['InsertImage',          'Insert Image',       'editor_action(this.id)',  'ed_image.gif'],
			"inserttable":    ['InsertTable',          'Insert Table',       'editor_action(this.id)',  'insert_table.gif'],
			"htmlmode":       ['HtmlMode',             'View HTML Source',   'editor_setmode(\''+objname+'\')', 'ed_html.gif'],
			"popupeditor":    ['popupeditor',          'Enlarge Editor',     'editor_action(this.id)',  'fullscreen_maximize.gif'],
			"about":          ['about',                '關于當前編輯器',  'editor_about(\''+objname+'\')',  'ed_about.gif'],

			// Add custom buttons here:
			"custom1":           ['custom1',         'Purpose of button 1',  'editor_action(this.id)',  'ed_custom.gif'],
			"custom2":           ['custom2',         'Purpose of button 2',  'editor_action(this.id)',  'ed_custom.gif'],
			"custom3":           ['custom3',         'Purpose of button 3',  'editor_action(this.id)',  'ed_custom.gif'],
		   // end: custom buttons

			"help":           ['showhelp',             'Help using editor',  'editor_action(this.id)',  'ed_help.gif']
		};


}


/* ---------------------------------------------------------------------- *\
  Function    : editor_generate 設置編輯器的對象和內容
  Description : replace textarea with wysiwyg editor
  Usage       : editor_generate("textarea_id",[height],[width]);
  Arguments   : objname - ID of textarea to replace
                w       - width of wysiwyg editor
                h       - height of wysiwyg editor
\* ---------------------------------------------------------------------- */


function editor_generate(objname,userConfig) {

  // Default Settings
  var config = new editor_defaultConfig(objname);
	  if (userConfig) {
		for (var thisName in userConfig) {
			  if (userConfig[thisName]) {
			  		config[thisName] = userConfig[thisName];
				}
		}
	  }
  document.all[objname].config = config; // store config settings

  // set size to specified size or size of original object
  var obj    = document.all[objname];
		  if (!config.width || config.width == "auto") {
				if (obj.style.width) {   // use css style
						config.width = obj.style.width;
				}else if (obj.cols){  // col width + toolbar
						config.width = (obj.cols * 8) + 22;
				}else {  // default
						config.width = '100%';
				}
		  }

		  if (!config.height || config.height == "auto") {
				if(obj.style.height){  // use css style
						config.height = obj.style.height;
				}else if (obj.rows){  // row height
						config.height = obj.rows * 17
				}else{ // default
						config.height = '200';
				}
		  }

  var tblOpen  = '<table border=0 cellspacing=0 cellpadding=0 style="float: left;"  unselectable="on"><tr><td style="border: none; padding: 1 0 0 0"><nobr>';
  var tblClose = '</nobr></td></tr></table>\n';

  // build button toolbar

  var toolbar = '';
  var btnGroup, btnItem, aboutEditor;
  for (var btnGroup in config.toolbar) {

    // linebreak
    if (config.toolbar[btnGroup].length == 1 &&
        config.toolbar[btnGroup][0].toLowerCase() == "linebreak") {
      toolbar += '<br clear="all">';
      continue;
    }

    toolbar += tblOpen;
    for (var btnItem in config.toolbar[btnGroup]) {
      var btnName = config.toolbar[btnGroup][btnItem].toLowerCase();

      // fontname
      if (btnName == "fontname") {
        toolbar += '<select id="_' +objname+ '_FontName" onChange="editor_action(this.id)" unselectable="on" style="margin: 1 2 0 2; font-size: 12px;">';
        for (var fontname in config.fontnames) {
          toolbar += '<option value="' +config.fontnames[fontname]+ '">' +fontname+ '</option>'
        }
        toolbar += '</select>';
        continue;
      }

      // fontsize
      if (btnName == "fontsize") {
        toolbar += '<select id="_' +objname+ '_FontSize" onChange="editor_action(this.id)" unselectable="on" style="margin: 1 2 0 0; font-size: 12px;">';
        for (var fontsize in config.fontsizes) {
          toolbar += '<option value="' +config.fontsizes[fontsize]+ '">' +fontsize+ '</option>'
        }
        toolbar += '</select>\n';
        continue;
      }

      // font style
      if (btnName == "fontstyle") {
        toolbar += '<select id="_' +objname+ '_FontStyle" onChange="editor_action(this.id)" unselectable="on" style="margin: 1 2 0 0; font-size: 12px;">';
        + '<option value="">Font Style</option>';
        for (var i in config.fontstyles) {
          var fontstyle = config.fontstyles[i];
          toolbar += '<option value="' +fontstyle.className+ '">' +fontstyle.name+ '</option>'
        }
        toolbar += '</select>';
        continue;
      }

      // separator
      if (btnName == "separator") {
        toolbar += '<span style="border: 1px inset; width: 1px; font-size: 16px; height: 16px; margin: 0 3 0 3"></span>';
        continue;
      }

      // buttons
      var btnObj = config.btnList[btnName];
      if (btnName == 'linebreak') { alert("htmlArea error: 'linebreak' must be in a subgroup by itself, not with other buttons.\n\nhtmlArea wysiwyg editor not created."); return; }
      if (!btnObj) { alert("htmlArea error: button '" +btnName+ "' not found in button list when creating the wysiwyg editor for '"+objname+"'.\nPlease make sure you entered the button name correctly.\n\nhtmlArea wysiwyg editor not created."); return; }
      var btnCmdID   = btnObj[0];
      var btnTitle   = btnObj[1];
      var btnOnClick = btnObj[2];
      var btnImage   = btnObj[3];
      toolbar += '<button title="' +btnTitle+ '" id="_' +objname+ '_' +btnCmdID+ '" class="btn" onClick="' +btnOnClick+ '" onmouseover="if(this.className==\'btn\'){this.className=\'btnOver\'}" onmouseout="if(this.className==\'btnOver\'){this.className=\'btn\'}" unselectable="on"><img src="' +config.imgURL + btnImage+ '" border=0 unselectable="on"></button>';


    } // end of button sub-group
    toolbar += tblClose;
  } // end of entire button set

  // build editor

  var editor = '<span id="_editor_toolbar"><table border=0 cellspacing=0 cellpadding=0 bgcolor="buttonface" style="padding: 1 0 0 2" width=' + config.width + ' unselectable="on"><tr><td>\n'
  + toolbar
  + '</td></tr></table>\n'
  + '</td></tr></table></span>\n'
  + '<textarea ID="_' +objname + '_editor" style="width:' +config.width+ '; height:' +config.height+ '; margin-top: -1px; margin-bottom: -1px;" wrap=soft></textarea>';

  // add context menu
  editor += '<div id="_' +objname + '_cMenu" style="position: absolute; visibility: hidden;"></div>';

  //  hide original textarea and insert htmlarea after it
  if (!config.debug) { document.all[objname].style.display = "none"; }

  if (config.plaintextInput) {     // replace nextlines with breaks
    var contents = document.all[objname].value;
    contents = contents.replace(/\r\n/g, '<br>');
    contents = contents.replace(/\n/g, '<br>');
    contents = contents.replace(/\r/g, '<br>');
    document.all[objname].value = contents;
  }

  // insert wysiwyg
  document.all[objname].insertAdjacentHTML('afterEnd', editor)

  // convert htmlarea from textarea to wysiwyg editor
  editor_setmode(objname, 'init');

  // call filterOutput when user submits form
  for (var idx=0; idx < document.forms.length; idx++) {
    var r = document.forms[idx].attachEvent('onsubmit', function() { editor_filterOutput(objname); });
    if (!r) { alert("Error attaching event to form!"); }
  }

return true;

}

/* ---------------------------------------------------------------------- *\
  Function    : editor_action
  Description : perform an editor command on selected editor content
  Usage       :
  Arguments   : button_id - button id string with editor and action name
\* ---------------------------------------------------------------------- */

function editor_action(button_id) {

  // split up button name into "editorID" and "cmdID"
  var BtnParts = Array();
  BtnParts = button_id.split("_");
  var objname    = button_id.replace(/^_(.*)_[^_]*$/, '$1');
  var cmdID      = BtnParts[ BtnParts.length-1 ];
  var button_obj = document.all[button_id];
  var editor_obj = document.all["_" +objname + "_editor"];
  var config     = document.all[objname].config;

  // help popup
  if (cmdID == 'showhelp') {
    window.open(_editor_url + "popups/editor_help.html", 'EditorHelp');
    return;
  }

  // popup editor
  if (cmdID == 'popupeditor') {
    window.open(_editor_url + "popups/fullscreen.html?"+objname,
                'FullScreen',
                'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=640,height=480');
    return;
  }

  // check editor mode (don't perform actions in textedit mode)
  if (editor_obj.tagName.toLowerCase() == 'textarea') { return; }

  var editdoc = editor_obj.contentWindow.document;
  editor_focus(editor_obj);

  // get index and value for pulldowns
  var idx = button_obj.selectedIndex;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲卡通动漫在线| 日韩伦理电影网| 成人免费看片app下载| 国产欧美一区二区精品性色 | 亚洲激情男女视频| 日韩一区二区三区免费看 | 亚洲另类在线视频| 亚洲精品一区二区三区四区高清 | 欧美日韩精品欧美日韩精品| 久久精品国产澳门| 亚洲人成网站在线| 精品国产123| 欧美在线999| 成人精品免费看| 精品一区二区在线观看| 一区二区三区免费看视频| 日韩欧美视频一区| 欧美偷拍一区二区| 成人av在线影院| 免费在线视频一区| 一区二区三区色| 日韩欧美的一区| 在线播放国产精品二区一二区四区| 国产二区国产一区在线观看 | 国产精品资源在线| 亚洲国产成人高清精品| 精品福利在线导航| 欧美日韩国产高清一区二区| 成人黄页在线观看| 美女脱光内衣内裤视频久久影院| 亚洲人被黑人高潮完整版| 久久综合色婷婷| 精品美女在线观看| 欧美日韩情趣电影| 97se亚洲国产综合自在线观| 成人激情电影免费在线观看| 国产在线精品一区二区三区不卡| 午夜影院久久久| 午夜激情综合网| 亚洲激情五月婷婷| 中文字幕一区二区三区在线播放| 2014亚洲片线观看视频免费| 91精品国产麻豆国产自产在线| 色欧美片视频在线观看在线视频| 91猫先生在线| 99久精品国产| 久久国产精品99久久人人澡| 国产在线播放一区三区四| 天天影视网天天综合色在线播放| 国产乱码精品一区二区三区av| 蜜桃av一区二区三区| 偷窥国产亚洲免费视频| 亚洲妇熟xx妇色黄| 午夜精品视频在线观看| 亚洲va天堂va国产va久| 午夜精品国产更新| 蜜桃视频在线观看一区| 日韩激情中文字幕| 国产在线不卡一区| 国产精品一区二区三区网站| 精彩视频一区二区三区| 粉嫩嫩av羞羞动漫久久久| 国产mv日韩mv欧美| 成人av手机在线观看| 色综合久久综合网| 在线观看亚洲a| 欧美精品一二三四| 久久久一区二区| 国产欧美一区二区三区在线看蜜臀 | 丁香激情综合国产| 91片黄在线观看| 欧美性生活一区| 一本久久综合亚洲鲁鲁五月天| 欧美日韩视频在线观看一区二区三区 | 欧美日韩亚洲综合一区二区三区| 一本大道av一区二区在线播放| 欧美日韩国产不卡| 欧美va亚洲va在线观看蝴蝶网| 久久综合久久综合亚洲| 日本一区二区三区久久久久久久久不 | 日韩女优av电影在线观看| 日韩欧美一级在线播放| 国产网红主播福利一区二区| 亚洲综合在线五月| 日本欧美加勒比视频| 国产精品123| 欧美视频在线观看一区二区| 精品国内二区三区| 国产精品另类一区| 亚洲国产精品综合小说图片区| 免费在线看成人av| thepron国产精品| 日韩一卡二卡三卡四卡| 国产精品欧美经典| 日本亚洲电影天堂| 一本到高清视频免费精品| 91精品国产91热久久久做人人| 国产亲近乱来精品视频| 视频一区二区中文字幕| 久久狠狠亚洲综合| 在线观看亚洲专区| 亚洲国产精品精华液ab| 亚洲成a人v欧美综合天堂下载 | 91精品视频网| 欧美国产日韩a欧美在线观看| 亚洲va在线va天堂| 一本大道久久a久久综合婷婷| 精品久久国产字幕高潮| 国产精品一区二区果冻传媒| 欧美区视频在线观看| 国产肉丝袜一区二区| 美女久久久精品| 色成人在线视频| 中文av一区特黄| 国产一区二区三区国产| 欧洲生活片亚洲生活在线观看| 久久伊人中文字幕| 韩国成人福利片在线播放| 在线日韩国产精品| 国产日产欧产精品推荐色| 久久国产精品72免费观看| 精品视频色一区| 亚洲欧洲日本在线| 成人激情综合网站| 国产亚洲视频系列| 亚洲三级理论片| 91丨porny丨户外露出| 精品国产乱码久久久久久影片| 亚洲欧美日本韩国| 91在线免费看| 中文字幕+乱码+中文字幕一区| 日韩美女视频19| 99久久综合国产精品| 精品乱人伦一区二区三区| 亚洲精品伦理在线| 成人av在线一区二区三区| 久久噜噜亚洲综合| 国产在线精品一区二区三区不卡| 欧美大白屁股肥臀xxxxxx| 日韩精品电影一区亚洲| 91精品国产欧美日韩| 天天综合日日夜夜精品| 欧美日韩日本视频| 人人爽香蕉精品| 91精品国产综合久久久蜜臀图片| 一区免费观看视频| 日本高清成人免费播放| 亚洲三级在线免费观看| 国产成a人亚洲| 中文字幕日韩一区| 91视频在线看| 亚洲成av人片观看| 91精品国产免费| 蜜乳av一区二区| 国产欧美日韩另类视频免费观看| 国产一区二区三区在线看麻豆| 欧美体内she精视频| 蜜桃视频一区二区三区| 日韩精品一区在线观看| 国产一区高清在线| 欧美videos大乳护士334| 男男视频亚洲欧美| 久久综合色8888| 国产一区二区三区黄视频| 国产精品视频免费| 色综合一区二区三区| 亚洲激情男女视频| 9191久久久久久久久久久| 美腿丝袜亚洲三区| 国产亚洲欧洲一区高清在线观看| 99精品视频一区二区| 亚洲一区二区三区在线播放| 99久免费精品视频在线观看| 亚洲国产综合在线| 精品国产123| 日本韩国一区二区| 午夜精品福利久久久| 精品久久久久久久久久久院品网| 大陆成人av片| 亚洲另类一区二区| 亚洲精品一区二区三区精华液 | 日韩小视频在线观看专区| 韩日精品视频一区| 久久综合网色—综合色88| 99re成人在线| 无码av免费一区二区三区试看| 欧美极品少妇xxxxⅹ高跟鞋 | 99精品国产热久久91蜜凸| 亚洲综合一区二区| 欧美一级日韩免费不卡| 国产一二三精品| 夜夜嗨av一区二区三区中文字幕| 91麻豆精品国产自产在线观看一区| 成人美女视频在线观看| 亚洲一区二区欧美日韩| 国产日韩欧美a| 欧美日精品一区视频| 久久国产三级精品| 午夜久久久久久久久| 久久一日本道色综合|