搞了一天终于整明白了,实现了ajax 改变数据...
以后领导说要实现这种效果,就说显现不来,太难啦 --
分享下,
改变总页码、图片路径都在config.js
改变页码总页数 bookConfig.totalPageCount
图片路径 bookConfig.normalPath = "";
菜单列表图片路径 bookConfig.thumbPath = "";
调出分页事件
main.js
this.enterOption && window.clearTimeout(this.enterOption); global.phoneGotoPagePanel.showOrHide();
菜单事件
main.js
this.enterOption && window.clearTimeout(this.enterOption); thumbnail.showOrHide();
去除水印搞个样式就ok啦
<style> .cr{ display: none; } </style>
控制页码内容变化的函数
setCurrentIndexTextField = function(){}
改变图片后缀,把".png" 改成自己想要的东西,空字符串也行
getFileFormat = function (b) { //图片名字的后缀 return !passwardType() || !bookConfig.excludeFrontPages || b <= parseInt(bookConfig.excludeFrontPages) ? ".png" : ".js" },
想改变图片的名字,看这个函数吧,默认是将图片从1开始的
fillPage: function (b, c,p) {}
这个不难吧,下面代码自己加进去就行了。
<html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <body> <div id="container" style="position: fixed;top:30px;left: 30px "> <div id="content" > <button id="btn">全屏</button> <button id="close">退出</button> </div> </div> </body> <script language="JavaScript"> var btn = document.getElementById("btn"); btn.onclick = function () { var elem = document.getElementById("content"); requestFullScreen(elem); }; var close = document.getElementById("close"); close.onclick = function () { exitFullscreen(); }; function requestFullScreen(element) { var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen; if (requestMethod) { requestMethod.call(element); } else if (typeof window.ActiveXObject !== "undefined") { var wscript = new ActiveXObject("WScript.Shell"); if (wscript !== null) { wscript.SendKeys("{F11}"); } } } function exitFullscreen() { if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.msExitFullscreen) { document.msExitFullscreen(); } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if (document.webkitExitFullscreen) { document.webkitExitFullscreen(); } } </script> </html>
取消logo图的方法:
main.js中:
eval(function(b, c, d, f, g, h) { g = function(b) { return (b < c ? "" : g(parseInt(b / c))) + (35 < (b %= c) ? String.fromCharCode(b + 29) : b.toString(36)) }; if (!"".replace(/^/, String)) { for (; d--;) h[g(d)] = f[d] || g(d); f = [function(b) { return h[b] }]; g = function() { return "\\w+" }; d = 1 } for (; d--;) f[d] && (b = b.replace(RegExp("\\b" + g(d) + "\\b", "g"), f[d])); let b1 = b.replace(`demoBar=$("<div></div>")`, `demoBar=$("<div id='zjh_logo'></div>")`); //使用样式控制显示隐藏 return b1 }("3 1;3 N=7(){3 a=u;1=$(\"<8></8>\");1.4({B:'X',U:'T',h:'9','Q-o':'#D','A':0.5,'z-s':10,'-r-k-j':'f','-t-k-j':'f','k-j':'f'});3 b=$(\"<v />\");b.4({h:'9',g:'w',i:'f'});3 c=$(\"<8></8>\");c.4({h:'9',g:'x',i:'y'});3 d=$(\"<l>\"+C+\"</l>\");3 e=$(\"<a E='\"+a+\"' F='G'>\"+a+\"</a>\");e.4({h:'9',g:'H',i:'I'});d.4({'q-J':'K',o:'#L'});M.6(1);1.6(c);c.6(d);c.6(e);$.O.P(1,{n:7(){1.4({g:(R-S)/2+'p',i:(V-W)/2+'p'})},m:7(){b.Y(7(){1.6(b)});b.Z({11:12+'13.14'})}});1.m();1.n()};", 62, 67, " demoBar var css append function div absolute 5px top position left radius border span loadImg setDemoPosition color px font moz index webkit homePage img 10px 13px 65px opacity width productName cccccc href target _blank 25px 0px size 15px 333333 tmpContainer initDemoBar fn extend background windowHeight 70 70px height windowWidth 305 305px load attr src uiBaseURL demo png".split(" "), 0, {}));
这一段是生成logo图函数,
它返回的b是一个变量跟一段函数,
函数中生成了logo图,可以直接字符串替换这个函数内容达到隐藏logo,我是直接给加了一个id然后隐藏id