卷十七 (第2/2页)
$(".yd_text2").removeClass($('#fontSize2').val());
$('#fontSize2').val($(this).attr('class')) ;
$(".yd_text2").addClass($(this).attr('class'));
});
});
//文字大小 end
//字体
$('#fontFamily').click(function (){
var selected = $('#fontFamily').parent().parent().children(".select") ;
() ;
});
$('#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").removeClass($('#fontFamily2').val());
$('#fontFamily2').val($(this).attr('class')) ;
$(".yd_text2").addClass($(this).attr('class'));
});
});
//字体 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").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()) ;
var date = ne Date();
var timestamp = (ne Date());
(() + (30 * 24 * 60 * 60 * 1000));
$.cookie('aid_' + 2586 , '2586|双龙侦探社|342742|卷十七|' + timestamp, {path: '/',expires: date});
articleArr = $.cookie('article');
if (articleArr == null) {
$.cookie('article', '2586|双龙侦探社|342742|卷十七|0|' + timestamp + '@', {path: '/',expires: date})
} else {
start = dexOf('2586');
if (start == -1) {
$.cookie('article', '2586|双龙侦探社|342742|卷十七|0|' + timestamp + '@' + articleArr, { path: '/',expires: date});
} else {
end = dexOf('@', start);
end = end + 1;
articleSubstr = bstr(start, end);
articleArr = (articleSubstr, '');
$.cookie('article', '2586|双龙侦探社|342742|卷十七|0|' + timestamp + '@' + articleArr, {path: '/', expires: date });
}
}
scroeFuceng();
updateSrc();
isBookrackJs(2586,'双龙侦探社');
/**搜索相关*/
$("#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*/
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 lastupdate=parseInt(date);
var chaptertype=parseInt(ype);
var subChapter=b1;
var classname="";
if(chaptertype==1){
scroolHeightNum+=1;
$("#scroolHeightNum").val(scroolHeightNum);
if(chapterid==342742){
added=1;
$("#added").val("1");
}
if(added==0){
scroolTopNum+=1;
$("#scroolTopNum").val(scroolTopNum);
}
classname="class=\"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 lastupdate=parseInt(subChapter[ji].lastupdate);
var chaptertype=parseInt(subChapter[ji].chaptertype);
var aclass="";
if(chapterid==342742){
added=1;
$("#added").val("1");
aclass=" class=\"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 aclass="";
if(chapterid==342742){
added=1;
$("#added").val("1");
aclass=" class=\"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 = "/artinfo/updateInfo?aid=2586&cid=342742" ;
}else{
url = "/artinfo/updateInfo"+pro+"&aid=2586&cid=342742" ;
}
$.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();
});