document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
用户名:
<\/span>"); document.writeln("
验证码:
<\/span>"); document.writeln(" <\/div>"); document.writeln("
<\/textarea>"); document.writeln(" <div class=\"pcomuser\">"); document.writeln(" <input name=\"\" type=\"submit\" value=\"提交评论\" class=\"form_submit\">"); document.writeln(" <\/div>"); document.writeln(" <\/form>"); document.writeln(" <\/div>"); document.writeln(" <\/div>"); document.writeln("<\/div>") <!--评论支持,反对--> $(function(){ $("a.dig").click(function(){ var datadig = $(this).attr("data-dig"); var dataType = $(this).attr("data-Type"); $.post("/plus/Comment/fy.Comment.asp",{Action:"Support",Type:dataType,classid:"0",id:datadig,time:Math.random()}, function(data){ <!-- alert("Data Loaded: " + data);--> var DigArr=data.split('|'); switch (DigArr[0]) { case "err": alert('您已经表过态了'); break; break; default: if (dataType==1) { $("#commentyes"+datadig+"").html("<a id=\"commentyes"+datadig+"\" class=\"dig\" data-dig=\""+datadig+"\">已支持<var>["+DigArr[1]+"]</var></a>"); } else { $("#commentno"+datadig+"").html("<a id=\"commentno"+datadig+"\" class=\"cia\" data-dig=\""+datadig+"\">已反对<var>["+DigArr[1]+"]</var></a>"); } } }); }); }); <!--评论回复--> $(function(){ var $fastrehtml = $("#fastrehide").html(); $("#replybox").find("a.fasta").click(function(){ $("#replybox").find("div.fastre").remove(); var hfid = $(this).attr("data-hfid"); var $pc = $(this).parent("cite"); if($pc.next("div.fastre").length==0){ $pc.after($fastrehtml); $("#hfid").val(hfid); } }); });