});
$('.select').parent().each(function(){
$(this).mouseout(function(){
$(this).children(".select").hide();
});
});
$('#background').parent().parent().children('.select').children('p').each(function(){
$(this).click(function(){
$('#background').val($(this).html());
$('#background').parent().parent().children('.select').hide();
$(".ydleft").removeClass($('#background2').val());
$("body").removeClass($('#background2').val());
$("body").attr('style','');
$(".ydleft").attr('style','');
$('#background2').val($(this).attr('class'));
$(".ydleft").addClass($(this).attr('class'));
$("body").addClass($(this).attr('class'));
});
});
//背景色改变end
//文字大小
$('#fontSize').click(function(){
varselected=$('#fontSize').parent().parent().children(".select");
();
});
$('#fontSize1').click(function(){
varselected=$('#fontSize1').parent().parent().children(".select");
();
});
$('#fontSize').parent().parent().children('.select').children('p').each(function(){
$(this).click(function(){
$('#fontSize').val($(this).html());
$('#fontSize').parent().parent().children('.select').hide();
$(".yd_text2").removeClass($('#fontSize2').val());
$('#fontSize2').val($(this).attr('class'));
$(".yd_text2").addClass($(this).attr('class'));
});
});
//文字大小end
//字体
$('#fontFamily').click(function(){
varselected=$('#fontFamily').parent().parent().children(".select");
();
});
$('#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_'+21616,'21616|极品戒指|753684|第一百零四章记者夏晶晶|'+timestamp,{path:'/',expires:date});
articleArr=$.cookie('article');
if(articleArr==null){
$.cookie('article','21616|极品戒指|753684|第一百零四章记者夏晶晶|0|'+timestamp+'@',{path:'/',expires:date})
}else{
start=dexOf('21616');
if(start==-1){
$.cookie('article','21616|极品戒指|753684|第一百零四章记者夏晶晶|0|'+timestamp+'@'+articleArr,{path:'/',expires:date});
}else{
end=dexOf('@',start);
end=end+1;
articleSubstr=bstr(start,end);
articleArr=(articleSubstr,'');
$.cookie('article','21616|极品戒指|753684|第一百零四章记者夏晶晶|0|'+timestamp+'@'+articleArr,{path:'/',expires:date});
}
}
scroeFuceng();
updateSrc();
isBookrackJs(21616,'极品戒指');
/**搜索相关*/
$("#searchText").jSuggest({///aaa对应需要提示的文本框的id
minchar:1,//最少字符开始提示
opacity:,//提示框的透明度
delay:1,//加载提示的延迟时间
本章未完,点击下一页继续阅读。