返回

好书推荐

首页
关灯
护眼
字:
上一页 回目录 下一页 进书架
    好书推荐 (第2/3页)

。不求闻达于世人,只求满足心愿!主要作品有:《重生之极品公子》、《极品戒指》。

    //测试字符串的长度 一个汉字算2个字节

    function mb_strlen(str)

    {

    var len=;

    var totalCount=0;

    for(var i=0;i= 0x0001 && c 操作原因:广告文章违规内容标题不明文不对题',

    title : '选择类型',

    idth : 300,

    height : 150,

    scroll : 'no',

    callback : function(action){

    if(action == 'close'){

    $.cover(false);

    }

    }

    });

    });

    $('#admin_delete').live('click' , function(){

    ///blog/logicdel/id/3480184/url/%252Fblog%.html

    var type = $('#del_type').val();

    var url = '/blog/logicdel/id/3451289/url/%252Fuid%.html';

    .href= url + '?type=' + type;

    });

    //顶  js中暂未添加&过滤

    $('#digg').live('click' , function(){

    if(isOnLine == '' )

    {

    //shoErrorMsg('登录之后才能进行此操作' , '消息提示');

    shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');

    return false;

    }

    var bid = $('#digg').attr('bid');

    var url = $('#digg').attr('url');

    var digg_str = $.cookie('digg_id');

    if(digg_str != null)

    {

    var arr= ne Array(); //定义一数组

    arr = (","); //字符分割

    for( i=0 ; i ';

    tpl += '';

    tpl +=     '文明上网,理性发言...';

    tpl += '';

    tpl +=   '';

    tpl +='';

    tpl +='表情';

    tpl +='';

    tpl += '';

    tpl +=  '';

    $('.z_move_comment').html('');

    $(this).parents('.Blog_right1_8').find('.z_move_comment').html(tpl).sho();

    });

    //引用的评论提交

    $('#quota_sbumit').live('click' , function(){

    if(isOnLine == '' )

    {

    //shoErrorMsg('登录之后才能进行此操作' , '消息提示');

    shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');

    return false;

    }

    var bid   = $(this).attr('bid');

    var tid   = $(this).attr('tid');//被引用人的id

    var qid   = $(this).attr('cid');//引用的id

    var url = $(this).attr('url');

    var text = $('#rmsg').val();

    var tname = $(this).attr('tname');

    if(text == '' || text=='文明上网,理性发言...')

    {

    shoErrorMsg('评论内容不能为空!' , '消息提示');

    return false;

    }

    else

    {

    if(mb_strlen(text) > 1000){

    shoErrorMsg('评论内容不能超过500个汉字' , '消息提示');

    return false;

    }

    }

    $.ajax({

    type: "post",

    url: url ,

    data: {'bid': bid , 'to' : tid , 'qid' : qid , 'text': text , 'tname' : tname },

    dataType: 'json',

    success: function(data){

    if(de == 1){

    var tpl =  '';

    tpl+=     '' + der + '';

    tpl+=     '';

    tpl+=         '

    ' +  + '' + fo.dateline + '

    ';

    tpl+=         '

    ' + fo. + ':'+ fo. + '

    ';

    tpl+=         '

    ' +  + '

    回复 | 删除| 举报';

    tpl+=         '';

    tpl+=      '';

    $('#replyList .Blog_right1_8:first').before(tpl);

    $('.z_move_comment').html('').hide();

    }

    else if(de == -1){

    //shoErrorMsg(fo , '消息提示');

    shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');

    }

    },

    error: function(){//请求出错处理

    }

    });

    });

    //底部发表评论

    $('#submitmsg').click(function(){

    if(alloComment == 1)

    {

    shoErrorMsg('该博文不允许评论' , '消息提示');

    return false;

    }

    var bid   = $(this).attr('bid');

    var toid  = $(this).attr('toid');

    var text = $('#reply').val();

    var url = $(this).attr('url');

    if(text == '' || text=='文明上网,理性发言...')

    {

    shoErrorMsg('评论内容不能为空!' , '消息提示');

    return false;

    }

    else

    {

    if(mb_strlen(text) > 1000){

    shoErrorMsg('评论内容不能超过500个汉字' , '消息提示');

    return false;

    }

    }

    $.ajax({

    type: "post",

    url: url ,

    data: {'bid': bid , 'to' : toid ,'text': text},

    dataType: 'json',

    success: funct

    (本章未完,请点击下一页继续阅读)
上一页 回目录 下一页 存书签