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

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

?? editor.js

?? 本程序采用花香內核
?? JS
?? 第 1 頁 / 共 4 頁
字號:
//
// 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',          '左對齊',       'editor_action(this.id)',  'ed_align_left.gif'],
    "justifycenter":  ['JustifyCenter',        '居中',     'editor_action(this.id)',  'ed_align_center.gif'],
    "justifyright":   ['JustifyRight',         '右對齊',      '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',              '左縮進',    'editor_action(this.id)',  'ed_indent_less.gif'],
    "indent":         ['Indent',               '右縮進',    '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',                '版權說明',  '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) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费的成人av| 欧美日韩在线播放一区| 91麻豆精品在线观看| 欧美日韩极品在线观看一区| 国产日韩欧美精品一区| 亚洲国产欧美在线人成| 丁香五精品蜜臀久久久久99网站| 欧美日韩免费高清一区色橹橹| 国产日本欧美一区二区| 精品中文字幕一区二区| 欧美日韩一区二区电影| 中文字幕在线不卡| 国产suv精品一区二区6| 日韩欧美亚洲国产精品字幕久久久| 亚洲欧美日韩综合aⅴ视频| 国产精品一区二区黑丝| 日韩一区二区在线观看视频| 夜夜亚洲天天久久| 在线免费观看日本欧美| 国产精品成人免费精品自在线观看| 久久69国产一区二区蜜臀| 777亚洲妇女| 午夜精品久久久久久久99水蜜桃| 91蜜桃视频在线| 亚洲精品日韩一| 91丨porny丨中文| 亚洲欧美欧美一区二区三区| 成人午夜伦理影院| 中文字幕av一区二区三区免费看| 国产一区二区美女诱惑| 国产午夜精品一区二区三区四区| 激情av综合网| 国产亚洲短视频| 成人小视频在线观看| 中文字幕乱码日本亚洲一区二区| 国产盗摄精品一区二区三区在线 | 国内精品伊人久久久久av影院| 欧美日本高清视频在线观看| 亚洲国产裸拍裸体视频在线观看乱了| 色视频一区二区| 亚洲v中文字幕| 91精品国产综合久久福利| 日韩主播视频在线| 欧美一级片在线看| 精品在线亚洲视频| 中文字幕乱码日本亚洲一区二区| 99精品国产热久久91蜜凸| 亚洲精品亚洲人成人网 | 一级中文字幕一区二区| 在线观看网站黄不卡| 日韩经典一区二区| 精品国产麻豆免费人成网站| 国产精品一区二区久久精品爱涩| 国产精品久久久久久久裸模 | www.亚洲色图| 亚洲综合免费观看高清完整版在线| 欧美日韩国产首页| 国产乱码精品一区二区三区忘忧草 | 久久久久久久久久久99999| 懂色av一区二区三区蜜臀 | 欧美三级三级三级| 精品一区二区三区蜜桃| 国产精品动漫网站| 欧美一区二区视频观看视频| 粉嫩av一区二区三区粉嫩| 亚洲精品第一国产综合野| 91精品婷婷国产综合久久性色| 国产呦精品一区二区三区网站| 亚洲人妖av一区二区| 337p亚洲精品色噜噜噜| 东方aⅴ免费观看久久av| 爽爽淫人综合网网站| 欧美韩日一区二区三区四区| 欧美日韩和欧美的一区二区| 国产91精品一区二区麻豆亚洲| 亚洲成人一区二区| 国产精品久久久99| 精品日韩99亚洲| 欧美午夜一区二区三区免费大片| 精品一区二区三区日韩| 一区二区三区四区中文字幕| 久久久久久久久久久久电影| 欧美日本精品一区二区三区| av一本久道久久综合久久鬼色| 免费黄网站欧美| 亚洲第一成年网| 亚洲视频免费在线观看| 精品国产乱码久久久久久图片 | 色视频欧美一区二区三区| 国产一区二区电影| 日韩高清不卡在线| 亚洲精品日韩一| 亚洲欧洲成人自拍| 2022国产精品视频| 91麻豆精品国产91久久久使用方法| 成人黄色免费短视频| 久久99精品久久久久婷婷| 亚洲午夜国产一区99re久久| 国产精品久久久久久户外露出| 精品福利一区二区三区免费视频| 欧美男同性恋视频网站| 欧美在线高清视频| 在线国产亚洲欧美| 一本色道综合亚洲| www.爱久久.com| av动漫一区二区| 99久久综合国产精品| 岛国av在线一区| 国产盗摄精品一区二区三区在线| 精品一区二区三区在线播放视频| 蜜臀久久99精品久久久久宅男 | 日本91福利区| 男人操女人的视频在线观看欧美| 亚洲第一成年网| 午夜伊人狠狠久久| 同产精品九九九| 视频一区在线视频| 免费的国产精品| 韩国一区二区视频| 高清不卡一区二区在线| 成人免费高清视频| 91小视频在线免费看| 91久久精品国产91性色tv| 欧美丝袜第三区| 91精品国产乱码久久蜜臀| 日韩欧美一区二区在线视频| 欧美不卡在线视频| 欧美激情在线看| 亚洲乱码国产乱码精品精的特点 | 精品伊人久久久久7777人| 国产毛片一区二区| 91视频精品在这里| 欧美色网站导航| 日韩欧美三级在线| 日本一区二区视频在线| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲一区二区三区不卡国产欧美| 日韩影院在线观看| 国产露脸91国语对白| 91香蕉国产在线观看软件| 欧美剧情片在线观看| 2020国产精品自拍| 亚洲人成人一区二区在线观看| 亚洲成av人片一区二区梦乃 | 国产女人水真多18毛片18精品视频 | 韩国一区二区视频| 99精品视频免费在线观看| 欧美午夜片在线看| 久久久午夜精品理论片中文字幕| 亚洲欧美在线视频| 日韩和欧美一区二区三区| 国产精品影视网| 欧美日韩中文一区| 久久精品日产第一区二区三区高清版 | 久久精品水蜜桃av综合天堂| 亚洲影视在线播放| 国产在线播放一区三区四| 在线亚洲+欧美+日本专区| 久久人人超碰精品| 亚洲成人一二三| 99在线精品一区二区三区| 欧美一级在线观看| 亚洲色图20p| 国产成人免费9x9x人网站视频| 91行情网站电视在线观看高清版| 久久久久久电影| 丝袜脚交一区二区| 色哟哟一区二区| 久久久99久久精品欧美| 日本成人超碰在线观看| 一本久道久久综合中文字幕| 2023国产精品视频| 免费看黄色91| 欧美日韩国产另类不卡| **性色生活片久久毛片| 国产综合久久久久久鬼色| 欧美日韩一区久久| 一区二区三区日韩精品视频| 成人精品免费视频| 久久久亚洲精华液精华液精华液| 日韩在线播放一区二区| 欧美视频在线一区二区三区| 综合自拍亚洲综合图不卡区| 国产很黄免费观看久久| 欧美一区二区三区不卡| 婷婷综合久久一区二区三区| 欧洲人成人精品| 亚洲精品亚洲人成人网| 一本一道久久a久久精品| **性色生活片久久毛片| k8久久久一区二区三区 | 秋霞午夜av一区二区三区| 欧美视频三区在线播放| 亚洲精品国产a久久久久久| 91亚洲国产成人精品一区二三| 亚洲色欲色欲www在线观看| 成人开心网精品视频| 国产精品免费网站在线观看| 成人性色生活片| 亚洲欧美日韩国产中文在线|