第56章 谁都保不住你 (第2/2页)
();
});
$('#fontFamily1').click(function(){
varselected=$('#fontFamily1').parent().parent().children(".select");
();
});
$('#fontFamily').parent().parent().children('.select').children('p').each(function(){
$(this).click(function(){
$('#fontFamily').val($(this).html());
$('#fontFamily').parent().parent().children('.select').hide();
$(".yd_text2").removeClass($('#fontFamily2').val());
$('#fontFamily2').val($(this).attr('class'));
$(".yd_text2").addClass($(this).attr('class'));
});
});
//字体end
//文字颜色改变
$('#fontColor').click(function(){
varselected=$('#fontColor').parent().parent().children(".select");
();
});
$('#fontColor1').click(function(){
varselected=$('#fontColor1').parent().parent().children(".select");
();
});
$('#fontColor').parent().parent().children('.select').children('p').each(function(){
$(this).click(function(){
$('#fontColor').val($(this).html());
$('#fontColor').parent().parent().children('.select').hide();
$(".yd_text2").removeClass($('#fontColor2').val());
$('#fontColor2').val($(this).attr('class'));
$(".yd_text2").addClass($(this).attr('class'));
});
});
//文字颜色改变end
//保存按钮,恢复按钮
$("#saveButton").click(function(){
$.cookie('screen',$('#screen').val(),{path:'/',expires:date});
$.cookie('background',$('#background2').val(),{path:'/',expires:date});
$.cookie('fontSize',$('#fontSize2').val(),{path:'/',expires:date});
$.cookie('fontColor',$('#fontColor2').val(),{path:'/',expires:date});
$.cookie('fontFamily',$('#fontFamily2').val(),{path:'/',expires:date});
alert('保存成功');
});
$("#recoveryButton").click(function(){
$('body').removeClass($.cookie('background'));
$('body').removeClass($('#background2').val());
$('.ydleft').removeClass($('#background2').val());
$('.ydleft').removeClass($.cookie('background'));
$('body').attr('style','background:#E5F2F7');
$('.ydleft').attr('style','background:#F2F8FB');
$('.yd_text2').removeClass($('#fontSize2').val());
$('.yd_text2').removeClass($.cookie('fontSize'));
$('.yd_text2').removeClass($('#fontColor2').val())
$('.yd_text2').removeClass($.cookie('fontColor'));
$('.yd_text2').removeClass($('#fontFamily2').val());
$('.yd_text2').removeClass($.cookie('fontFamily'));
$.cookie('screen','',{path:'/',expires:date});
$.cookie('background','',{path:'/',expires:date});
$.cookie('fontSize','',{path:'/',expires:date});
$.cookie('fontColor','',{path:'/',expires:date});
$.cookie('fontFamily','',{path:'/',expires:date});
$('#screen').val('滚屏');
$('#background').val('阅读底色');
$('#background2').attr('value','#CCCCCC');
$('#fontColor').val('字体色彩');
$('#fontColor2').val('#FFFFFF');
$('#fontFamily').val('字体');
$('#fontFamily2').val('fa_song');
$('#fontSize').val('字体大小');
$('#fontSize2').val('12px');
});
//保存按钮,恢复按钮end
//alert($('.yd_text2').height());
vardate=neDate();
vartimestamp=(neDate());
(()+(30*24*60*60*1000));
$.cookie('aid_'+28192,'28192|少年魔神|904742|第56章谁都保不住你|'+timestamp,{path:'/',expires:date});
articleArr=$.cookie('article');
if(articleArr==null){
$.cookie('article','28192|少年魔神|904742|第56章谁都保不住你|0|'+timestamp+'@',{path:'/',expires:date})
}else{
start=dexOf('28192');
if(start==-1){
$.cookie('article','28192|少年魔神|904742|第56章谁都保不住你|0|'+timestamp+'@'+articleArr,{path:'/',expires:date});
}else{
end=dexOf('@',start);
end=end+1;
articleSubstr=bstr(start,end);
articleArr=(articleSubstr,'');
$.cookie('article','28192|少年魔神|904742|第56章谁都保不住你|0|'+timestamp+'@'+articleArr,{path:'/',expires:date});
}
}
scroeFuceng();
updateSrc();
isBookrackJs(28192,'少年魔神');
/**搜索相关*/
$("#searchText").jSuggest({///aaa对应需要提示的文本框的id
minchar:1,//最少字符开始提示
opacity:1.0,//提示框的透明度
delay:1,//加载提示的延迟时间
loadingImg:"",
loadingText:'checking...',
url:"/searchList/getSearchInfo?type=1&table=article_article&order=find_order",///提示的内容
type:"GET",
data:"keys",?searchquery=文本框中的值
autoChange:true
});
/**搜索相关--end*/
varscroolTopNum=0;
varscroolHeightNum=0;
varadded=0;
varopened=0;
$.getScript("?v1.0",function(){
$(articleList).each(function(){
varchapterid=parseInt(d);
varchaptername=;
varisvip=parseInt();
varsize=parseInt(ze);
varlastupdate=parseInt(date);
varchaptertype=parseInt(ype);
varsubChapter=b1;
varclassname="";
if(chaptertype==1){
scroolHeightNum+=1;
$("#scroolHeightNum").val(scroolHeightNum);
if(chapterid==904742){
added=1;
$("#added").val("1");
}
if(added==0){
scroolTopNum+=1;
$("#scroolTopNum").val(scroolTopNum);
}
classname="class=\"t\"";
varcreateli=""+chaptername+"";
$("#AdLayer").find("ul").append(createli);
if(typeof(subChapter)!='undefined'){
for(varjiinsubChapter){
scroolHeightNum+=1;
$("#scroolHeightNum").val(scroolHeightNum);
varchapterid=parseInt(subChapter[ji].chapterid);
varchaptername=subChapter[ji].chaptername;
varisvip=parseInt(subChapter[ji].isvip);
varsize=parseInt(subChapter[ji].size);
varlastupdate=parseInt(subChapter[ji].lastupdate);
varchaptertype=parseInt(subChapter[ji].chaptertype);
varaclass="";
if(chapterid==904742){
added=1;
$("#added").val("1");
aclass="class=\"hover\"";
}
if(added==0){
scroolTopNum+=1;
$("#scroolTopNum").val(scroolTopNum);
}
if(isvip==1){
varcreateli=""+chaptername+"";
}else{
varcreateli=""+chaptername+"";
}
$("#AdLayer").find("ul").append(createli);
}
}
}else{
scroolHeightNum+=1;
$("#scroolHeightNum").val(scroolHeightNum);
varaclass="";
if(chapterid==904742){
added=1;
$("#added").val("1");
aclass="class=\"hover\"";
}
if(added==0){
scroolTopNum+=1;
$("#scroolTopNum").val(scroolTopNum);
}
if(isvip==1){
varcreateli=""+chaptername+"";
}else{
varcreateli=""+chaptername+"";
}
$("#AdLayer").find("ul").append(createli);
}
//alert(d+":::"+dinal);
});
});
$(".mulu_box_fc").children("ul").height(parseFloat($(indo).height()));
$(indo).resize(function(){
$(".mulu_box_fc").children("ul").height(parseFloat($(indo).height()));
});
varrid=-1;
document.domain="";
functionupdateSrc(){
varpro=.search;
arg=('&');
varurl='';
if(pro==''){
url="/artinfo/updateInfo?aid=28192&cid=904742";
}else{
url="/artinfo/updateInfo"+pro+"&aid=28192&cid=904742";
}
$.getScript(url);
}
varautoScroll=(function(){
vartop;
vartimer;
varactualTop;
varspeed;
functionstartTimer(){
timer=setInterval(scroll,40);
try{
if(){
.empty();
}else{
varselection=();
();
}
}catch(e){}
}
functionscroll(){
top=document.||document.;
speed=parseInt($('#screen').val())||1;
if(speed!=null){
top=top+speed;
}
(0,top);
actualTop=document.||document.;
if(top!=actualTop){
stopTimer();
}
}
functionstopTimer(){
clearInterval(timer);
}
return{
start:startTimer,
stop:stopTimer
};
})();
jQuery(document).dblclick();
jQuery(document).mousedon();
});