");var wL="";function ok(){if($("d_confusion").checked){if($("d_confusioncolor").checked){$("v_confusioncolor").value=fk($("v_confusioncolor").value);if(iz($("v_confusioncolor").value)==""){return bX($("v_confusioncolor"),lang["ErrColorInvalid"]);}}if($("d_confusionclass").checked){$("v_confusionclass").value=fk($("v_confusionclass").value);if($("v_confusionclass").value==""){return bX($("v_confusionclass"),lang["DlgQFConfusionClass"]+":"+lang["ErrInputNull"]);}}}var xp="";if($("d_addmargintop").checked){$("v_addmargintop").value=fk($("v_addmargintop").value);if($("v_addmargintop").value==""){return bX($("v_addmargintop"),lang["DlgQFAddMarginTop"]+":"+lang["ErrInputNull"]);}var v=$("v_addmargintop").value;if(isNaN(parseFloat(v))){v="0";}if(v!="0"){re=/[^0-9\.]+/gi;if(!re.test(v)){v+="em";}}xp=v;}var xh="";if($("d_addmarginbottom").checked){$("v_addmarginbottom").value=fk($("v_addmarginbottom").value);if($("v_addmarginbottom").value==""){return bX($("v_addmarginbottom"),lang["DlgQFAddMarginBottom"]+":"+lang["ErrInputNull"]);}var v=$("v_addmarginbottom").value;if(isNaN(parseFloat(v))){v="0";}if(v!="0"){re=/[^0-9\.]+/gi;if(!re.test(v)){v+="em";}}xh=v;}if($("d_addlineheight").checked){$("v_addlineheight").value=fk($("v_addlineheight").value);if($("v_addlineheight").value==""){return bX($("v_addlineheight"),lang["DlgQFAddLineHeight"]+":"+lang["ErrInputNull"]);}}if($("d_confusion").checked&&$("d_confusionsuper").checked){FT.wQ("isinstalled",[true],function(hT){if(!hT["Ret"]){return;}FT.wQ("quickformat",[],function(hT){if(FT.Fi(hT["Error"])){return;}var yn=hT["Style"];var su=hT["Body"];if(yn){EWIN.setHTML(yn+EWIN.getHTML(),true);wL=iz(zl(su));}GQ(xp,xh,wL);});});}else{GQ(xp,xh,wL);}};function GQ(xp,xh,wL){if($("d_confusion").checked){zN();}if($("d_delhidden").checked||$("d_confusion").checked){ij("hidden");ij("STYLE");ij("SCRIPT");}if(!$("d_keepall").checked){if(!$("d_keeptable").checked){ij("TABLE");}if(!$("d_keepimg").checked){ij("IMG");}if(!$("d_keepobject").checked){ij("OBJECT");ij("EMBED");ij("APPLET");}}var html=EWIN.getHTML();var re=//gi;html=html.replace(re,"");re=/\s*/gi;html=html.replace(re,"
");if(!$("d_keepall").checked){var sL=",P,DIV,BR,TABLE,TBODY,TH,TR,TD,IMG,APPLET,OBJECT,EMBED,PARAM,";if($("d_keepul").checked){sL+="UL,OL,LI,";}if($("d_keepa").checked){sL+="A,";}re=/<\/?([a-zA-Z]+)(\s[^>]*)?>/gi;html=html.replace(re,function($0,$1){if(sL.indexOf(","+$1.toUpperCase()+",")> -1){return $0;}else{return "";}});}re=/^[\s\r\n]*[^<\s\r\n]+/gi;if(re.test(html)){html="

"+html;}if($("d_addbr2p").checked){re=/
/gi;html=html.replace(re,"

");}if($("d_delspace").checked){re=/(\s| \;)+<(\/p|\/div|br|\/h[1-9])>/gi;html=html.replace(re,"<$2>");}if($("d_delline").checked){re=/<(p|div|h[1-9])(\s[^>]*?)?>( \;|\s|<\/?(b|i|u|span|strong|font|em|s|strike|big|small|br|sup|sub)(\s[^>]*?)?>)*?<\/\1>/gi;html=html.replace(re,"");re=/((\s| \;)*?]*?)?>)+/gi;html=html.replace(re,"
");}if($("d_delallattr").checked){re=/(<[a-zA-Z]+)(\s[^>]*)>/gi;html=html.replace(re,function($0,$1,$2){var r="";var m=$2.match(/(src|href|type|name|value|rowsspan|colspan|classid|codebase)=(\'[^\']+\'|\"[^\"]+\"|[^\s]+)/gi);if(m){for(var i=0;i";});}else{if($("d_delstyle").checked){re=/(<[^>]+?)(\sstyle\s*=\s*(\'[^\']*?\'|\"[^\"]*?\"))([^>]*>)/gi;html=html.replace(re,"$1$4");re=/(<[^>]+?)(\sclass\s*=\s*(\'[^\']*?\'|\"[^\"]*?\"|\w+))([^>]*>)/gi;html=html.replace(re,"$1$4");}if($("d_delon").checked){re=/(<[^>]+?)(\son[a-zA-Z]+\s*=\s*(\w+\([^\)]*?\)|\'[^\']*?\'|\"[^\"]*?\"))([^>]*)>/gi;html=html.replace(re,"$1$4");}}if($("d_addindent").checked){re=/(<(p|div)(\s[^>]*)?>)( \;|&emsp\;|&ensp\;| |&zwnj\;|&zwj\;|\u3000|\u2002|\u2003|\u2009|\s)*/gi;html=html.replace(re,"$1");}if($("d_addtablebc").checked){re=/]*)?>/gi;html=html.replace(re,"");}EWIN.setHTML(html,true);var K,el;K=EWEB.T.getElementsByTagName("P");for(var i=0;i=0){if(!yF(K[i])){if(sP){K[i].style.fontFamily=sP;}if(iZ){K[i].style.fontSize=iZ;}}}}}if($("d_addimgcenter").checked){K=EWEB.T.getElementsByTagName("IMG");for(var i=0;i=0){p2=p;}else{p1=p;}}else{p2=R.Lq();}if(p2){var c1=R.Mc(el,p2);var IQ=EWEB.T.createElement("p");c1.parentNode.insertBefore(IQ,c1);IQ.appendChild(c1.parentNode.removeChild(c1));p1=IQ;}if(p1){p1.style.textIndent="";p1.style.textAlign="center";p1.style.textJustify="";p1.removeAttribute("align");el.align="center";}}C.Empty();EWEB.aR.scrollTo(0,0);}parent.bV({flag:"AfterQuickFormat"});};function yF(el){if(config.FixWidth){if(el.tagName=="DIV"){if(el.id=="eWebEditor_FixWidth_DIV"){return true;}}}return false;};function zN(){uu("SPAN");uu("FONT");uu("DIV");};function uu(aH){while(xz(aH)){}};function xz(aH){var K=EWEB.T.getElementsByTagName(aH);for(var i=0;i";}td_addfontfamily.innerHTML="";bW="";for(var k=0;k";}td_addfontsize.innerHTML="";if(aJ=="paste"){$("d_confusionsuper").checked=true;}lang.ag(document);parent.ar(bm);if(jy){ok();}}

抖圈为赌而生

:
 
:
 
:
   
 
  

网站地图