<dl class="fonts">
<dt>设置</dt>
<dd>
<label><a href="/mybook.php">我的书架</a></label>
</dd>
</dl>
<dl class="fonts">
<dt>字号</dt>
<style>
.gw_num{border: 1px solid #dbdbdb;width: 110px;line-height: 26px;overflow: hidden;}
.gw_num em{display: block;height: 26px;width: 26px;float: left;color: #7A7979;border-right: 1px solid #dbdbdb;text-align: center;cursor: pointer;}
.gw_num .num{display: block;float: left;text-align: center;width: 52px;font-style: normal;font-size: 14px;line-height: 24px;border: 0;}
.gw_num em.add{float: right;border-right: 0;border-left: 1px solid #dbdbdb;}
</style>
<dd>
<div class="gw_num">
<em class="jian">-</em>
<input type="text" value="18" class="num" id="fongsizenum"/>
<em class="add">+</em>
</div>
</dd>
</dl>
<dl class="bgmenu">
<dt>背景</dt>
<dd>
<label class="bg1"></label>
<label class="bg2"></label>
<label class="bg3"></label>
<label class="bg4"></label>
<label class="bg5"></label>
<label class="bg6"></label>
<label class="bg7"></label>
<label class="bg8">夜</label>
<label class="bg9">夜+</label>
<label class="bg10">黑</label>
</dd>
</dl>
</section>
</div>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
document.getElementById('nr').onclick = function(){
document.getElementById('Menu').style = 'display:block;';
$('#nr').click(function(){
$('#Menu').css('display', 'block');
});
$('#Menu').click(function(){
$(this).css('display', 'none');
});
$('section').click(function(event){
event.stopPropagation();
});
$('.bgmenu dd label').click(function(){
var _class = $(this).attr('class');
$('#nr_body').attr('class', _class);
document.cookie="bgcolor="+_class+";path=/";
});
var strCookie=document.cookie;
var arrCookie=strCookie.split("; ");
for(var i=0;i<arrCookie.length;i++){
var arr=arrCookie[i].split("=");
if("bgcolor"==arr[0]){
bgcolor=arr[1];
$('#nr_body').attr('class', arr[1]);
break;
}
//加的效果
$(".add").click(function(){
var n=$(this).prev().val();
var num=parseInt(n)+1;
if(num==0){ return;}
$(this).prev().val(num);
document.getElementById('nr1').style.fontSize = num + 'px';
document.cookie = 'fontsize=' + num;
});
//减的效果
$(".jian").click(function(){
var n=$(this).next().val();
var num=parseInt(n)-1;
if(num==0){ return}
$(this).next().val(num);
document.getElementById('nr1').style.fontSize = num + 'px';
document.cookie = 'fontsize=' + num;
});
var cookiefontsize;
var fontsize = parseInt($('#fongsizenum').val());
for(var i=0; i<arrCookie.length; i++){
var arr = arrCookie[i].split("=");
if("fontsize" == arr[0]){
cookiefontsize = arr[1];
break;
}
if (!cookiefontsize)
document.cookie = 'fontsize=' + fontsize;
else
$('#fongsizenum').val(cookiefontsize);
document.getElementById('nr1').style.fontSize = cookiefontsize + 'px';
var aid = "174301";
var cid = "50435912";
if (localStorage.getItem('booklist'))
var list = localStorage.getItem('booklist').split("_");
if (list.length > 8)
{
var shift = list.pop();
localStorage.removeItem(shift);
localStorage.setItem('booklist', list.join('_'));
}
if (list.indexOf(aid) >= 0) //存在此篇小说id,更改章节id
{
localStorage.setItem(aid, aid + '#' + cid + '#' + '从劈柴开始了悟万法#第32章 招人');
}
else
{
localStorage.setItem('booklist', aid + '_' + localStorage.getItem('booklist'));
localStorage.setItem(aid, aid + '#' + cid + '#' + '从劈柴开始了悟万法#第32章 招人');
}
else
localStorage.setItem('booklist', aid);
localStorage.setItem(aid, aid + '#' + cid + '#' + '从劈柴开始了悟万法#第32章 招人');
</script>
<div id="foot" class="foot">
<a href="#">御宅屋</a>
</div>
<img src="/baidu.png"/>
<img src="/baidu.png"/>
<img src="/baidu.png"/>
<div style="display: none;">
<script src="/js/all.js"></script>
</div>
<!--<div style="margin-top:280px;float: left;">