军师王者荣耀救我百度版如何下载

军师救我_军师救我下载_电脑版_琵琶网
军师救我CG视频 新手必备攻略分享
新手须知:';
hfHtml+='';
hfHtml+='回复';
hfHtml+='';
hfHtml+='';
var p_reply2=$(this).parent().parent().nextAll('.p_reply4').eq(0);
var html=$(p_reply2).html();
if(html==''){
$(p_reply2).html(hfHtml);
$('.emotion2').qqFace({
id : 'facebox2',
assign:'saytext2',
path:qqFacePath //表情存放的路径
});
$("#hfid").val(hfid);
}else{
$(p_reply2).html('');
}
})
$(".pinglunSubmit2").live('click',function(){
if(!checkClickCf())return false;
var content=$("#saytext2").val();
if(content==''){
alert('评论内容不能为空 !!!');
return false;
}
var p_id=$("#hfid").val();
var parmas={
'content':content,
'is_old':lvIsOld,
'a_id':lvGameId,
'p_id':p_id,
'u_logo':lvULogo
}
$.post('/ajax/pinglun/pinglunadd2',parmas,function(data){
if(data){
$('.p_reply4').html('');
if(data.nameType==1){
alert('发送失败,内容含有敏感词语!!!');
return false;
}
if(data.nameType==2){
alert('你的评论已提交,等待客服审核!!!');
return false;
}
if (data.nameType == 3) {
var url = window.location.href;
alert('请先登录后,再进行操作!');
window.open('http://passport.pipaw.com/user/login?url='+url);
return false;
}
if (data.nameType == 4) {
var url = window.location.href;
alert('为响应国家互联网全面实名制的号召,用户需要实名认证后方能使用网站功能。请前往个人中心填写实名验证资料!');
window.open('http://passport.pipaw.com/user/relname?url='+url);
return false;
}
if(data.html){
var divId="pinglunid"+data.p_id;
var obj=$('.'+divId);
if(obj.length>0){
$(obj).html(data.html);
}else{
data.html=''+data.html+'';
$(".p_ptpl").prepend(data.html);
getTotalco();
}
var obj=$('.'+divId).eq(0);
if(obj.length>0){
var t=$(obj).offset().top
var d=$(obj).height();
var m=$(window).height();
$(window).scrollTop(t+d-m/2);
}
}
}
},'json');
})
//加载更多
$(".ajaxgetmorepinglun").click(function(){
var page=$(this).attr('rel');
if(page!='end'){
var parmas={
'is_old':lvIsOld,
'a_id':lvGameId,
'page':page
}
$.post('/ajax/pinglun/ajaxgetmorepinglun',parmas,function(data){
var html='';
if(data){
$(".p_ptpl").append(data);
page=page*1+1;
html='加载更多';
}else{
page='end';
html='已到尾部';
}
$(".ajaxgetmorepinglun").attr('rel',page);
$(".ajaxgetmorepinglun").html(html);
})
}
})
function checkClickCf(){
var n = Date.parse(new Date());
var g=1000*10;
if(clicktime'+data.html+'';
$(".p_ptpl").prepend(data.html);
getTotalco();
var obj=$('.'+divId).eq(0);
if(obj.length>0){
var t=$(obj).offset().top
//var d=$(obj).height();
var m=$(window).height();
$(window).scrollTop(t-m/2);
}
}
}
},'json');
})
//计算字数
function countTextareaLen(obj){
var str=$(obj).val();
var countTextareaLenHtml=$(obj).parent().find('.countTextareaLen').eq(0);
$(countTextareaLenHtml).html(textareaMaxLen-str.length);
}
countTextareaLen($("#saytext1"));
$("#saytext1").live('keyup',function(){
countTextareaLen(this);
})
$("#saytext2").live('keyup',function(){
countTextareaLen(this);
})
$("#facebox1").live('click',function(){
var obj=$("#saytext1");
countTextareaLen(obj);
});
$("#facebox2").live('click',function(){
var obj=$("#saytext2");
countTextareaLen(obj);
});
//查看隐藏回复 置顶
$(".pinglunzkfh").live('click',function(){
var rel=$(this).attr('rel');
if(rel){
var obj=$(this).closest(".overhead")
$.post('/ajax/pinglun/pinglunzkfh',{'id':rel},function(msg){
if(msg){
$(obj).html(msg);
}
})
}
})
//查看隐藏回复普通
$(".pinglunzkfh2").live('click',function(){
var rel=$(this).attr('rel');
if(rel){
var obj=$(this).closest(".overhead")
$.post('/ajax/pinglun/pinglunzkfh2',{'id':rel},function(msg){
if(msg){
$(obj).html(msg);
}
})
}
})
function getTotalco(){
var n=$("#_totalpl").html();
var n=n*1+1;
$("#_totalpl").html(n);
}
});
游戏评论
(已有1条评论)加载更多

我要回帖

更多关于 军师王者荣耀 的文章

 

随机推荐