提交 29679f94 创建 作者: 王晓庆's avatar 王晓庆

调整格式

上级 2ec6e98c
...@@ -21,7 +21,7 @@ function getPageScroll(){ ...@@ -21,7 +21,7 @@ function getPageScroll(){
if(self.pageXOffset){ if(self.pageXOffset){
xScroll=self.pageXOffset; xScroll=self.pageXOffset;
}else if(document.documentElement && document.documentElement.scrollLeft){ }else if(document.documentElement && document.documentElement.scrollLeft){
xscroll =document.documentElement.scrollLeft; xScroll =document.documentElement.scrollLeft;
}else if(document.body){ }else if(document.body){
xScroll=document.body.scrollLeft; xScroll=document.body.scrollLeft;
} }
...@@ -32,7 +32,7 @@ function getPageScroll(){ ...@@ -32,7 +32,7 @@ function getPageScroll(){
}else if(document.body){ }else if(document.body){
yScroll=document.body.scrollTop; yScroll=document.body.scrollTop;
} }
arrayPageScroll=new Array(xScroll,yScroll); var arrayPageScroll=new Array(xScroll,yScroll);
return arrayPageScroll; return arrayPageScroll;
} }
...@@ -46,11 +46,12 @@ function GetPageSize(){ ...@@ -46,11 +46,12 @@ function GetPageSize(){
yScroll=document.body.scrollHeight; yScroll=document.body.scrollHeight;
}else{ }else{
xScroll=document.body.offsetwidth; xScroll=document.body.offsetwidth;
yscrol1=document.body.offsetHeight; yScroll=document.body.offsetHeight;
} }
var windowWidth,windowHeight; var windowWidth,windowHeight;
var pageHeight,pageWidth;
if(self,innerHeight){ if(self,innerHeight){
windowwidth = self.innerwidth; windowWidth = self.innerwidth;
windowHeight = self.innerHeight; windowHeight = self.innerHeight;
}else if(document.documentElement && document.documentElement.clientHeight){ }else if(document.documentElement && document.documentElement.clientHeight){
windowWidth = document.documentElement.clientWidth; windowWidth = document.documentElement.clientWidth;
...@@ -69,7 +70,7 @@ function GetPageSize(){ ...@@ -69,7 +70,7 @@ function GetPageSize(){
}else{ }else{
pageWidth=xScroll; pageWidth=xScroll;
} }
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight) var arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize; return arrayPageSize;
} }
...@@ -129,6 +130,6 @@ function AdMove(id){ ...@@ -129,6 +130,6 @@ function AdMove(id){
var delay=10; var delay=10;
interval=setInterval(obj.CustomMethod,delay); interval=setInterval(obj.CustomMethod,delay);
obj.onmouseover = function(){clearInterval(interval);} obj.onmouseover = function(){clearInterval(interval);}
obj.onmouseout=function(){finterval=setInterval(obi.CustomMethod,delay);} obj.onmouseout=function(){interval=setInterval(obi.CustomMethod,delay);}
} }
} }
\ No newline at end of file
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论