function InsUBB(objubb) { var Obj=document.getElementById("CommentContent"); Obj.focus(); var aText = Obj.document.selection.createRange(); switch(objubb){ case "B": if(aText.text.length>0) aText.text='[B]'+aText.text+'[/B]'; break; case "I": if(aText.text.length>0) aText.text='[I]'+aText.text+'[/I]'; break; case "U": if(aText.text.length>0) aText.text='[U]'+aText.text+'[/U]'; break; case "CODE": if(aText.text.length>0) aText.text='[CODE]'+aText.text+'[/CODE]'; break; case "QUOTE": if(aText.text.length>0) aText.text='[QUOTE]'+aText.text+'[/QUOTE]'; break; default: alert("错误参数调用!"); break; } aText=null; } function InsLink(){ var Obj=document.getElementById("CommentContent"); Obj.focus(); var result=window.showModalDialog("/blue/Images/Guest/Link.asp",window,"scroll:no;resizable:no;help:no;status:no;dialogWidth:380px;dialogHeight:140px"); if(result != null) Obj.value+=result; } function InsImage(){ var Obj=document.getElementById("CommentContent"); Obj.focus(); var result=window.showModalDialog("/blue/Images/Guest/Image.asp",window,"scroll:no;resizable:no;help:no;status:no;dialogWidth:380px;dialogHeight:135px"); if(result != null) Obj.value+=result; } //----------- //---Abel Ray added these functions //--- function chooseMood(){ var mood=''; mood='\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
纯蓝天空卡通帅哥蔡卓妍张娜拉郑伊健
卡通美眉卡通帅哥陈慧琳宋慧乔刘德华
卡通美眉卡通帅哥徐静蕾Rain古天乐
卡通美眉卡通帅哥徐熙媛权相宇陈晓东
'; TMP=$('MoodDiv').innerHTML; if(TMP.length<1) $('MoodDiv').innerHTML=mood; $('MoodDiv').style.display="block"; } function MoodClick(img,icon){ document.images['MoodChoose'].src=img.src; $("GuestMood").value=icon; $("MoodDiv").style.display="none"; } function chooseIcon(){ var icon=''; for(i=1;i<=90;i++){ icon+=''; if(i%10==0) icon+='
' else icon+='\n'; } TMP=$('IconDiv').innerHTML; if(TMP.length<1) $('IconDiv').innerHTML=icon; if($("IconDiv").style.display=="none") $("IconDiv").style.display="block"; else $("IconDiv").style.display="none"; } function InsIcon(ico){ $('IconDiv').style.display="none"; var Obj=$("CommentContent"); Obj.focus(); Obj.value+='[img]/blue/Images/Emotion/'+ico+'.gif[/img]'; } var JsStrTemp='
\

Post Your Comments:

\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ '; JsStrTemp+=' \ \ \ \ \
Name:\ Login | RegisterMood:Mood:\
URL:
UBB\ Bold\ Italic\ Underline\ Code\ Quote\ Link\ Image\ Icon\
Comment:\
\ \ '; if(document.all) JsStrTemp+=' '; JsStrTemp+='
\
\
'; $("BlogCommentPost").innerHTML=JsStrTemp;