functionurlsearch(item){
varsvalue=.match(neregexp("[\?\&]"+item+"=([^\&]*)(\&?)","i"));
returnsvalue?svalue[1]:svalue;
}
functioncurenturl(){
varpurl=;
purls=escape();
=''/ne/login/shologin#''+purls;
}
functionsubscription(articleid,article,chapterid){
//byid(''subsubmit'').disabled=disabled;
$(''#onesubmit'').attr(''disabled'',''disabled'');
$(''#onesubmit'').attr(''ss'',''but_dingyue2'');
varautomaticsubscriptionvalue=$("#automaticsubscription_dan").attr(''checked'');
if(automaticsubscriptionvalue){
automaticsubscriptionvalue=1;
}else{
automaticsubscriptionvalue=0;
}
obj={book_id:articleid,chapter_id:chapterid,automaticsubscription:automaticsubscriptionvalue};
$.post("/ne/ks_user/subscription/onesubscription",obj,function(data){
varmsg='''';
msg+='''';
msg+=''您已成功订阅:'';
msg+='''';
msg+='''';
msg+=''
作品名称一念成尊,痴傻娘亲不要怕
'';
msg+=''
曙光降临!
'';
msg+='''';
msg+=''3秒后自动跳转......'';
msg+='''';
msg+='''';
msg+='''';
varjson=data,
request=.de,
error=.;
if(request==0){
firminfo({btn:'''',icocls:'''',msgcls:''confirm'',message:msg,titlebar:false,useslide:true,autoclose:false,idth:340,height:160});
settimeout(''loadvip()'',2000);
}else{
alert(error);
}
},"json");
}
functionloadvip(){
();
.href="?aid=167943&cid=4517631";
}
functionshorequest(){
$(''#subsubmit'').attr(''disabled'',''disabled'');
$(''#subsubmit'').attr(''ss'',''but_dingyue2'');
}
functionchangevalid(o){
varimgsrc=''/ne/login/vdimgck?rnd=''+dom();
("src",imgsrc)
}
//post-submitcallback
functionshoresponse(xml){
varjson=eval(''(''+xml+'')'');
request=.de;
error=.;
if(request==0){
url="/artinfo/readvip?aid=167943&cid="+.data.frist_chapter_id;
varmsg='''';
msg+='''';
msg+='''';
msg+=''订阅成功'';
msg+='''';
msg+='''';
msg+='''';
msg+=''您已成功订阅《一念成尊,痴傻娘亲不要怕》''+.+''个章节'';
msg+='''';
msg+='''';
msg+=''
查看订阅作品
'';
msg+=''3秒后自动跳转......'';
msg+='''';
msg+='''';
msg+='''';
firminfo({btn:'''',icocls:'''',msgcls:''confirm'',message:msg,titlebar:false,useslide:true,autoclose:false,idth:300,height:130});
settimeout(''loadread()'',3000);
}else{
if(request==''20106''){
.href="/ne/login/shologin#?book_id=167943&chapter_id=4517631";
return;
}
alert(error);
}
}
functionshoresponseall(json){
request=.de;
error=.;
if(request==0){
url="/artinfo/readvip?aid=167943&cid=4517631";
varmsg='''';
msg+='''';
msg+='''';
msg+=''订阅成功'';
msg+='''';
msg+='''';
msg+='''';
msg+=''您已成功订阅《一念成尊,痴傻娘亲不要怕》'';
msg+='''';
msg+='''';
msg+=''
查看订阅作品
'';
msg+=''3秒后自动跳转......'';
msg+='''';
msg+='''';
msg+='''';
firminfo({btn:'''',icocls:'''',msgcls:''confirm'',message:msg,titlebar:false,useslide:true,autoclose:false,idth:300,height:130});
settimeout(''loadread()'',3000);
}else{
if(request==''20106''){
.href="/ne/login/shologin#?book_id=167943&chapter_id=4517631";
return;
}
alert(error);
}
}
functionloadread(){
();
.href=url
}
ydon=function(event){
event=?:event;
try{
if(ycode==13){
if($(''#login'').length>0){
ycode=0;
golocallogin();
}
if($(''#zc_button'').length>0){
ycode=0;
moblielocalregister();
}
}
}catch(e){
}
}
$(function(){
changevalid($(''#captchaimg_login''));//加验证码
//changevalid($(''#captchaimg_reg''));
//头部更多显示
$(''#gengduo'').mouseover(function(){
$("#gengduo").attr(''ss'',''sp_morem2'');
$("#nav_s1").sho();
});
$(''#gengduo'').mouseout(function(){
$("#gengduo").attr(''ss'',''sp_more'');
$("#nav_s1").hide();
});
//头部更多显示end
//头部我的书架
$(''#jilu'').mouseover(function(){
$("#jilu").attr(''ss'',''sp_morem2'');
$("#nav_s4").sho();
});
$(''#jilu'').mouseout(function(){
$("#jilu").attr(''ss'',''sp_more'');
$("#nav_s4").hide();
});
//头部我的书架end
//头部账号(邮箱)
$(''#name'').mouseover(function(){
$("#name").attr(''ss'',''sp_morem2'');
$("#nav_s3").sho();
});
$(''#name'').mouseout(function(){
$("#name").attr(''ss'',''sp_more'');
$("#nav_s3").hide();
});
//头部账号(邮箱)end
//头部消息
$(''#xiaoxi'').mouseover(function(){
$("#xiaoxi").attr(''ss'',''sp_morem2'');
$("#nav_s2").sho();
});
$(''#xiaoxi'').mouseout(function(){
$("#xiaoxi").attr(''ss'',''sp_more'');
$("#nav_s2").hide();
});
//头部消息end
varoptions={
beforesubmit:shorequest,
sess:shoresponse//post-submit
};
$(''#form1'').ajaxform(options);
//返回顶部
$(''#span_top'').mouseover(function(){
$("#span_top").attr(''ss'',''span_top2'');
});
$(''#span_top'').mouseout(function(){
$("#span_top").attr(''ss'',''span_top'');
});
$(''#span_bottom'').mouseover(function(){
$("#span_bottom").attr(''ss'',''span_bottom2'');
});
$(''#span_bottom'').mouseout(function(){
$("#span_bottom").attr(''ss'',''span_bottom'');
});
$(''#span_top'').click(function(){
$("html,body").animate({scrolltop:0},120);
});
$(''#span_bottom'').click(function(){
broser=$(document).height();
$("html,body").animate({scrolltop:broser},120);
});
//返回顶部end
});
functionsettablogin(m,n){
vartli=byid("menu"+m).getelementsbytagname("li");/*获取选项卡的li对象*/
varmli=byid("main"+m).getelementsbytagname("dl");/*获取主显示区域对象*/
for(i=0;i'';
if(_subscription!=1){
html+='''';
goldsum=goldsum+parseint(_price);
chapter_count++;
}else{
html+='''';
}
html+=''''+n.book_name+'''';
subhtml='''';
if(!=''''){
subhtml=''第''++''章'';
}
html+=''''+subhtml+_name+'''';
html+=''''+ze+'''';
html+=''''+_price+'''';
subhtml='''';
if(_subscription==1){
subhtml=''已订阅'';
}else{
subhtml=''未订阅'';
}
html+=''''+subhtml+'''';
html+='''';
$("#chapter_more_tabletrst").after(html);
}
});
if(countparseint($(''#noegold'').html())){
shorequest();
}
}
}
});
$("bs_list").css({height:"auto"});
});
$("#subs_expand_all").live("click",function(){
loading();
$("#subs_expand_all").die("click");
book_id=$(this).attr(''data-book_id'');
uid=$(this).attr(''data-uid'');
$.ajax({
type:"get",
url:''/ne/ks_user/subscription/getchapterlistall'',
data:''book_id=''+book_id,
datatype:"json",
sess:function(msg){
chapter_count=0;
goldsum=0;
();
if(.de!=0)
{
alert(.);
returnfalse;
}else{
varhtml='''',
data_len=.;
//$.each(,function(i,item){
$("#chapter_more_tabletr:gt(0)").remove();
$.each(.data,function(i,n){
//$("#chapter_more_table").html(''选择书名章节名字数需要看书币订阅状态'');
html='''';
if(_subscription!=1){
html+='''';
goldsum=goldsum+parseint(_price);
chapter_count++;
}else{
html+='''';
}
html+=''''+n.book_name+'''';
subhtml='''';
if(!=''''){
subhtml=''第''++''章'';
}
html+=''''+subhtml+_name+'''';
html+=''''+ze+'''';
html+=''''+_price+'''';
subhtml='''';
if(_subscription==1){
subhtml=''已订阅'';
}else{
subhtml=''未订阅'';
}
html+=''''+subhtml+'''';
html+='''';
$("#chapter_more_tabletrst").after(html);
});
$(''#chaptersum'').html(chapter_count);
$(''#goldsum'').html(goldsum);
$(''#sumegold'').html(goldsum);
if(parseint($(''#goldsum'').html())>parseint($(''#noegold'').html())){
shorequest();
}
$(''#subs_expand_all'').html(''收起章节列表'');
//$(''bs_expand'').css(''color'',''c'');
$(''bs_expand'').css(''color'',''c'');
$("bs_expand").die("click");
$("#subs_expand_all").die("click");
$(''#subs_expand_all'').live(''click'',function(){
hiddenchapterall();
});
//$(''#subs_expand_all'').css(''color'',''c'');
//去掉展开更多章节的提示
page=9999;
}
}
});
$("bs_list").css({height:"auto"});
});
})
//隐藏章节
functionhiddenchapterall(){
loading();
settimeout(''hiddenchapteralltimeout()'',1000);
//hiddenchapteralltimeout();
}
functionhiddenchapteralltimeout(){
$("#chapter_more_tabletr:gt(4)").hide();
$("#chapter_more_tabletr:gt(4):checkbox").attr(''checked'',false);
/*
$("#chapter_more_tabletr:gt(0)").each(function(i,n){
if(i>3){
$(this).hide();
}
});
*/
goldsum=0;
chapter_count=0;
$("#chapter_more_tabletr:visible").each(function(i,n){
if($(this).children().children(":checkbox").attr(''disabled'')==false&&$(this).children().children(":checkbox").attr(''checked'')&&i!=0){
goldsum=goldsum+parseint($(this).children(''td:eq(4)'').children().html());
chapter_count++;
}
});
$(''#chaptersum'').html(chapter_count);
$(''#goldsum'').html(goldsum);
$(''#sumegold'').html(goldsum);
$("#subs_expand_all").die("click");
$(''#subs_expand_all'').html(''展开全部章节'');
$(''#subs_expand_all'').live(''click'',function(){
shochapterall();
});
$("bs_expand").die("click");
$(''bs_expand'').css(''color'',''#0099ff'');
$(''bs_expand'').live(''click'',function(){
shochaptermore();
});
if(parseint($(''#goldsum'').html())3){
if(k>clickmpre){
clickmpre=9;
count_num++;
returnfalse;
}
if($(this).is(":hidden")){
$(this).sho();
k++;
}
}
if($(this).children().children(":checkbox").attr(''disabled'')==false){
goldsum=goldsum+parseint($(this).children(''td:eq(4)'').children().html());
$(this).children().children(":checkbox").attr(''checked'',true);
chapter_count++;
}
});
$(''#chaptersum'').html(chapter_count);
$(''#goldsum'').html(goldsum);
$(''#sumegold'').html(goldsum);
if(parseint($(''#goldsum'').html())>parseint($(''#noegold'').html())){
shorequest();
}
if((count_num==1&&k>6)||(count_num>1&&k3){
$(this).hide();
}
});
*/
}
//显示章节
functionshochapterall(){
loading();
settimeout(''shochapteralltimeout()'',1000);
}
functionshochapteralltimeout(){
$("#chapter_more_tabletr:gt(4)").sho();
chapter_count=parseint($(''#chaptersum'').html());
goldsum=parseint($(''#goldsum'').html());
$("#chapter_more_tabletr:visible").each(function(i,n){
if($(this).children().children(":checkbox").attr(''disabled'')==false&&$(this).children().children(":checkbox").attr(''checked'')==false){
$(this).children().children(":checkbox").attr(''checked'',true);
goldsum=goldsum+parseint($(this).children(''td:eq(4)'').children().html());
chapter_count++;
}
});
/*
$("#chapter_more_tabletr:gt(0)").each(function(i,n){
if(i>3){
$(this).sho();
}
});
*/
$(''#chaptersum'').html(chapter_count);
$(''#goldsum'').html(goldsum);
$(''#sumegold'').html(goldsum);
$("#subs_expand_all").die("click");
$(''#subs_expand_all'').html(''收起章节列表'');
$(''#subs_expand_all'').live(''click'',function(){
hiddenchapterall();
});
$(''bs_expand'').css(''color'',''c'');
$("bs_expand").die("click");
if(parseint($(''#goldsum'').html())>parseint($(''#noegold'').html())){
shorequest();
}
();
}
functionloading(){
varmsg='''';
msg+='''';
msg+=''请稍等...'';
msg+='''';
msg+=''请稍等......'';
msg+='''';
msg+='''';
msg+='''';
firminfo({btn:'''',icocls:'''',msgcls:''confirm'',message:msg,titlebar:false,useslide:true,autoclose:false,idth:340,height:160});
}
罗铭知道自己败了,败给自己的自信上。当他看到天水城方向升腾起的狼烟,不用多想,他就知道天水城被攻克了。
只是让他绝望的是,七星城中还有靖国军在反抗。
也就是说,从头到尾,他们都未曾成功占领过七星城。
“将军,是天水城方向。看来是天水城遭遇攻击了,我们必须现在驰援天水城。”
罗铭在发愣的时候,徐平却是没有愣神。他们在七星城中投入了大概将近两万大军,虽然还没有平定七星城。但是他们现在手中还有一万余人,现在回救天水城应该还来得及。
“没希望了,那狼烟是他们信号。天水城已破,我们回不去了。”
罗铭黯然的说道,他百战百胜的战绩最终还是被打破了。攻城将军,到底是老了。
“那
......
更多精彩内容请充值