第四二二话 骨粉(2/2)
;
});
$('#fontfamily1').click(function {
var selected = $('#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").removecss($('#fontfamily2').val);
$('#fontfamily2').val($(this).attr('css')) ;
$(".yd_text2").addcss($(this).attr('css'));
});
});
//字体 end
//文字颜色改变
$('#fontcolor').click(function {
var selected = $('#fontcolor').parent.parent.children(".select") ;
;
});
$('#fontcolor1').click(function {
var selected = $('#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").removecss($('#fontcolor2').val);
$('#fontcolor2').val($(this).attr('css')) ;
$(".yd_text2").addcss($(this).attr('css'));
});
});
//文字颜色改变 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').removecss($.cookie('background')) ;
$('body').removecss($('#background2').val) ;
$('.ydleft').removecss($('#background2').val) ;
$('.ydleft').removecss($.cookie('background')) ;
$('body').attr('style' , 'background:#e5f2f7') ;
$('.ydleft').attr('style' , 'background:#f2f8fb') ;
$('.yd_text2').removecss($('#fontsize2').val) ;
$('.yd_text2').removecss($.cookie('fontsize')) ;
$('.yd_text2').removecss($('#fontcolor2').val)
$('.yd_text2').removecss($.cookie('fontcolor')) ;
$('.yd_text2').removecss($('#fontfamily2').val) ;
$('.yd_text2').removecss($.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','#') ;
$('#fontcolor').val('字体色彩') ;
$('#fontcolor2').val('#ffffff') ;
$('#fontfamily').val('字体') ;
$('#fontfamily2').val('fa_song') ;
$('#fontsize').val('字体大小') ;
$('#fontsize2').val('12px') ;
}) ;
//保存按钮 , 恢复按钮 end
//alert($('.yd_text2').height) ;
var date = ne date;
var timestamp = (ne date);
( + (30 * 24 * 60 * 60 * 1000));
$.cookie('aid_' + 28942 , '28942|入殓师|1412056|第四二二话 骨粉|' + timestamp, {path: '/',expires: date});
articlearr = $.cookie('article');
if (articlearr == null) {
$.cookie('article', '28942|入殓师|1412056|第四二二话 骨粉|0|' + timestamp + '@', {path: '/',expires: date})
} else {
start = dexof('28942');
if (start == -1) {
$.cookie('article', '28942|入殓师|1412056|第四二二话 骨粉|0|' + timestamp + '@' + articlearr, { path: '/',expires: date});
} else {
end = dexof('@', start);
end = end + 1;
articlesubstr = bstr(start, end);
articlearr = (articlesubstr, '');
$.cookie('article', '28942|入殓师|1412056|第四二二话 骨粉|0|' + timestamp + '@' + articlearr, {path: '/', expires: date });
}
}
scroefuceng;
updatesrc;
isbookrackjs(28942,'入殓师');
/**搜索相关*/
$("#searchtext").jsuggest({///aaa对应需要提示的文本框的id
minchar: 1,//最少字符开始提示
opacity: 1.0, //提示框的透明度
dey: 1, //加载提示的延迟时间
loadingimg: "",
loadingtext: 'checking...',
url: "/searchlist/getsearch?type=1&table=article_article&order=find_order", ///提示的内容
type: "get",
data: "keys",?searchquery=文本框中的值
autochange: true
});
/**搜索相关--end*/
var scrooltopnum=0;
var scroolheightnum=0;
var added=0;
var opened=0;
$.getscript("?v1.0",function{
$(articlelist).each(function {
var chapterid=parseint(d);
var chaptername=;
var isvip=parseint;
var size=parseint(ze);
var stupdate=parseint(date);
var chaptertype=parseint(ype);
var subchapter=b1;
var cssname="";
if(chaptertype==1){
scroolheightnum+=1;
$("#scroolheightnum").val(scroolheightnum);
if(chapterid==1412056){
added=1;
$("#added").val("1");
}
if(added==0){
scrooltopnum+=1;
$("#scrooltopnum").val(scrooltopnum);
}
cssname="css=\"t\"";
var createli=""+chaptername+"";
$("#adlayer").find("ul").append(createli);
if(typeof(subchapter)!='undefined'){
for(var ji in subchapter){
scroolheightnum+=1;
$("#scroolheightnum").val(scroolheightnum);
var chapterid=parseint(subchapter[ji].chapterid);
var chaptername=subchapter[ji].chaptername;
var isvip=parseint(subchapter[ji].isvip);
var size=parseint(subchapter[ji].size);
var stupdate=parseint(subchapter[ji].stupdate);
var chaptertype=parseint(subchapter[ji].chaptertype);
var acss="";
if(chapterid==1412056){
added=1;
$("#added").val("1");
acss=" css=\"hover\"";
}
if(added==0){
scrooltopnum+=1;
$("#scrooltopnum").val(scrooltopnum);
}
if(isvip==1){
var createli=""+chaptername+"";
}else{
var createli=""+chaptername+"";
}
$("#adlayer").find("ul").append(createli);
}
}
}else{
scroolheightnum+=1;
$("#scroolheightnum").val(scroolheightnum);
var acss="";
if(chapterid==1412056){
added=1;
$("#added").val("1");
acss=" css=\"hover\"";
}
if(added==0){
scrooltopnum+=1;
$("#scrooltopnum").val(scrooltopnum);
}
if(isvip==1){
var createli=""+chaptername+"";
}else{
var createli=""+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));
});
var rid = -1 ;
document.domain = "" ;
function updatesrc{
var pro = .search;
arg = ('&') ;
var url = '' ;
if(pro==''){
url = "/art/update?aid=28942&cid=1412056" ;
}else{
url = "/art/update"+pro+"&aid=28942&cid=1412056" ;
}
$.getscript(url) ;
}
var autoscroll = (function {
var top;
var timer;
var actualtop;
var speed;
function starttimer {
timer = setinterval(scroll, 40);
try {
if {
.empty;
} else {
var selection = ;
;
}
} catch(e) {}
}
function scroll {
top = document. || document.;
speed = parseint($('#screen').val) || 1;
if(speed!=null){
top = top + speed;
}
(0, top);
actualtop = document. || document.;
if (top != actualtop) {
stoptimer;
}
}
function stoptimer {
clearinterval(timer);
}
return {
start: starttimer,
stop: stoptimer
};
});
jquery(document).dblclick;
jquery(document).mousedon;
});