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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? editor.js

?? 本程序修改自花香盈路6.0版。所有版權(quán)歸原作者所有 本站修改后加入了些小偷程序
?? JS
?? 第 1 頁 / 共 4 頁
字號(hào):
//
// htmlArea v2.03 - Copyright (c) 2002 interactivetools.com, inc.
// This copyright notice MUST stay intact for use (see license.txt).
//
// A free WYSIWYG editor replacement for <textarea> fields.
// translated by xydw.com
// For full source code and docs, visit http://www.interactivetools.com/
//

// 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: "宋體"; font-size: 12px;';
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 = {
    "宋體":            "宋體",
    "黑體":            "黑體",
    "楷體_GB2312":     "楷體_GB2312",
    "隸書":            "隸書",
    "Comic Sans MS":   "Comic Sans MS",
    "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.xydw.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',            '下劃線',          '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',          '左對(duì)齊',       'editor_action(this.id)',  'ed_align_left.gif'],
    "justifycenter":  ['JustifyCenter',        '居中',     'editor_action(this.id)',  'ed_align_center.gif'],
    "justifyright":   ['JustifyRight',         '右對(duì)齊',      'editor_action(this.id)',  'ed_align_right.gif'],
    "orderedlist":    ['InsertOrderedList',    '列表',       'editor_action(this.id)',  'ed_list_num.gif'],
    "unorderedlist":  ['InsertUnorderedList',  '列表2',      'editor_action(this.id)',  'ed_list_bullet.gif'],
    "outdent":        ['Outdent',              '左縮進(jìn)',    'editor_action(this.id)',  'ed_indent_less.gif'],
    "indent":         ['Indent',               '右縮進(jìn)',    'editor_action(this.id)',  'ed_indent_more.gif'],
    "forecolor":      ['ForeColor',            '字體顏色',         'editor_action(this.id)',  'ed_color_fg.gif'],
    "backcolor":      ['BackColor',            '背景顏色',   'editor_action(this.id)',  'ed_color_bg.gif'],
    "horizontalrule": ['InsertHorizontalRule', '水平線',    'editor_action(this.id)',  'ed_hr.gif'],
    "createlink":     ['CreateLink',           '超連接',    'editor_action(this.id)',  'ed_link.gif'],
    "insertimage":    ['InsertImage',          '插入圖片',       'editor_action(this.id)',  'ed_image.gif'],
    "inserttable":    ['InsertTable',          '插入表格',       'editor_action(this.id)',  'insert_table.gif'],
    "htmlmode":       ['HtmlMode',             '編輯HTML',   'editor_setmode(\''+objname+'\')', 'ed_html.gif'],
    "popupeditor":    ['popupeditor',          '新窗口中編輯',     'editor_action(this.id)',  'fullscreen_maximize.gif'],
    "about":          ['about',                '版權(quán)說明',  '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) { config.width = obj.style.width; }      // use css style
    else if (obj.cols)        { config.width = (obj.cols * 8) + 22; }  // col width + toolbar
    else                      { config.width = '100%'; }               // default
  }
  if (!config.height || config.height == "auto") {
    if      (obj.style.height) { config.height = obj.style.height; }   // use css style
    else if (obj.rows)         { config.height = obj.rows * 17 }       // row height
    else                       { config.height = '200'; }              // default
  }

  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) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品三级av| 欧美色图12p| 欧美专区日韩专区| 91精品午夜视频| 国产无人区一区二区三区| 成人欧美一区二区三区黑人麻豆| 一卡二卡三卡日韩欧美| 捆绑调教一区二区三区| 成人福利视频在线看| 欧美亚洲国产一区在线观看网站| 日韩欧美一区二区久久婷婷| 国产精品高潮呻吟| 亚洲图片有声小说| 韩国精品免费视频| 色94色欧美sute亚洲13| 精品盗摄一区二区三区| 综合久久久久久久| 国产精品毛片高清在线完整版 | 亚洲欧洲综合另类在线| 视频一区二区三区入口| 粉嫩aⅴ一区二区三区四区五区| 欧美日韩中文一区| 中文字幕免费在线观看视频一区| 亚洲国产婷婷综合在线精品| 国产揄拍国内精品对白| 欧美视频三区在线播放| 国产亚洲欧美在线| 天天色 色综合| 91视频在线观看免费| 日韩美女在线视频| 亚洲精品国产精华液| 国产一区二区成人久久免费影院| 欧美日韩你懂的| 国产精品蜜臀在线观看| 久久se这里有精品| 欧美三级一区二区| 中文字幕在线一区免费| 狠狠色丁香久久婷婷综合_中 | 亚洲一区二区三区中文字幕| 国产美女一区二区三区| 正在播放亚洲一区| 亚洲另类色综合网站| 国产91精品一区二区麻豆亚洲| 欧美一级xxx| 亚洲无人区一区| 91日韩一区二区三区| 日本一区二区三区免费乱视频| 奇米精品一区二区三区四区| 欧美三级中文字| 亚洲精品免费一二三区| 成人在线综合网| 久久亚洲影视婷婷| 九九精品一区二区| 欧美一区二区成人6969| 亚洲bt欧美bt精品| 欧美中文字幕一二三区视频| 日韩美女啊v在线免费观看| 成人免费毛片片v| 国产日韩v精品一区二区| 国产在线不卡一区| 欧美精品一区二区三区四区 | 久久夜色精品国产欧美乱极品| 青青草国产精品97视觉盛宴 | 日韩1区2区日韩1区2区| 欧美在线观看视频在线| 国产精品久久三区| 亚洲国产一区二区在线播放| 91在线观看美女| 亚洲天天做日日做天天谢日日欢 | 欧美日韩激情在线| 一区二区三区日韩精品视频| 在线观看免费一区| 一区二区三区四区在线免费观看 | 午夜久久久影院| 欧美日韩精品二区第二页| 亚洲国产一区二区在线播放| 欧美日韩美少妇| 亚洲成人tv网| 欧美一二区视频| 另类专区欧美蜜桃臀第一页| 久久伊人蜜桃av一区二区| 国产乱码字幕精品高清av| 国产人成亚洲第一网站在线播放 | 中文字幕av一区二区三区高| 成人动漫在线一区| 亚洲免费av网站| 欧美色综合影院| 国产欧美一区二区精品秋霞影院| 国产精品久久精品日日| 亚洲一区国产视频| 欧洲av在线精品| 亚洲国产一区在线观看| 91精品免费在线| 精品一区在线看| 国产午夜精品一区二区三区嫩草| 成人av午夜影院| 夜夜爽夜夜爽精品视频| 5566中文字幕一区二区电影| 国产综合久久久久久久久久久久| 国产精品免费aⅴ片在线观看| 91啦中文在线观看| 亚洲成人在线免费| 精品国产伦一区二区三区免费| 国产成人av一区二区三区在线| 国产欧美一二三区| 色婷婷综合久久久久中文一区二区| 亚洲国产va精品久久久不卡综合| 欧美一区二区在线视频| 国产成a人无v码亚洲福利| 亚洲欧美日韩一区二区| 欧美日本一道本| 国产成人在线免费观看| 亚洲影院理伦片| 精品少妇一区二区三区视频免付费| 粉嫩aⅴ一区二区三区四区五区| 亚洲一区二区在线观看视频| 精品少妇一区二区三区在线播放| 99久久精品免费精品国产| 丝袜亚洲另类欧美| 国产欧美日韩一区二区三区在线观看| 在线观看成人小视频| 国产一区91精品张津瑜| 亚洲一区二区三区视频在线 | 亚洲一线二线三线久久久| 日韩午夜在线观看视频| 成人app网站| 热久久久久久久| 欧美日本一道本在线视频| 中文字幕不卡在线| 91精品国产综合久久香蕉的特点| 国产精品18久久久久久久久 | 91社区在线播放| 久久精品国产免费看久久精品| 成人免费在线观看入口| 日韩精品专区在线影院观看| 色婷婷久久久亚洲一区二区三区 | 国产欧美一区二区三区鸳鸯浴 | 亚洲一区在线电影| 国产日韩欧美精品综合| 777色狠狠一区二区三区| 91免费在线播放| 国产精品综合久久| 日韩av不卡一区二区| 亚洲欧美激情插| 久久久久久久国产精品影院| 91精品国产综合久久福利| 91在线免费视频观看| 国产一区二区电影| 免费精品视频在线| 亚洲国产综合色| 亚洲欧洲av一区二区三区久久| 26uuuu精品一区二区| 欧美日韩精品福利| 日本韩国欧美三级| 成人ar影院免费观看视频| 国产综合色精品一区二区三区| 人人狠狠综合久久亚洲| 亚洲第一在线综合网站| 亚洲天堂福利av| 中文一区在线播放| 久久这里都是精品| 91成人免费网站| 蜜桃av一区二区三区| 亚洲国产精品欧美一二99| 亚洲日本欧美天堂| 国产精品久久久爽爽爽麻豆色哟哟| 日韩免费电影一区| 欧美一区二区在线看| 欧美日韩国产大片| 欧美日韩免费一区二区三区| 日本韩国精品在线| 91蜜桃在线观看| a在线欧美一区| 成人18视频在线播放| 国产精品99久久久久久似苏梦涵| 激情国产一区二区| 狠狠色丁香久久婷婷综| 久久91精品久久久久久秒播| 久久成人av少妇免费| 韩国v欧美v亚洲v日本v| 黑人精品欧美一区二区蜜桃| 久久成人免费网| 精品亚洲国产成人av制服丝袜 | 日韩欧美黄色影院| 91精品综合久久久久久| 日韩一区二区在线播放| 3751色影院一区二区三区| 欧美一区二区三区日韩| 欧美一二三区精品| 欧美va亚洲va| 久久精品人人做人人综合| 国产亚洲1区2区3区| 久久久蜜桃精品| 国产欧美视频一区二区三区| 中文字幕在线不卡| 亚洲精品视频在线观看网站| 亚洲成av人在线观看| 日韩成人午夜精品| 麻豆成人久久精品二区三区红| 国产裸体歌舞团一区二区|