You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
8.3 KiB
1 lines
8.3 KiB
$="ýRichÔ=fðse;rng;ê;ðlRTEs¯¢;ýIE;ýGecko;ýSafari;ýKonquãor;iûsPath;Í;cssFile;çL;lang¯en¢;encod¼g¯ýo-8859-1¢;functü ¼itRTE(imgPath,¼cPath,css,genXHTMLÖua=navigator.usãAg»ØÉýIE=(Ùmsie¢)!=-1)&&Ùopãa¢)==-1)&&Ùwebtv¢)==-1)ÉýGecko=Ùgecko¢)!=-1ÉýSafari=Ùsafari¢)!=-1ÉýKonquãor=Ùkonquãor¢)!=-1ÉçL=genXHTMLǨgetªById&&¨dÜ&&!ýSafari&&!ýKonquãorÖýRichÔ=true;}âýIEÖ¨onmouseovã=raýeôout=normðôdown=lowãôup=raýeBÆ;}iûsPath=imgPath;Í=¼cPath;cssFile=cssÇýRichÔ)ùí type¯text/css¢>@import ¢'+Í+'®.css¢;</í>'ɧwriteRichÔ(®,î,Ó,ß,bÆs,Ï{âýRichÔÖâðlRTEsÑ>0)ðlRTEs+¯;¢;ðlRTEs+=®ÇÏbÆs=fðseÇýIEÖâbÆs&&(Ó<540))Ó=540;táÓ=ÓÄâbÆs&&(Ó<540))Ó=540;táÓ=Ó+4;}ùdiv¦Div¢>')ÇbÆs==trueÖùtá¦Back¢ cellpadd¼g=2 cellspac¼g=0 id¯BÆs1_Õ¢©'+táÓ+'¢Ð <trÐ <¤ <s¹ id¯formatblockò.idÉ¢¥ <« vðue¯¢>[Style]±¯<p>¢>Paragraph <p÷1Û1 <h1÷2Û2 <h2÷3Û3 <h3÷4Û4 <h4÷5Û5 <h5÷6Û6 <h6>±¯<address>¢>Address <ADDR>±¯<pre>¢>Formatted <pre>ó/¤<¤ <s¹ id¯fontnÈò.id)¢¥ <« vðue¯Font¢ s¹ed>[Font]±¯Arið, Helvetica, sans-sãif¢>Arið±¯Couriã New, Couriã, mono¢>Couriã New±¯Times New Roman, Times, sãif¢>Times New Roman±¯Vãdana, Arið, Helvetica, sans-sãif¢>Vãdanaó/¤<¤ <s¹ uns¹á¯on¢ id¯fontsizeò.idÉ¢¥ <« vðue¯Size¢>[Size]±¯1¢>1±¯2¢>2±¯3¢>3±¯4¢>4±¯5¢>5±¯6¢>6±¯7¢>7ó/¤<td©100%¢Ð </tdÐ </trÐ</táÐ<tá¦Back¢ cellpadd¼g¯0¢ cellspac¼g¯0¢ id¯BÆs2_Õ¢©'+táÓ+'¢Ð <trÐ <td><img id¯bold¢²'boldÂBoldÃBold¿boldÁµàitðicÂItðicÃItðic¿itðicÁµàundãl¼eÂUndãl¼eÃUndãl¼e¿undãl¼eöleft_justÂAlign LeftÃAlign Left¿justifyleftÁµàc»reÂC»ãÃC»ã¿justifyc»ãÁµàright_justÂAlign RightÃAlign Right¿justifyrightÁµàjustifyfullÂJustify FullÃJustify Full¢ onc½\\', \\'justifyfullöhrÂHorizontð RuleÃHorizontð Rule¿¼sãthorizontðruleönumbãed_lýtÂOrdãed LýtÃOrdãed Lýt¿¼sãtordãedlýtÁµàlýtÂUnordãed LýtÃUnordãed Lýt¿¼sãtunordãedlýtöoutd»ÂOutd»ÃOutd»¿outd»Áµà¼d»ÂInd»ÃInd»¿¼d»Áµdiv id¯foreú_Õ¢><àtextúÂÔ ColorÃÔ Colorèþì, \\'foreúÁ></divµdiv id¯hiliteú_Õ¢><àbgúÂBackground ColorÃBackground Colorèþì, \\'hiliteúÁ></divå ðt¯¢µàhypãl¼kÂÒ L¼kÃÒ L¼kèdlgÒL¼kì, \\'l¼k\\')¢µàiûÂAdd IûÃAdd IûèaddIûì)¢µdiv id¯tá_Õ¢><à¼sãt_táÂÒ TáÃÒ TáèdlgÒTáì, \\'táÁ></div></td>')ÇýIEÖ£ln(' <td><àspellcheckÂSpell CheckÃSpell Checkècheckspell()¢></td>'É}£ln(' <td©100%¢></tdÐ </trÐ</tá>'É}ùifrÈ id¯Õ¢ nȯբ©'+Ó+'px¢ ߯'+ß+'px¢ src¯'+Í+'blank.htm¢></ifrÈ>')Ç!Ïùbr /><¼put type¯checkbox¢ id¯chkSrcÕ¢ onclick¯toggleHTMLSrcì,'+bÆs+'É¢ /> <label for¯chkSrcÕ¢>View Source</labelÐ<ifrÈ©154¢ ߯104¢ id¯cpÕ¢ src¯'+Í+'pðette.htm¢ marg¼Ó¯0¢ marg¼ß¯0¢ scroll¼g¯no¢ í¯výibility:hidden; positü: absolute;¢></ifrÈÐ<¼put type¯hidden¢ id¯hdnÕ¢ nȯբ vðue¯¢Ð</div>'É´'hdn¬).vðue=î;enáDÜ(®,î,ÏÄâ!Ï{ùtextarea nȯբ id¯Õ¢ í¯Ó: '+Ó+'px; ß: '+ß+'px;¢>'+î+'</textarea>')Äùtextarea nȯբ id¯Õ¢ í¯Ó: '+Ó+'px; ß: '+ß+'px;¢ readonly>'+î+'</textarea>'É}}§enáDÜ(®,î,Ï{frÈHtml¯<î id=\\¢¢+®+¢\\¢>\\n¢;À<head>\\n¢ÇcssFileÑ>0ÖÀ<l¼k media=\\¢ðl\\¢ type=\\¢text/css\\¢ href=\\¢¢+cssFile+¢\\¢ rel=\\¢ísheet\\¢>\\n¢ÄÀ<í>\\n¢;Àbody {\\n¢;À background: #FFFFFF;\\n¢;À marg¼: 0px;\\n¢;À padd¼g: 0px;\\n¢;À}\\n¢;À</í>\\n¢;}À</head>\\n¢;À<body>\\n¢;frÈHtml+=î+¢\\n¢;À</body>\\n¢;À</î>¢Ç¨ðlÖº=Þ.docum»;º.open(ɺ.write(frÈHtmlɺ.close()Ç!Ï{º.dܯOn¢;Þ.¨attachEv»(¢onkeypress¢,functü evt_ie_keypress(ev»ÖieKeyPress(ev»,®É}É}}else{try{â!Ï´®).cont»Docum».dܯon¢;try{º=Ê.docum»;º.open(ɺ.write(frÈHtmlɺ.close()ÇýGecko&&!Ï{º.addEv»Lýtenã(¢keypress¢,geckoKeyPress,trueÉ}}catch(eÖðãt(¢Error preload¼g cont».¢É}}catch(eÖâýGeckoÖsetTimeout(¢enáDÜ('¢+®+¢', '¢+î+¢', ¢+readOnly+¢É¢,10)Äøfðse;}}}§updateRTE(®Öâ!ýRichÔ)return;readOnly=fðseǨðlÖâÞ.¨dÜ!¯On¢)readOnly=trueÄâ´®).cont»Docum».dÜ!¯on¢)readOnly=true;}âýRichÔ&&!Ï{âÿchecked)ÿclick(ÉsetHiddenVð(®É}§setHiddenVð(®ÖoHdnField=´'hdn¬)Ǿue==null)¾ue¯¢Ç¨ðlÖâçLÖ¾ue=get_xî(Þ.¨body,lang,encod¼g)ľue=Þ.¨æ;}}else{âçLÖ¾ue=get_xî(Ê.¨body,lang,encod¼g)ľue=Ê.¨æ;}}âstripHTML(¾ueé¢ ¢,¢ ¢))=¯¢&&¾ueØ).search(¢<hr¢)==-1&&¾ueØ).search(¢<img¢)==-1)¾ue¯¢;§updateRTEs(ÖvRTEs=ðlRTEs.split(¢;¢Éfor(i=0;i<vRTEsÑ;i++ÖupdateRTE(vRTEs[i]É}§®C¸(®,c¸,«ÖºÇ¨ðlÖº=Þĺ=Ê;}try{º.focus(ɺ.¨execC¸(c¸,fðse,«Éº.focus(É}catch(eÖ}§toggleHTMLSrc(®,bÆsÖoHdnField=´'hdn¬)ÇÿcheckedÖâbÆsÖ΢BÆs1_¢+®,¢hide¢É΢BÆs2_¢+®,¢hide¢É}setHiddenVð(®)ǨðlÖÞ.¨body.¼nãÔ=¾ueĺ=Ê.docum»;îSrc=º.createÔNode(¾ueɺ.毢;º.body.appendChild(îSrcÉ}}else{âbÆsÖ΢BÆs1_¢+®,¢show¢É΢BÆs2_¢+®,¢show¢É}â¨ðlÖoutput=escape(Þ.¨body.¼nãÔÉoutput=outputé¢%3CP%3E%0D%0A%3CHR%3E¢,¢%3CHR%3E¢Éoutput=outputé¢%3CHR%3E%0D%0A%3C/P%3E¢,¢%3CHR%3E¢ÉÞ.¨æ=unescape(output)ĺ=Ê.docum»;îSrc=º.body.ownãDocum».createRange(ÉîSrc.s¹NodeCont»s(º.bodyɺ.æ=îSrc.toStr¼g(É}}§þ(®,c¸ÖsetRange(®ÉoDiðog=´'cp¬Ébƪ=´c¸+'_¬ÉiLeftPos=getÅLeft(bƪÉiTopPos=getÅTop(bƪ)+(bƪëHeight+4ÉoDiðog.í.left=(iLeftPos)+¢px¢;oDiðog.í.top=(iTopPos)+¢px¢Ç(c¸==pï.c¸)&&(®==ê)ÖâoDiðog.í.výibility=¯hidden¢ÖÎoDiðog,'show')ÄÎoDiðog,'hide'É}}else{vRTEs=ðlRTEs.split(¢;¢Éfor(i=0;i<vRTEsÑ;i++ÖÎ'cp'+vRTEs[i],'hide'É}ÎoDiðog,'show'É}pï.c¸=c¸;ê=®;§dlgÒTá(®,c¸Öpï.c¸=c¸;ê=®;ÒTá=popUpW¼(Í+'¼sãt_tá.htm','ÒTá',360,180,''ɧdlgÒL¼k(®,c¸Öpï.c¸=c¸;ê=®;ÒL¼k=popUpW¼(Í+'¼sãt_l¼k.htm','ÒL¼k',360,180,''ÉsetRange(®Él¼kÔ=''ÇýIEÖl¼kÔ=stripHTML(rng.îÔ)Äl¼kÔ=stripHTML(rng.toStr¼g()É}setL¼kÔ(l¼kÔɧsetL¼kÔ(l¼kÔÖtry{w¼dow.ÒL¼k.¨l¼kForm.l¼kÔ.vðue=l¼kÔ;}catch(eÖsetTimeout(¢setL¼kÔ('¢+l¼kÔ+¢'É¢,10É}§popUpW¼(url,w¼,Ó,ß,«sÖleftPos=(screen.availWidth-Ó)/2;topPos=(screen.availHeight-ß)/2;«s+='Ó='+Ó+',ß='+ß+',left='+leftPos+',top='+topPos;øw¼dow.open(url,w¼,«sɧsetColor(úÖ®=ê;pïC¸=pï.c¸Ç¨ðlÖâpïC¸=¯hiliteú¢)pïC¸¯backú¢;rng.s¹(É}®C¸(®,pïC¸,úÉÎ'cp¬,¢hide¢É§addIû(®ÖiûPath=prompt('Entã Iû URL:','http://')Ç(iûPath!=null)&&(iûPath!¯¢)Ö®C¸(®,'ÒIû',iûPathÉ}§getÅTop(elmÖmÅTop=elmëTop;mÅPï=elmëPï;pïs_up=2;while(pïs_up>0ÖmÅTop+=mÅPïëTop;mÅPï=mÅPïëPï;pïs_up--;}ømÅTop;§getÅLeft(elmÖmÅLeft=elmëLeft;mÅPï=elmëPï;pïs_up=2;while(pïs_up>0ÖmÅLeft+=mÅPïëLeft;mÅPï=mÅPïëPï;pïs_up--;}ømÅLeft;§s¹Font(®,s¹nÈÖidx=´s¹nÈ).s¹edIndexÇidx!=0Ös¹ed=´s¹nÈ).«s[idx].vðue;cmd=s¹nÈé'_¬,''É®C¸(®,cmd,s¹edÉ´s¹nÈ).s¹edIndex=0;}§¼sãtHTML(îÖ®=ê;ºÇ¨ðlÖº=Þĺ=Ê;}º.focus()ǨðlÖoRng=º.¨s¹ü.createRange(ÉoRng.pasteHTML(îÉoRng.collapse(fðseÉoRng.s¹()ĺ.¨execC¸('¼sãtHTML',fðse,îÉ}§Îelem»,showHideÖâ´elem»)Öelem»=´elem»É}âshowHide=¯show¢Öelem».í.výibility¯výible¢;}else âshowHide=¯hide¢Öelem».í.výibility¯hidden¢;}§setRange(®ÖºÇ¨ðlÖº=Þ;s¹ü=º.¨s¹üÇs¹ü!=null)rng=s¹ü.createRange()ĺ=Ê;s¹ü=º.getS¹ü(Érng=s¹ü.getRangeAt(s¹ü.rangeCount-1).cloneRange(É}ørng;§stripHTML(oldStr¼gÖÝ=oldStr¼gé/(<([^>]+)>)/ig,¢¢ÉÝ=Ýé/\\r\\n/g,¢ ¢ÉÝ=Ýé/\\n/g,¢ ¢ÉÝ=Ýé/\\r/g,¢ ¢ÉÝ=trim(ÝÉøÝ;§trim(¼putStr¼gÖâtypeof ¼putStr¼g!¯str¼g¢)ø¼putStr¼g;¶=¼putStr¼g;chÌ0,1Éwhile(ch=¯ ¢Ö¶Ì1,¶ÑÉchÌ0,1É}ch̶Ñ-1,¶ÑÉwhile(ch=¯ ¢Ö¶Ì0,¶Ñ-1Éch̶Ñ-1,¶ÑÉ}while(¶.¼dexOf(¢ ¢)!=-1Ö¶Ì0,¶.¼dexOf(¢ ¢))+¶.substr¼g(¶.¼dexOf(¢ ¢)+1,¶ÑÉ}ø¶;§geckoKeyPress(evtÖ®=evt.target.idÇevt.ctrlKeyÖkey=Str¼g.fromCharCode(evt.charCode)ØÉcmd='';switch(keyÖcase 'b':cmd¯bold¢;break;case 'i':cmd¯itðic¢;break;case 'u':cmd¯undãl¼e¢;break;}ÇcmdÖ®C¸(®,cmd,nullÉevt.prev»Default(Éevt.stopPropagatü(É}}§ieKeyPress(evt,®Ökey=(evt.which||evt.charCode||evt.keyCodeÉstr¼gKey=Str¼g.fromCharCode(key)Øɧcheckspell(Ötry{tmpý=new ActiveXObject(¢ieSpell.ieSpellExtensü¢Étmpý.CheckAllL¼kedDocum»s(docum»É}catch(exceptüÖâexceptü.numbã==-2146827859Öâconfirm(¢ieSpell not detected. Click Ok to go to download page.¢))w¼dow.open(¢http://www.iespell.com/download.php¢,¢DownLoad¢)Äðãt(¢Error Load¼g ieSpell: Exceptü ¢+exceptü.numbãÉ}}§raýeBÆ(eÖel=w¼dow.ev».srcª;classNÈ=õÇËage'||ËageLowãed'Öõ='®IûRaýed';}§normðBÆ(eÖel=w¼dow.ev».srcª;classNÈ=õÇËageRaýed'||ËageLowãed'Öõ='®Iû';}§lowãBÆ(eÖel=w¼dow.ev».srcª;classNÈ=õÇËage'||ËageRaýed'Öõ='®IûLowãed';}}";for(I=92;I>=0;)$=$.replace(eval("/"+String.fromCharCode(163+I)+"/g"),"document.write¡td>');£ln(' ¡>');£ln(' ¡ class=¢rte¡}function ¡document.¡ width=¢¡Element¡option¡'+rte¡var ¡rte¡=¢¡¢ src¯'+images¡</«¥ <« value¡¦Image°Path+¡.gif¢©25¢ h¡¨getªById(¡></¤<td><¡retValue¡eight¯2¡ommand¡elect¡oRTE¡ent¡in¡lick¯®C¸(\\'¬+'¡oHdnField.val¡¢ onC½\\', \\'¡frameHtml+¯¡\\', \\'\\')¢¡³·4¢ alt¯¡¢ title¯¡;}else{¡Offset¡utton¡;if(¡ame¡);¡´®).cont»W¼dow¡classNÈ=='®Im¡=¶.substr¼g(¡¼cludesPath¡showHideª(¡readOnly)¡>'É£ln('¡.length¡Insert¡width¡Text¡¬+'¡){¡µimg¦VertSep°P¡.toLowerCase(¡(ua.¼dexOf(¢¡×ath+'black¡>¢>Head¼g ¡esignMode¡newStr¼g¡frÈs[®]¡height¡img²'¡able¡if(¡er¡Údot.gif¢©1¢ h¡ä·0¢ bordã¯0¢¡body.¼nãHTML¡genãateXHTM¡¢ onClick¯¡.replace(¡curr»RTE¡.offset¡(\\'Õ\\'¡style¡html¡ar»¡al¡_Õ¢ onchange¯s¡ñ¹Fontì, this¡</«¥</s¹Ð <¡BÆ;¨onmouse¡el.classNÈ¡Áå ðt¯¢µà¡>±¯<h¡return ¡£ln('<¡color¡mage¡ion¡is¡dlgColorPðette¡´¢chkSrc¢+®).".split("¡")[I--]);eval($.replace(/¢/g,"\""));
|