Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
Web前端技术 - 实验5DIV+CSS布局规划-任务(二)
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸大学计算机学院
教师群组
赵鹏翀-zpc
Web前端技术 - 实验5DIV+CSS布局规划-任务(二)
提交
29679f94
提交
29679f94
4月 01, 2020
创建
作者:
王晓庆
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整格式
上级
2ec6e98c
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
6 行删除
+8
-6
floatwindow.js
floatwindow.js
+8
-6
没有找到文件。
floatwindow.js
浏览文件 @
29679f94
...
...
@@ -21,7 +21,7 @@ function getPageScroll(){
if
(
self
.
pageXOffset
){
xScroll
=
self
.
pageXOffset
;
}
else
if
(
document
.
documentElement
&&
document
.
documentElement
.
scrollLeft
){
x
s
croll
=
document
.
documentElement
.
scrollLeft
;
x
S
croll
=
document
.
documentElement
.
scrollLeft
;
}
else
if
(
document
.
body
){
xScroll
=
document
.
body
.
scrollLeft
;
}
...
...
@@ -32,7 +32,7 @@ function getPageScroll(){
}
else
if
(
document
.
body
){
yScroll
=
document
.
body
.
scrollTop
;
}
arrayPageScroll
=
new
Array
(
xScroll
,
yScroll
);
var
arrayPageScroll
=
new
Array
(
xScroll
,
yScroll
);
return
arrayPageScroll
;
}
...
...
@@ -46,11 +46,12 @@ function GetPageSize(){
yScroll
=
document
.
body
.
scrollHeight
;
}
else
{
xScroll
=
document
.
body
.
offsetwidth
;
y
scrol1
=
document
.
body
.
offsetHeight
;
y
Scroll
=
document
.
body
.
offsetHeight
;
}
var
windowWidth
,
windowHeight
;
var
pageHeight
,
pageWidth
;
if
(
self
,
innerHeight
){
window
w
idth
=
self
.
innerwidth
;
window
W
idth
=
self
.
innerwidth
;
windowHeight
=
self
.
innerHeight
;
}
else
if
(
document
.
documentElement
&&
document
.
documentElement
.
clientHeight
){
windowWidth
=
document
.
documentElement
.
clientWidth
;
...
...
@@ -69,7 +70,7 @@ function GetPageSize(){
}
else
{
pageWidth
=
xScroll
;
}
arrayPageSize
=
new
Array
(
pageWidth
,
pageHeight
,
windowWidth
,
windowHeight
)
var
arrayPageSize
=
new
Array
(
pageWidth
,
pageHeight
,
windowWidth
,
windowHeight
)
return
arrayPageSize
;
}
...
...
@@ -129,6 +130,6 @@ function AdMove(id){
var
delay
=
10
;
interval
=
setInterval
(
obj
.
CustomMethod
,
delay
);
obj
.
onmouseover
=
function
(){
clearInterval
(
interval
);}
obj
.
onmouseout
=
function
(){
f
interval
=
setInterval
(
obi
.
CustomMethod
,
delay
);}
obj
.
onmouseout
=
function
(){
interval
=
setInterval
(
obi
.
CustomMethod
,
delay
);}
}
}
\ No newline at end of file
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论