- 首页
- 新闻
-
作家
- 京
- 津
- 沪
- 渝
- 冀
- 豫
- 滇
- 辽
- 黑
- 湘
- 皖
- 鲁
- 新
- 苏
- 浙
- 赣
- 鄂
- 桂
- 甘
- 晋
- 蒙
- 陕
- 吉
- 闽
- 黔
- 粤
- 青
- 藏
-
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;i
127){ 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:60542,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个字符 "+"
- "+"
- 举报原因:
- \
\
"+"
中国作家库 >>所属分类 >>

草人札记·F教篇-15则(0条评论)
返回词条