document.write('') document.write(''); (function($) { $(".trigger3").modal({ trigger : ".trigger3", modals : "div.modal_1", popPosition : { top : "Content", left : "Content" }, animationEffect : "movezoom", docClose:false, olayBe : true, //设置是否有覆盖层 olay : { //覆盖层: opacity : 0.7, //透明度 0~1 | 默认值 0.7 background : "#000" //背景 background 的属性值 | 默认值 "#ccc" }, close : ".close_" }) var wait=3; $("#hb").css("visibility","visible"); if($.cookie("showPop") == "true"){ $("#hb").css("visibility","visible"); }else{ var date = new Date(); date.setTime(date.getTime()+60*60*1000); $.cookie("showPop",true,{path:'/',expires:date}); //$(".trigger3").trigger("click"); timeOut(); } function timeOut(){ if(wait==0){ $(".close_").trigger("click"); $("#hb").css("visibility","visible"); }else{ setTimeout(function(){ wait--; $("#divWait").html(wait+"秒后关闭"); timeOut(); },1000) } } })(jQuery); scrollx({ id:'bb', f:1 }) scrollx({ id:'hb', f:1 }) function scrollx(p){ var d = document,dd = d.documentElement,db = d.body,w = window,o = d.getElementById(p.id),ie6 = /msie 6/i.test(navigator.userAgent),style,timer; if(o){ o.style.cssText +=";position:"+(p.f&&!ie6?'fixed':'absolute')+";"+(p.l==undefined?'right:0;':'left:'+p.l+'px;')+(p.t!=undefined?'top:'+p.t+'px':'bottom:0'); if(p.f&&ie6){ o.style.cssText +=';left:expression(documentElement.scrollLeft + '+(p.l==undefined?dd.clientWidth-o.offsetWidth:p.l)+' + "px");top:expression(documentElement.scrollTop +'+(p.t==undefined?dd.clientHeight-o.offsetHeight:p.t)+'+ "px" );'; dd.style.cssText +=';background-image: url(about:blank);background-attachment:fixed;'; }else{ if(!p.f){ w.onresize = w.onscroll = function(){ clearInterval(timer); timer = setInterval(function(){ //双选择为了修复chrome 下xhtml解析时dd.scrollTop为 0 var st = (dd.scrollTop||db.scrollTop),c; c = st - o.offsetTop + (p.t!=undefined?p.t:(w.innerHeight||dd.clientHeight)-o.offsetHeight); if(c!=0){ o.style.top = o.offsetTop + Math.ceil(Math.abs(c)/10)*(c<0?-1:1) + 'px'; }else{ clearInterval(timer); } },10) } } } } }