加入收藏 | 设为首页 | RSS
您当前的位置:首页 > 网页特效

阿里妈妈右下角弹窗广告代码

时间:2012-04-13 13:51:00  来源:  作者:虾谷
this.emsg_objTimer;

 

this.ie6Add =0;

 

var _this = this;

 

this.init = function(){

 

var ifcookie=www_zzjs_net.cookies.getCookie(this.config.cookie);

 

if(ifcookie == "show")

 

return;

 

window.setTimeout(_this.start,parseInt(_this.config.start_delay,10));

 

}

 

//欢迎来到虾谷网络,我们的网址是www.xiagoo.com,很好记,xia就是虾,goo就是谷,本站收集大量高质量js代码,还有许多广告代码下载。

 

this.start = function(){

 

_this.msg.style.display="block";

 

_this.content.style.display="block";

 

_this.offsetHeight = _this.content.offsetHeight;

 

_this.content.style.height ="0px";

 

_this.emsg_objTimer = setInterval(_this.moveUpDiv,parseInt(_this.config.speed,10));

 

}

 

this.moveUpDiv = function(){

 

 if(_this.offsetHeight> parseInt(_this.content.style.height,10)){

 

  _this.content.style.height =  parseInt(_this.content.style.height,10)+parseInt(_this.config.movepx,10)+"px";

 

 }

 

 else{

 

  window.clearInterval(_this.emsg_objTimer);

 

  www_zzjs_net.cookies.setCookie(_this.config.cookie,"show",_this.config.expiresDay);

 

  // ie6下才做,因为没有fixed属性

 

  var isMSIE = !!(/*@cc_on!@*/0);

 

if(isMSIE &&!(window.XMLHttpRequest))

 

{

 

  _this.content.style.height = parseInt(_this.content.style.height,10) +2+"px";

 

  _this.autoMoveIe6();

 

  }

 

 }

 

}

 

this.autoMoveIe6 = function(){

 

if(_this.ie6Add ==0){

 


来顶一下
返回首页
返回首页
推荐资讯
10步征服web2.0链轮第四步,决定链轮模式
10步征服web2.0链轮第
10步征服web2.0链轮第三步,消除“电子足迹”
10步征服web2.0链轮第
10步征服web2.0链轮第一步,理解链轮的概念
10步征服web2.0链轮第
小贺店铺
小贺店铺
相关文章
    无相关信息
栏目更新
栏目热门