' + '
久久天天拍天天爱天天躁,色偷偷8888欧美精品久久,人人看人人添人人谢,夜夜狠狠狠狠,99视频在线永久免费观看,国产成人综合网,国产精品一区二区资源
' + '
' + '
' + ' '; f.document.open("text/html","replace"); f.document.write(html); f.document.close(); if(gIsIE){ f.document.body.contentEditable = true; }else{ f.document.designMode="on"; f.document.execCommand("useCSS",false, true); } //gohappy 自定義 語句 f.document.body.innerHTML = parent.document.sendgohapy.htext.value; //自定義 語句結(jié)束 }catch(exp){} //fixEditor = function(){ // try{ // parent.MM["compose"].fixEditor( window ); // // parent.hideEditorMenu = fHideMenu; // parent.CC.hideMsg(); // // parent.EV.observe(parent.document, "click", fHideMenu); // }catch(exp){ // window.setTimeout("fixEditor()", 1000); // } //}; //fixEditor(); gLoaded = true; // fSetEditable(); //try{ // fSetFrmClick(); //} catch(exp){} } /** * 設(shè)置文字顏色 */ function fSetColor(){ var dvForeColor =$("dvForeColor"); if(dvForeColor.getElementsByTagName("TABLE").length == 1){ dvForeColor.innerHTML = drawCube() + dvForeColor.innerHTML; } } /** * 設(shè)置mousemove事件 */ document.onmousemove = function(e){ if(gIsIE) var el = event.srcElement; else var el = e.target; var tdView = $("tdView"); var tdColorCode = $("tdColorCode"); if(el.tagName == "IMG"){ try{ if(fInObj(el, "dvForeColor")){ tdView.bgColor = el.parentNode.bgColor; tdColorCode.innerHTML = el.parentNode.bgColor } }catch(e){} } } /** * 判斷el對象是否在另一個節(jié)點(diǎn)里 */ function fInObj(el, id){ if(el){ if(el.id == id){ return true; }else{ if(el.parentNode){ return fInObj(el.parentNode, id); }else{ return false; } } } } /** * 顯示對象 */ function fDisplayObj(id){ var o = $(id); if(o) o.style.display = ""; } /** * 設(shè)置onclick事件 */ document.onclick = function(e){ if(gIsIE) var el = event.srcElement; else var el = e.target; var dvForeColor =$("dvForeColor"); var dvPortrait =$("dvPortrait"); if(el.tagName == "IMG"){ try{ if(fInObj(el, "dvForeColor")){ format(gSetColorType, el.parentNode.bgColor); dvForeColor.style.display = "none"; return; } }catch(e){} try{ if(fInObj(el, "dvPortrait")){ format("InsertImage", el.src); dvPortrait.style.display = "none"; return; } }catch(e){} } fHideMenu(); var hideId = ""; if(el.id == "aGetSysSignList"){ hideId = "dvSignList"; parent.$(hideId).style.display = ""; }else if(el.id == "imgStationery"){ try{ parent.LetterPaper.control(window, "show"); }catch(exp){} }else if(arrMatch[el.id]){ hideId = arrMatch[el.id]; fDisplayObj(hideId); } } var arrMatch = { imgFontface:"fontface", imgFontsize:"fontsize", imgFontColor:"dvForeColor", imgBackColor:"dvForeColor", imgFace:"dvPortrait", imgAlign:"divAlign", imgList:"divList", imgSign:"dvSign", aGetSysSignList:"dvSignList", imgInOut:"divInOut" } /** * 執(zhí)行格式化顯示 */ function format(type, para){ var f = window.frames["HtmlEditor"]; var sAlert = ""; if(!gIsIE){ switch(type){ case "Cut": sAlert = "您的瀏覽器安全設(shè)置不允許編輯器自動執(zhí)行剪切操作,請使用鍵盤快捷鍵(Ctrl+X)來完成"; break; case "Copy": sAlert = "您的瀏覽器安全設(shè)置不允許編輯器自動執(zhí)行拷貝操作,請使用鍵盤快捷鍵(Ctrl+C)來完成"; break; case "Paste": sAlert = "您的瀏覽器安全設(shè)置不允許編輯器自動執(zhí)行粘貼操作,請使用鍵盤快捷鍵(Ctrl+V)來完成"; break; } } if(sAlert != ""){ alert(sAlert); return; } f.focus(); if(!para){ if(gIsIE){ f.document.execCommand(type); }else{ f.document.execCommand(type,false,false); } }else{ f.document.execCommand(type,false,para); } f.focus(); } /** * 轉(zhuǎn)換編輯模式 */ function setMode(bStatus){ var sourceEditor = $("sourceEditor"); var HtmlEditor = $("HtmlEditor"); var divEditor = $("divEditor"); var f = window.frames["HtmlEditor"]; var body = f.document.getElementsByTagName("BODY")[0]; if(bStatus){ sourceEditor.style.display = ""; sourceEditor.style.height=(document.body.clientHeight-60)+'px'; divEditor.style.display = "none"; sourceEditor.value = body.innerHTML; }else{ sourceEditor.style.display = "none"; divEditor.style.display = ""; body.innerHTML = sourceEditor.value; } } /** * 設(shè)置字體顏色 */ function foreColor(e) { fDisplayColorBoard(e); gSetColorType = "foreColor"; } /** * 設(shè)置背景色 */ function backColor(e){ var sColor = fDisplayColorBoard(e); if(gIsIE) gSetColorType = "backcolor"; else gSetColorType = "backcolor"; } /** * 顯示顏色拾取器 */ function fDisplayColorBoard(e){ if(gIsIE){ var e = window.event; } if(gIEVer<=5.01 && gIsIE){ var arr = showModalDialog("HtmlEditor/ColorSelect.htm", "", "font-family:Verdana; font-size:12; status:no; dialogWidth:21em; dialogHeight:21em"); if (arr != null) return arr; return; } var dvForeColor =$("dvForeColor"); // fSetColor(); var iX = e.clientX; var iY = e.clientY; dvForeColor.style.display = ""; dvForeColor.style.left = (iX-30) + "px"; dvForeColor.style.top = gToolbarStatus?59 + "px":33 + "px"; // EV.stopEvent(); return true; } window.onerror = function(){return true;} /** * 創(chuàng)建鏈接 */ function createLink() { var sURL=window.prompt("請輸入鏈接 (如:http://www.163.com/):", "http://"); if ((sURL!=null) && (sURL!="http://")){ format("CreateLink", sURL); } } /** * 創(chuàng)建圖片 */ function createImg() { var sPhoto=prompt("請輸入圖片位置:", "http://"); if ((sPhoto!=null) && (sPhoto!="http://")){ format("InsertImage", sPhoto); } } /** * 添加表情 */ function addPortrait(e){ if(gIEVer<=5.01 && gIsIE || 1==1){ // var imgurl = showModalDialog("portraitSelect.htm","", "font-family:Verdana; font-size:12; status:no; unadorned:yes; scroll:no; resizable:yes;dialogWidth:358px; dialogHeight:232px"); // if (imgurl != null) format("InsertImage", imgurl); var dvPortrait =$("dvPortrait"); if(dvPortrait){ dvPortrait.parentNode.removeChild(dvPortrait); } var div = document.createElement("DIV"); div.style.position = "absolute"; div.style.zIndex = "9"; div.id = "dvPortrait"; var iX = e.clientX; div.style.top = gToolbarStatus?59 + "px":33 + "px"; div.style.left = (iX-180) + "px"; div.innerHTML = '
'; document.body.appendChild(div); var dvPortrait = $("dvPortrait"); dvPortrait.style.display = ""; // EV.stopEvent(); return; } var dvPortrait =$("dvPortrait"); var tbPortrait = $("tbPortrait"); var iX = e.clientX; var iY = e.clientY; dvPortrait.style.display = ""; if(window.screen.width == 1024){ dvPortrait.style.left = (iX-300) + "px"; }else{ if(gIsIE) dvPortrait.style.left = (iX-300) + "px"; else dvPortrait.style.left = (iX-300) + "px"; } dvPortrait.style.top = gToolbarStatus?59 + "px":33 + "px"; dvPortrait.innerHTML = '
'+ drawPortrats() +'
'; } /** * 刪除字符串兩邊空格 */ String.prototype.trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } /** * 鼠標(biāo)移上圖標(biāo) */ function fSetBorderMouseOver(obj) { obj.style.borderRight="1px solid #aaa"; obj.style.borderBottom="1px solid #aaa"; obj.style.borderTop="1px solid #fff"; obj.style.borderLeft="1px solid #fff"; } /** * 鼠標(biāo)移出圖標(biāo) */ function fSetBorderMouseOut(obj) { obj.style.border="none"; } /** * 鼠標(biāo)按下圖標(biāo) */ function fSetBorderMouseDown(obj) { obj.style.borderRight="1px #F3F8FC solid"; obj.style.borderBottom="1px #F3F8FC solid"; obj.style.borderTop="1px #cccccc solid"; obj.style.borderLeft="1px #cccccc solid"; } /** * 顯示下拉菜單 */ function fDisplayElement(element,displayValue) { if(gIEVer<=5.01 && gIsIE){ if(element == "fontface"){ var sReturnValue = showModalDialog("HtmlEditor/FontFaceSelect.htm","", "font-family:Verdana; font-size:12; status:no; unadorned:yes; scroll:no; resizable:yes;dialogWidth:112px; dialogHeight:271px");; format("fontname",sReturnValue); }else if(element == "fontsize"){ var sReturnValue = showModalDialog("HtmlEditor/FontSizeSelect.htm","", "font-family:Verdana; font-size:12; status:no; unadorned:yes; scroll:no; resizable:yes;dialogWidth:130px; dialogHeight:250px");; format("fontsize",sReturnValue); }else if(element == "divAlign"){ var sReturnValue = showModalDialog("HtmlEditor/AlignSelect.htm","", "font-family:Verdana; font-size:12; status:no; unadorned:yes; scroll:no; resizable:yes;dialogWidth:40px; dialogHeight:45px");; format(sReturnValue); }else if(element == "divList"){ var sReturnValue = showModalDialog("/a/f/js3/ListSelect.htm","", "font-family:Verdana; font-size:12; status:no; unadorned:yes; scroll:no; resizable:yes;dialogWidth:60px; dialogHeight:45px");; format(sReturnValue); }else if(element == "divInOut"){ var sReturnValue = showModalDialog("/a/f/js3/InOutdent.htm","", "font-family:Verdana; font-size:12; status:no; unadorned:yes; scroll:no; resizable:yes;dialogWidth:60px; dialogHeight:45px");; format(sReturnValue); } return; } fHideMenu(); if(element == "sign"){ var dvSign = $("dvSign"); if(dvSign){ dvSign.style.display = "none"; dvSign.parentNode.removeChild(dvSign); } var div = document.createElement("DIV"); div.id = "dvSign"; div.style.position = "absolute"; div.innerHTML = '
'; //if(top.frames["index"]){ // var a = []; // // var f = function(i){ // parent.MM["compose"].setSign(i); // }; // parent.GE.signAllInfo.each(function(i,o){ // a.push({ // name:o.name, // value:i, // callback:f // }); // }); // a.push({ // name:"個性簽名" // }); // a.push({ // name:"設(shè)置簽名", // callback:function(){ // parent.MM.getModule("signature"); // } // }); // var signList = a; //}else{ // var signList = parent.GE.signs; //} var html = ""; for(var i=0;i
您確定要繼續(xù)嗎?", function(){sub1();}, false, true); }else{ sub1(); } } }catch(exp){ } } /** * 刪除標(biāo)簽符號 */ String.prototype.stripTags = function(){ return this.replace(/<\/?[^>]+>/gi, ''); }; /** * 轉(zhuǎn)換成文本格式 */ String.prototype.unescapeHTML = function(){ var div = document.createElement('div'); div.innerHTML = this.stripTags(); return div.childNodes[0].nodeValue; }; // document.oncontextmenu = function(){return false} function fStringDecodeHTML(s){ s = s.replace(/</gi,"<"); s = s.replace(/>/gi,">"); s = s.replace(/"/gi,"\""); s = s.replace(/&/gi,"&"); s = s.replace(/ /gi," "); return s; } /** * 全部功能 */ var gToolbarStatus = 1; function fToggleToolbar(){ if($("dvToobar").className.indexOf("hide")>-1){ $("dvToobar").className = $("dvToobar").className.replace(" hide", ""); $("dvToobarFull").className += " hide"; document.getElementById('HtmlEditor').style.height=(document.body.clientHeight-30)+'px'; gToolbarStatus = 0; }else{ $("dvToobarFull").className = $("dvToobarFull").className.replace(" hide", ""); $("dvToobar").className += " hide"; document.getElementById('HtmlEditor').style.height=(document.body.clientHeight-60)+'px'; gToolbarStatus = 1; } } //-->
字體
字號
宋體
黑體
楷體_GB2312
隸書
幼圓
Arial
Arial Narrow
Arial Black
Comic Sans MS
Courier
System
Times New Roman
Verdana
極小
特小
小
中
大
特大
極大
數(shù)字列表
符號列表
左對齊
居中對齊
右對齊
增加縮進(jìn)
減少縮進(jìn)
暗紅色
紫色
紅色
鮮粉色
深藍(lán)色
藍(lán)色
湖藍(lán)色
藍(lán)綠色
綠色
橄欖色
淺綠色
橙黃色
黑色
灰色
銀色
白色