亚洲欧美第一页_禁久久精品乱码_粉嫩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.
// 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: "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',                 'Bold',               'editor_action(this.id)',  'ed_format_bold.gif'],
    "italic":         ['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',                'About this editor',  '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) {

  // split up button name into "editorID" and "cmdID"
  var BtnParts = Array();
  BtnParts = button_id.split("_");
  var objname    = button_id.replace(/^_(.*)_[^_]*$/, '$1');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产亚洲a| 亚洲国产成人av网| 欧美日韩精品欧美日韩精品一| 国产在线国偷精品产拍免费yy| 亚洲国产成人av| 91精品综合久久久久久| 91丝袜美腿高跟国产极品老师 | 91精品国产综合久久小美女| 成人禁用看黄a在线| 狠狠色综合色综合网络| 亚洲自拍偷拍九九九| 亚洲天堂中文字幕| 中文字幕一区二区三区四区 | 国产欧美综合在线| 日韩一区二区三区视频| 色哟哟国产精品| 色综合 综合色| 日本精品视频一区二区三区| 大胆亚洲人体视频| 粉嫩嫩av羞羞动漫久久久| 国产成人三级在线观看| 国产在线视视频有精品| 亚洲成年人影院| 国产农村妇女毛片精品久久麻豆| 久久久精品国产免大香伊| 久久久久久亚洲综合影院红桃| 精品久久久久香蕉网| 精品福利在线导航| 久久亚洲影视婷婷| 亚洲国产精品成人综合 | 亚洲成年人网站在线观看| 亚洲午夜精品在线| 美女国产一区二区三区| 国内精品自线一区二区三区视频| 激情伊人五月天久久综合| 久久国产精品99久久人人澡| 男人的天堂久久精品| 激情六月婷婷久久| www.日本不卡| 日本韩国欧美一区二区三区| 欧美一区二区视频观看视频| 日本一区二区三区免费乱视频| 欧美激情一区二区三区不卡 | 亚洲永久精品国产| 日韩福利电影在线| 免费在线视频一区| 成人免费毛片app| 久久综合中文字幕| 亚洲电影中文字幕在线观看| 色乱码一区二区三区88| 国产视频不卡一区| 国产成人激情av| 国产欧美久久久精品影院| 另类成人小视频在线| 欧美日韩国产一级| 久久国产精品99久久久久久老狼| 欧美日韩视频第一区| 夜夜嗨av一区二区三区中文字幕| 一本到高清视频免费精品| 婷婷综合五月天| 日韩一区二区免费高清| 国产盗摄视频一区二区三区| 中文文精品字幕一区二区| 国产91精品一区二区| 欧美精品电影在线播放| 欧美激情一区二区| 国产一区二三区| 国产精品乱人伦中文| 欧美一区二区三区日韩视频| 亚洲成人免费视频| 亚洲视频1区2区| 国产精品资源网站| 欧美一区二区视频网站| 欧美国产丝袜视频| 麻豆91在线看| 91麻豆精品久久久久蜜臀| 亚洲美女视频在线观看| 福利视频网站一区二区三区| 精品视频999| 日韩久久一区二区| 岛国av在线一区| 欧美mv和日韩mv的网站| 热久久一区二区| 91麻豆蜜桃一区二区三区| 国产精品色噜噜| 国产91对白在线观看九色| 欧美哺乳videos| 日韩电影在线观看电影| 国产91高潮流白浆在线麻豆| 久久精品在线免费观看| 国产麻豆欧美日韩一区| 久久九九国产精品| 成人污污视频在线观看| 欧美国产乱子伦 | 色视频欧美一区二区三区| 国产午夜精品一区二区| 婷婷亚洲久悠悠色悠在线播放 | 不卡一区二区三区四区| 欧美一区二区三区视频免费| 另类专区欧美蜜桃臀第一页| 欧美一级久久久| 久久电影网电视剧免费观看| www国产成人| 成人黄色大片在线观看| 中文字幕精品三区| 成人av网站免费| 一二三区精品福利视频| 3atv在线一区二区三区| 全部av―极品视觉盛宴亚洲| 日韩一级片网址| 91精品视频网| 毛片一区二区三区| 自拍偷在线精品自拍偷无码专区| 欧美日韩国产经典色站一区二区三区| 久久精品理论片| 一区二区三区波多野结衣在线观看| 制服丝袜成人动漫| av在线一区二区三区| 麻豆成人综合网| 亚洲影院理伦片| 国产精品人妖ts系列视频| 在线播放日韩导航| 成人在线视频首页| 久久9热精品视频| 亚洲曰韩产成在线| 久久久久久日产精品| 91精品欧美福利在线观看| 91影视在线播放| 国产精品一卡二| 欧美96一区二区免费视频| 一区二区三区在线观看动漫| 久久影视一区二区| 欧美电影在线免费观看| 97aⅴ精品视频一二三区| 国产福利电影一区二区三区| 视频在线观看91| 亚洲综合自拍偷拍| 国产精品久久久久国产精品日日| 日韩精品一区二| 日韩一级欧美一级| 制服丝袜中文字幕一区| 欧美性一区二区| 欧美在线观看你懂的| 99久久精品国产观看| 国产超碰在线一区| 国产91高潮流白浆在线麻豆| 国产**成人网毛片九色 | 国产一区二区不卡老阿姨| 日本视频一区二区三区| 亚洲www啪成人一区二区麻豆| 亚洲蜜臀av乱码久久精品蜜桃| 中文字幕一区在线观看视频| 国产精品久久久一本精品 | 日韩国产成人精品| 午夜不卡在线视频| 日韩专区一卡二卡| 人人狠狠综合久久亚洲| 日韩电影免费一区| 蜜桃精品在线观看| 国产精品资源站在线| 成人精品在线视频观看| 成人美女在线观看| av男人天堂一区| 91黄色小视频| 91精品欧美久久久久久动漫| 欧美成人激情免费网| 精品欧美黑人一区二区三区| 久久久亚洲精品石原莉奈| 中文字幕免费在线观看视频一区| 国产精品电影院| 亚洲一区二三区| 免费日韩伦理电影| 国产一区二区三区四区五区入口| 国产成人自拍在线| 91视频com| 日韩视频一区在线观看| 中文字幕乱码亚洲精品一区| 1024成人网| 麻豆久久一区二区| www.欧美.com| 日韩欧美国产三级电影视频| 国产精品系列在线| 午夜伦理一区二区| 国产91精品一区二区麻豆亚洲| 在线亚洲免费视频| 欧美变态口味重另类| 一区二区三区鲁丝不卡| 蜜桃视频一区二区三区| 91麻豆福利精品推荐| 欧美一卡二卡在线观看| 成人欧美一区二区三区视频网页| 亚洲3atv精品一区二区三区| 国产成人无遮挡在线视频| 欧美日韩高清一区二区不卡| 国产亚洲欧美一级| 午夜欧美2019年伦理| 成人av资源在线| 精品欧美黑人一区二区三区| 亚洲午夜影视影院在线观看| 国产剧情在线观看一区二区|