锘?** * jQuery Cookie plugin * * Copyright (c) 2010 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ function cookie_encode(string){ //full uri decode not only to encode ",; =" but to save uicode charaters var decoded = encodeURIComponent(string); //encod back common and allowed charaters {}:"#[] to save space and make the cookies more human readable var ns = decoded.replace(/(%7B|%7D|%3A|%22|%23|%5B|%5D)/g,function(charater){return decodeURIComponent(charater);}); return ns; } jQuery.cookie = function (key, value, options) { // key and at least value given, set cookie... if (arguments.length > 1 && String(value) !== "[object Object]") { options = jQuery.extend({}, options); if (value === null || value === undefined) { options.expires = -1; } if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setDate(t.getDate() + days); } value = String(value); return (document.cookie = [ encodeURIComponent(key), '=', options.raw ? value : cookie_encode(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // key and possibly options given, get cookie... options = value || {}; var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; }; document.onkeydown = function(e){ var e = e ? e : window.event; var keyCode = e.which ? e.which : e.keyCode; var kw = document.getElementById('wd'); if (e.keyCode==13 && kw.value=='' && typeof(index_page) != "undefined") { location.href=index_page; } if (e.keyCode==37 && typeof(preview_page) != "undefined") location.href=preview_page; if (e.keyCode==39 && typeof(next_page) != "undefined") location.href=next_page; } var autopage;// = $.cookie("autopage"); var night; var timer; var temPos=1; $(document).ready(function(){ if( typeof(next_page) !== "undefined" ) { next_page = next_page; autopage = $.cookie("autopage"); sbgcolor = $.cookie("bcolor"); setBGColor(sbgcolor); font = $.cookie("font"); setFont(font); size = $.cookie("size"); setSize(size); color = $.cookie("color"); setColor(color); width = $.cookie("width"); setWidth(width); night = $.cookie('night'); if(night==1) { $("#night").attr('checked',true); setNight(); } } }); if (typeof(getCookie("bgcolor")) != 'undefined') { wrapper.style.background = getCookie("bgcolor"); document.getElementById("bcolor").value = getCookie("bgcolor") } function changebgcolor(id) { wrapper.style.background = id.options[id.selectedIndex].value; setCookie("bgcolor", id.options[id.selectedIndex].value, 365) } function setBGColor(sbgcolor){ $('#wrapper').css("backgroundColor",sbgcolor); $.cookie("bcolor",sbgcolor,{path:'/',expires:365}); } function setColor(color) { $("#content").css("color",color); $.cookie("color",color,{path:'/',expires:365}); } function setSize(size) { $("#content").css("fontSize",size); $.cookie("size",size,{path:'/',expires:365}); } function setFont(font) { $("#content").css("fontFamily",font); $.cookie("font",font,{path:'/',expires:365}); } function setWidth(width){ $('#content').css("width",width); $.cookie("width",width,{path:'/',expires:365}); } function setNight(){ if($("#night").is(':checked')) { $('div').css("backgroundColor","#111111"); $('div,a').css("color","#939392"); $.cookie("night",1,{path:'/',expires:365}); } else { $('div').css("backgroundColor",""); $('div,a').css("color",""); $.cookie("night",0,{path:'/',expires:365}); } } function setCookie(name, value, day) { var exp = new Date(); exp.setTime(exp.getTime() + day * 24 * 60 * 60 * 1000); document.cookie = name + "= " + escape(value) + ";expires= " + exp.toGMTString()+";path=/"; } function getCookie(objName) { var arrStr = document.cookie.split("; "); for (var i = 0; i < arrStr.length; i++) { var temp = arrStr[i].split("="); if (temp[0] == objName) return unescape(temp[1]) } } function setAutopage(){ if($('#autopage').is(":checked") == true){ $('#autopage').attr("checked",true); $.cookie("autopage",1,{path:'/',expires:365}); }else{ $('#autopage').attr("checked",false); $.cookie("autopage",0,{path:'/',expires:365}); } } function delCookie(name){ var date = new Date(); date.setTime(date.getTime() - 10000); document.cookie = name + "=a; expires=" + date.toGMTString(); } function get_cookie_value(Name) { var search = Name + "="; 銆€var returnvalue = ""; 銆€if (document.cookie.length > 0) { 銆€ offset = document.cookie.indexOf(search) 銆€銆€if (offset != -1) { 銆€銆€ offset += search.length 銆€銆€ end = document.cookie.indexOf(";", offset); 銆€銆€ if (end == -1) 銆€銆€ end = document.cookie.length; 銆€銆€ returnvalue=unescape(document.cookie.substring(offset, end)); 銆€銆€} 銆€} 銆€return returnvalue; } function login(){ document.writeln(""); document.write('
绻佷綋鐗圏/a>
'); } function loadbooklist(t,id){ } function textselect(){ document.writeln("
"); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("缈婚〉 澶滈棿
"); } function footer(){ document.writeln("

鏈珯灏忚鍧囬€氳繃鎼滅储寮曟搸杞爜鑰屾潵锛屽皧閲嶈浆鐮佸強钁椾綔鏉冨崗璁紝涓嶄繚瀛樺皬璇村唴瀹瑰強鏁版嵁锛屼粎浣滃浼犲睍绀裹/p>"); document.writeln("

Copyright 漏 All Rights Reserved.

"); window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)]; document.writeln(""); } function showsearch(){ if(znsid){ document.writeln("
"); } else { document.writeln("
"); } } function mark(){ } function bdlike(){ /*window.bdShare_config={"type":"small","color":"orange","uid":"731958","likeText":"椤朵竴涓?,"likedText":"宸查《杩?}; document.getElementById("bdlike_shell").src="http://bdimg.share.baidu.com/static/js/like_shell.js?t="+ new Date().getHours();*/ } function listindex(){ } function list1(){ } function readx(){ } function read1(){ } function read2(){ } function read3(){ } function read4(){ } function readxx(){ } function bdshare(){ document.writeln("
鍒嗕韩鏈功鍒帮細涓€閿垎浜?/a>寰俊鐧惧害璐村惂QQ绌洪棿鏂版氮寰崥QQ濂藉弸Facebook
"); }