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){
5/7 首页 上一页 3 4 5 6 7 下一页 尾页 |