/** *demo * */ $.namespace("xkzfz.detail"); xkzfz.detail.path=null; xkzfz.detail.back=function(){ if(xkzfz.detail.path!=null&&xkzfz.detail.path!=''){ location.href=$.app+xkzfz.detail.path; }else{ location.href=$.app+"/xkzfz/main"; } }; /* 当前页面高度 */ function pageHeight() { return document.body.scrollHeight; } /* 当前页面宽度 */ function pageWidth() { return document.body.scrollWidth; } xkzfz.detail.show=function(objs){ $("#overlay").fadeTo(500, 0.5); $("#dv"+objs).show(500); $("#dv"+objs).css("left",pageWidth()*0.1); $("#dv"+objs).css("top",pageHeight()*0.1); } xkzfz.detail.hide=function(objs){ $("#dv"+objs).hide(500); $("#overlay").fadeOut(500); } xkzfz.detail.showTwoCode=function(){ $("#overlay").fadeTo(500, 0.5); $("#dvTwoCode").show(500); $("#dvTwoCode").css("left",pageWidth()*0.1); $("#dvTwoCode").css("top",pageHeight()*0.1); } xkzfz.detail.hideTwoCode=function(){ $("#dvTwoCode").hide(500); $("#overlay").fadeOut(500); }