ÂéÆÅ¶¹¸¯ 











<script type=text/javascript>
//< ![CDATA[
function jumpToTop() {
if(isSmall) {
document.body.scrollTop = 0;
}
else
parent.$("mbody").scrollTop = 0;
}
function _quote(s){
s=s.replace(/[quote=Òý×Ô£º(.+?)(?:x20| ){1,2}ÓÚx20(.+?)x20·¢±íµÄÆÀÂÛ]/g,'x03Òý×Ô£º$1 ÓÚ $2 ·¢±íµÄÆÀÂÛ
x02').replace(/[/quote]/g,'x01');
for(var i=0;i<2 ;i++)
s=s.replace(/x03([^x03x01x02]*?)x02([^x03x01x02]*?)x01/g, function(a,b,c){
return ""+b+"ÒýÓÃÄÚÈÝ£º
";"+c+"
});
return s.replace(/[x03x02x01]/g,'');
}
var bLoaded = false;
function checkMsgReply(obj) {
if(!bLoaded)
top.includeJS("/qzone/blog/script/common.js", function(){bLoaded=true;checkMsgReply(obj)}, document);
else
checkReply(obj);
if(obj.checked){
MAX_COMMENT_LEN = 500;
}
else {
MAX_COMMENT_LEN = 4500;
}
_fontCount = MAX_COMMENT_LEN; //×ÖÊýÏÞÖÆ
if(!window.sendCommentEditor) return;
if(sendCommentEditor.editorArea.editMode == 1)
toCountFont(sendCommentEditor.id, 'html');
else
toCountFont(sendCommentEditor.id, 'text');
}
function showMsgLeftCnt() {
if(!bLoaded)
top.includeJS("/qzone/blog/script/common.js", function(){bLoaded=true;showMsgLeftCnt();}, document);
else
showLeftSMS();
}
function selectBlogPaper() {
if(checkLogin() < = 10000) {
top.showLoginBox('mall');
return;
}
if(!!top.g_JData['blogContent']) {
if(parent.g_iLoginUin == parent.g_iUin) {
location.href='/qzone/newblog/blogeditor.html?paperid=' + parent.g_JData['blogContent'].data.lp_id + '&paperstyle=' + parent.g_JData['blogContent'].data.lp_style + '&paperdialog=1';
}
else {
parent.location.href='http://user.qzone.qq.com/' + parent.g_iLoginUin + '/addNewBlog?paperid=' + parent.g_JData['blogContent'].data.lp_id + '&paperstyle=' + parent.g_JData['blogContent'].data.lp_style;
}
}
else {
top.showMsgBox('±§Ç¸,ÔÝʱÎÞ·¨»ñÈ¡¸ÃÐÅÖ½ÐÅÏ¢!', 1, 2000);
}
}
/**
* ÅúÁ¿É¾³ýÖÐÑ¡Ôñȫѡ
*/
function selectAllComments(bChecked) {
var oList = document.getElementsByName('commentCheckBox');
if(oList.length==0)
return;
for(var i=0; i
}
}
function showCommentCheckBoxs(bShow, bCheck){
var oList = document.getElementsByName('commentCheckBox');
if(oList.length==0)
return;
for(var i=0; i
if(!!bCheck) oList[i].checked = true;
else oList[i].checked = false;
}
if(!!bCheck) $('batchSelAllInput').checked = true;
else $('batchSelAllInput').checked = false;
$('leftDeleteComParag').style.display = ((!!bShow) ? '' : 'none');
$('batchDelComHref').style.display = ((!!bShow) ? 'none' : '');
$('noBatchDelComHref').style.display = ((!!bShow) ? '' : 'none');
}
/**
* Ãû²©ÅúÁ¿É¾³ýÆÀÂÛ
*/
function deleteBatchComments() {
if(!contentProperty) return;
var oList = document.getElementsByName('commentCheckBox');
if(oList.length==0) {
return;
}
var tmp;
var strCommentList = "";
var strArchList = "";
var nDeleteCnt = 0;
for(var i=0; i
tmp = oList[i].value.split("_")
strCommentList += ("-" + tmp[0]);
strArchList += ("-" + tmp[1]);
++nDeleteCnt;
}
}
strCommentList = strCommentList.substr(1);
strArchList = strArchList.substr(1);
if(nDeleteCnt == 0) {
parent.showMsgbox('ÇëÑ¡ÔñҪɾ³ýµÄÆÀÂÛ', 0, 2000);
return;
}
if(!!contentProperty && contentProperty.totalCommentNumber < nDeleteCnt)
return;
if(!confirm('ÄúÊÇ·ñҪɾ³ýÑ¡ÖеÄÓû§ÆÀÂÛ£¿')) return;
parent.loadXMLAsyncNoCache('delBatchReply', 'http://'+BLOG_DOMAIN+CGI_PATH+'blog_batch_del_comment',
function(){
if(parent.g_XDoc['delBatchReply'].selectNodes('error').length > 0){
dalert(null, parent.g_XDoc['delBatchReply'].xml, 2000);
delete parent.g_XDoc['delBatchReply'];
return;
}
dalert(null, parent.g_XDoc['delBatchReply'].xml, 2000, 2);
contentProperty.totalCommentNumber -= nDeleteCnt;
//ÇåÀícache
with(contentProperty){
delete parent.g_XDoc['blogRoot'].contentHSList[currentBlogid];
pageList = {};
pageIndexMap = [];
currentCommentPage = lastCommentPage = (!contentProperty.nowaPage)?0:nowaPage[3];
parent.g_XDoc['blogRoot'].replyNumUpdateHSmap[currentBlogid] = totalCommentNumber;
parent.isRefreshTop = true;
if(currentCommentPage == 0) {
setTimeout(contentInit, 1000);
}
else{
var tp = Math.ceil(totalCommentNumber/PAGE_COMMENT_NUM);
var num = totalCommentNumber%PAGE_COMMENT_NUM;
if(num==0 || currentCommentPage
getOnePageComment(num, nowaPage[0], nowaPage[1], nowaPage[2], blogCommentListCallback, 1);
$('commentCount3').innerHTML = totalCommentNumber;
}
}
delete top.g_XDoc['delBatchReply'];
showCommentCheckBoxs(false, false);
},
function(){
dalert(null, BUSY_MSG, 2000);
delete parent.g_XDoc['delBatchReply'];
},
'uin='+parent.g_iLoginUin+'&blogid='+contentProperty.currentBlogid+'&archlist='+strArchList.URLencode()+'&replyidlist='+strCommentList.URLencode()
);
}
/**
* ÓÐÆÀÂÛ»òûÓÐʱÏÔʾ/Òþ²ØÏà¹Øelement
*/
function showElementsAnyReply(bShow) {
var strCss = !!bShow ? '' : 'none';
if(isStar && parent.g_iUin == parent.g_iLoginUin) {
$('starDeleteComDiv').style.display = strCss;
}
if(parent.g_bBlogShowCheatHint == true)
$('commentHintDiv').style.display = strCss;
}
/**
* ¹Ø±ÕÌá·ÀÉϵ±ÌáʾÐÅÏ¢
*/
function closeCheatHint() {
parent.g_bBlogShowCheatHint = false;
$("commentHintDiv").style.display = "none";
}
setLoginStatus();
var frmComment=document.getElementById('commendForm');
if(!isSmall)
document.body.onkeydown=scrollBlog;
if((isStar || isBiz) && (top.g_iLoginUin!=top.g_iUin)){
frmComment.hassign.checked=false;
$('startToolSelect').style.display='none';
}
if(top.g_iLoginUin>10000 && top.g_iLoginUin!=top.g_iUin) {
$('msgboardSelfReply').style.display = '';
$('blogSelPaper').title = 'ÎÒҲҪʹÓôËÐÅֽдÈÕÖ¾';
}
setTimeout(contentInit,50);
//]]>
¸½½üÏÔÖø±êÖ¾Îï(½¨ÖþÎï)£º
¶©×ùµç»°£º
²Ëʽ·çζ£º
²ÍÌüϯλ£º
²ÍÌü»·¾³£º
·þÎñ̬¶È£º
ÓÅ»ÝÌØ¼Û£º
Ӫҵʱ¼ä£º
È˾ùÏû·Ñ£º
½»Í¨Â·Ïߣº
³µÎ»Çé¿ö£º
