• 登录
  • 注册
  • 帮助
  • RSS
zuojiaku

  • 首页
  • 新闻
  • 作家
    • 京
    • 津
    • 沪
    • 渝
    • 冀
    • 豫
    • 滇
    • 辽
    • 黑
    • 湘
    • 皖
    • 鲁
    • 新
    • 苏
    • 浙
    • 赣
    • 鄂
    • 桂
    • 甘
    • 晋
    • 蒙
    • 陕
    • 吉
    • 闽
    • 黔
    • 粤
    • 青
    • 藏
    • function colorTip(tip){ return ''+tip+''; } num=20; function closepop(){ var name='tips'; $.dialog.close(name); } function bytes(str){ var len=0; for(var i=0;i127){ len++; } len++; } return len; } function updateverifycode(num) { var img = "index.php?user-code-"+Math.random(); $('#verifycode'+num).attr("src",img); } function aegis_comment(id){ $.post("index.php?comment-aegis",{'id':id},function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message>='0'){ $('#a_'+id).html(parseInt($('#a_'+id).html())+1); }else{ $.dialog.box('tips', '评论提示', colorTip('您已经点击过了。')); setTimeout("closepop()",1000); } $('#ae_'+id).html('已支持'); }); } function oppose_comment(id){ $.post("index.php?comment-oppose",{'id':id},function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message>='0'){ $('#o_'+id).html(parseInt($('#o_'+id).html())+1); }else{ $.dialog.box('tips', '评论提示', colorTip('您已经点击过了。')); setTimeout("closepop()",1000); } $('#op_'+id).html('已反对'); }); } function del_comment(id){ $.ajax({ url: "index.php?comment-remove", cache: false, dataType: "xml", type:"post", //async:false, data: {id:id,did:60590,page:$('#page').html()}, success: function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message!=0){ $.dialog.box('tips', '评论提示',colorTip( '删除评论成功!')); if(message!=1){ $('#c_content').html(message); }else{ $("#c_"+id).parent().parent().empty().hide(); } $('#c_num').html(+$('#c_num').html()-1); }else{ $.dialog.box('tips', '评论提示', colorTip('发生意外错误。')); } setTimeout("closepop()",1000); } }); } function edit_comment(id){ var comment=$('#c_'+id).html(); var msg="
      • "+ "
      • "+ "   
      • "; $.dialog.box('tips', '评论修改', msg); } function reply_comment(id){ var msg="
          \
        • \ "+"
        • \     评论长度最大为100个字符
        • "+"
        • "+" 
        "; $.dialog.box('tips', '评论回复', msg); setTimeout("updateverifycode(2)",100); } function report_comment(id){ var msg="
        • 举报原因:
        •    
        "; $.dialog.box('tips', '评论举报', msg); } function save_report(id){ var report=$("#reportcomment").val(); if(report==""){ alert('举报原因不能为空。'); return false; }else if(bytes(report)>200){ alert('举报原因长度最大为200个字符。'); return false; } $.post("index.php?comment-report",{'id':id,'report':report},function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message>=0){ $.dialog.box('tips', '评论信息', colorTip('非常感谢,举报成功!')); }else{ $.dialog.box('tips', '评论信息', colorTip('出现故障,举报失败!')); } setTimeout("closepop()",1000); }); } function saveedit(id){ var comment=$.trim($('#editcomment').val()); if(comment==""){ alert("评论不能为空"); return false; }else if(bytes(comment)>200){ alert('评论长度最大为100个字符'); return false; } $.ajax({ url: "index.php?comment-edit", dataType: "xml", type:"post", //async:false, data: {id:id,comment:comment}, success: function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message=='1'){ $.dialog.box('tips', '评论信息', colorTip('评论修改成功!')); $('#c_'+id).html(comment); }else{ $.dialog.box('tips', '评论信息', colorTip('发生意外错误。')); } setTimeout("closepop()",1000); } }); } function submitcomment(re_id){ var comment,anonymity; if(re_id==0){ var com_obj=$('#comment'); var code=$('#code').val(); anonymity =$('#anonymity').is(':checked')?1:0; }else{ var com_obj=$('#replycomment'); var code=$('#code2').val(); anonymity = $('#replyanonymity').is(':checked')?1:0; } comment=$.trim(com_obj.val()); if(comment==""){ alert('评论不能为空'); return false; }else if(bytes(comment)>200){ alert('评论长度最大为100个字符'); return false; } var c_class=((+$('#c_num').html()) % num==0||$('#page').html()>1)?1:0; $.ajax({ url: "index.php?comment-add-60590", dataType: "xml", type:"post", //async:false, data: {comment:comment,c_class:c_class,re_id:re_id,anonymity:anonymity,code:code}, success: function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message.substr(0,2)!='0;'){ location.reload(); if(c_class){ $('#c_content').html(message); }else{ move(0,message,'add'); } $('#c_num').html(+$('#c_num').html()+1); com_obj.val(""); updateverifycode(1); $.post("index.php?hdapi-hdautosns-comment-60590", {comment:comment.substr(0, 40)}); }else{ $.dialog.box('tips', '评论提示',colorTip(message.substr(2))); } setTimeout("closepop()",1000); } }); } function move(id,message,type){ if(type=='add'){ var n=1; var stand=num-1; for(i=stand;i>id;i--){ var content = $('#li_'+(i-1)).html(); $('#li_'+i).html(content); if(content!==''){ $('#li_'+i).show(); }else{ $('#li_'+i).hide(); } } $('#li_0').html(message).show(); } }
        中国作家库 >>所属分类 >>

        老郑(0条评论)

        返回词条
        •  注: 评论长度最大为100个字符
        0

        热评阅读

          (223评)精品散文多彩报春 《驰阅万里芳华》面世
          (80评)红色基因虔于心
          (35评)“叹为观止”----“翠云廊”
          (30评)青山隐隐 绿水迢迢 ——记一位山区女教师
          (30评)古为今用 意义鼎新——从“平‘语’近人”想到的
          (26评)苟贵的故事
          (26评)论制定《民间文化艺术保护法》
          (26评)翟峰回忆录:法缘四十载
          (25评)翟峰
          (24评)难忘那故乡的小河

        相关阅读

        • 谍影重重(小小说)
        • 匆匆而过
        • 母子葬
        • 等不来的“孝顺”
        • 孽缘迷途之十
        • 孽缘迷途之九
        • 孽缘迷途之八
        • 孽缘迷途之七
        • 孽缘迷途之六
        • 孽缘迷途之五
        • 孽缘迷途之四
        • 孽缘迷途之三
        • 孽缘迷途之(一)
        • 孽缘迷途之二
        • 开放的天空(小小说)

        Copyright @ zuojiaku.com ©2005-2024

        当前时区GMT + 8 现在时间是 01-27 23:43 京ICP备15038406号-5

        • 清除Cookies
        • 网站地图
        • 联系我们