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

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

?? editor.js

?? 功能相當(dāng)強(qiáng)大
?? 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');

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人在线视频一区| 国产一区二区三区四区五区美女| 亚洲少妇30p| 天堂久久久久va久久久久| 久久99国产精品成人| 欧美日韩一级黄| 亚洲欧美日韩在线播放| 秋霞av亚洲一区二区三| 在线播放日韩导航| 国产一区二区精品久久91| 国产精品1区2区| 99久久久久久| 色激情天天射综合网| 欧美日韩极品在线观看一区| 日韩亚洲国产中文字幕欧美| 日日夜夜免费精品| 不卡电影一区二区三区| 在线免费观看不卡av| 精品人在线二区三区| 一区二区三区日韩欧美精品| 欧亚洲嫩模精品一区三区| 国产精品伦一区二区三级视频| 亚洲天堂网中文字| 色婷婷av一区二区三区软件| 一区二区三区日本| 欧美一区二区视频网站| 国产在线麻豆精品观看| 亚洲欧美一区二区三区国产精品 | 国产亚洲一区二区在线观看| 国产乱码一区二区三区| 亚洲女女做受ⅹxx高潮| 日韩欧美中文字幕制服| 99国产麻豆精品| 久久精工是国产品牌吗| 亚洲丝袜精品丝袜在线| 精品免费视频.| 欧美系列日韩一区| 97精品国产97久久久久久久久久久久 | 日韩精品一区二区三区四区 | 一本大道av伊人久久综合| 天天色综合天天| 亚洲情趣在线观看| 国产精品国产三级国产专播品爱网 | 免费成人在线观看| 亚洲一区二区在线免费观看视频 | 精品一区二区av| 午夜精品福利一区二区三区av | 亚洲精品在线观看视频| 在线观看视频91| 91美女在线视频| 99国产欧美另类久久久精品| 国产大陆a不卡| 粉嫩aⅴ一区二区三区四区五区| 日本三级亚洲精品| 一区二区三区在线视频免费观看| 国产精品高潮久久久久无| 久久综合久久综合久久| 久久亚洲一级片| 欧美激情自拍偷拍| 亚洲三级在线免费观看| 亚洲欧美一区二区三区国产精品 | 日韩码欧中文字| 亚洲午夜在线观看视频在线| 亚洲18色成人| 久草这里只有精品视频| 岛国精品一区二区| 欧美撒尿777hd撒尿| 91精品国产综合久久精品性色| 欧美一区二区久久| 国产精品午夜久久| 亚洲h精品动漫在线观看| 激情六月婷婷久久| 91丝袜美腿高跟国产极品老师 | 国产久卡久卡久卡久卡视频精品| 国产福利不卡视频| 欧美日产在线观看| 国产视频不卡一区| 亚洲一级在线观看| 国产大陆亚洲精品国产| 日本伦理一区二区| 久久久.com| 日韩av电影免费观看高清完整版在线观看| 久久av资源站| 欧美午夜电影在线播放| 中文字幕乱码一区二区免费| 天天色综合成人网| 91美女在线视频| 欧美国产精品v| 久久99久久99| 欧美色大人视频| 最新热久久免费视频| 国产盗摄精品一区二区三区在线 | 精品成a人在线观看| 日韩成人午夜精品| 欧美无乱码久久久免费午夜一区| 国产精品久久久久久久岛一牛影视 | 亚洲人成在线观看一区二区| 成人午夜在线播放| 精品免费日韩av| 国内成人自拍视频| 久久中文字幕电影| 国产激情偷乱视频一区二区三区| 久久一留热品黄| 丝袜国产日韩另类美女| 色婷婷一区二区三区四区| 伊人开心综合网| 欧美性xxxxxx少妇| 亚洲1区2区3区视频| 欧美xingq一区二区| 国产真实精品久久二三区| 久久免费美女视频| k8久久久一区二区三区| 亚洲精品菠萝久久久久久久| 色妞www精品视频| 首页欧美精品中文字幕| 精品福利一二区| 99久久综合色| 免费在线观看不卡| 国产精品―色哟哟| 欧美蜜桃一区二区三区| 精品综合久久久久久8888| 中文字幕欧美日韩一区| 欧美亚洲日本国产| 色综合天天综合狠狠| 天堂va蜜桃一区二区三区 | 国产亚洲一区二区三区四区| 亚洲私人黄色宅男| 欧洲国产伦久久久久久久| 一区在线观看视频| 在线免费观看视频一区| 韩国成人精品a∨在线观看| 中文字幕一区二| 精品日韩成人av| 欧美一级理论片| 97久久超碰国产精品电影| 免费在线观看不卡| 天使萌一区二区三区免费观看| 久久婷婷国产综合精品青草 | 国产精品第四页| 26uuuu精品一区二区| 欧美日韩精品电影| 波波电影院一区二区三区| 奇米色一区二区| 亚洲高清在线精品| 亚洲卡通动漫在线| 综合久久综合久久| 欧美国产日韩在线观看| 久久精品免视看| 国产日韩av一区二区| 久久综合久久综合九色| 久久品道一品道久久精品| 久久先锋影音av| 日本一区二区综合亚洲| 国产三级欧美三级| 日韩一区欧美一区| 一区二区三区 在线观看视频| 亚洲视频在线一区| 一区二区三区不卡视频在线观看| 日韩毛片高清在线播放| 一区二区成人在线| 亚洲高清视频在线| 久久福利资源站| www.色综合.com| 欧美日韩黄色一区二区| 日韩精品一区二区三区视频| 久久亚洲一区二区三区四区| 国产欧美在线观看一区| 一区二区在线观看视频在线观看| 亚洲一区精品在线| 国产精品99久久久久久似苏梦涵| k8久久久一区二区三区| 欧美伊人久久大香线蕉综合69| 欧美浪妇xxxx高跟鞋交| 久久精品欧美一区二区三区麻豆 | 欧美日韩成人综合在线一区二区| 精品三级在线看| 一区二区三区日韩| 国产精品中文字幕一区二区三区| 色哟哟精品一区| 欧美极品少妇xxxxⅹ高跟鞋 | 色综合久久六月婷婷中文字幕| 91麻豆精品视频| 本田岬高潮一区二区三区| 91美女福利视频| 欧美日韩亚洲丝袜制服| 国产精品另类一区| 蜜臀久久99精品久久久画质超高清| **欧美大码日韩| 免费欧美高清视频| 欧美丝袜丝交足nylons图片| 精品国产一区二区精华| 日本最新不卡在线| 在线精品视频免费观看| 国产精品国产自产拍在线| 国产一区二区在线免费观看| 8x8x8国产精品| 午夜精品久久久久久久99樱桃 | 亚洲国产精品传媒在线观看| 青草国产精品久久久久久| 欧美色大人视频|