Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
test
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
提交
问题看板
Open sidebar
王南南
test
Commits
610f6f2d
提交
610f6f2d
authored
10月 04, 2018
作者:
武宏岩
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
视频轮播修改
上级
eec9718e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
51 行增加
和
12 行删除
+51
-12
about.html
about.html
+8
-4
about.css
css/about.css
+12
-2
about.js
js/about.js
+31
-6
没有找到文件。
about.html
浏览文件 @
610f6f2d
...
@@ -319,19 +319,23 @@
...
@@ -319,19 +319,23 @@
<ul
class=
"video_box clear"
id=
"videoBox"
>
<ul
class=
"video_box clear"
id=
"videoBox"
>
<li>
<li>
<video
class=
"video_one"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/1.%E9%BA%BB%E9%9B%80%20%E6%9C%80%E7%BB%88%E9%85%8D%E9%9F%B3%E7%89%88_x264.mp4"
<video
class=
"video_one"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/1.%E9%BA%BB%E9%9B%80%20%E6%9C%80%E7%BB%88%E9%85%8D%E9%9F%B3%E7%89%88_x264.mp4"
poster=
"./images/short_cut2.jpg"
controls
></video>
poster=
"./images/short_cut2.jpg"
></video>
<div
class=
"switch"
></div>
</li>
</li>
<li>
<li>
<video
class=
"video_two"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/%E5%9B%9E%E5%AE%B6%E6%8E%A2%E4%BA%B2_x264.mp4"
poster=
"./images/short_cut4.jpg"
<video
class=
"video_two"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/%E5%9B%9E%E5%AE%B6%E6%8E%A2%E4%BA%B2_x264.mp4"
poster=
"./images/short_cut4.jpg"
controls
></video>
></video>
<div
class=
"switch"
></div>
</li>
</li>
<li>
<li>
<video
class=
"video_there"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/%E7%AC%AC%E4%B8%80%E9%AB%98%E5%B3%B0.mp4"
poster=
"./images/short_cut1.jpg"
<video
class=
"video_there"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/%E7%AC%AC%E4%B8%80%E9%AB%98%E5%B3%B0.mp4"
poster=
"./images/short_cut1.jpg"
controls
></video>
></video>
<div
class=
"switch"
></div>
</li>
</li>
<li>
<li>
<video
class=
"video_four"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/4.%E4%BA%BA%E6%9C%89%E5%85%B6%E5%B1%85.mp4"
poster=
"./images/short_cut3.jpg"
<video
class=
"video_four"
src=
"https://qjvideo.oss-cn-beijing.aliyuncs.com/4.%E4%BA%BA%E6%9C%89%E5%85%B6%E5%B1%85.mp4"
poster=
"./images/short_cut3.jpg"
controls
></video>
></video>
<div
class=
"switch"
></div>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
...
css/about.css
浏览文件 @
610f6f2d
...
@@ -370,9 +370,20 @@ header {
...
@@ -370,9 +370,20 @@ header {
height
:
100%
;
height
:
100%
;
margin-right
:
25px
;
margin-right
:
25px
;
float
:
left
;
float
:
left
;
position
:
relative
;
}
}
#video_banner
.box_show
li
.switch
{
position
:
absolute
;
top
:
90px
;
left
:
200px
;
width
:
62px
;
height
:
62px
;
border-radius
:
50%
;
background
:
url(../images/switch.jpg)
;
z-index
:
100
;
}
#video_banner
.box_show
li
video
{
#video_banner
.box_show
li
video
{
object-fit
:
fill
;
object-fit
:
fill
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
\ No newline at end of file
js/about.js
浏览文件 @
610f6f2d
...
@@ -68,18 +68,43 @@ window.onload = function () {
...
@@ -68,18 +68,43 @@ window.onload = function () {
},
14
);
},
14
);
}
}
autoPlay
();
autoPlay
();
$
(
"#videoBox li"
).
bind
(
"click"
,
"vodio"
,
function
(){
//点击停掉其他播放事件
this
.
getElementsByTagName
(
"video"
)[
0
].
play
();
$
(
"#videoBox li video"
).
controls
=
false
;
$
(
this
).
siblings
(
"li"
).
each
(
function
(
i
,
el
){
var
sss
=
$
(
"#videoBox li video"
);
el
.
children
[
0
].
pause
();
function
aa
(){
clearInterval
(
timer
);
for
(
var
i
=
0
;
i
<
sss
.
length
;
i
++
){
})
if
(
sss
[
i
].
paused
===
true
){
}
else
{
clearInterval
(
timer
);
return
;
}
}
}
var
aaa
=
true
;
$
(
"#videoBox li"
).
bind
(
"click"
,
"video"
,
function
(){
$
(
this
).
children
(
".switch"
).
css
(
"background-image"
,
"url(images/switch1.jpg)"
)
$
(
this
).
children
(
".switch"
).
fadeOut
(
500
)
let
url
=
this
.
getElementsByTagName
(
"video"
)[
0
]
if
(
aaa
==
true
){
aaa
=
false
;
url
.
play
();
$
(
this
).
siblings
(
"li"
).
each
(
function
(
i
,
el
){
el
.
children
[
0
].
pause
();
clearInterval
(
timer
);
})
}
else
{
aaa
=
true
;
$
(
"#videoBox li .switch"
).
css
(
"background-image"
,
"url(images/switch.jpg)"
)
$
(
"#videoBox li .switch"
).
fadeIn
()
url
.
pause
()
}
})
})
video_box
.
onmouseover
=
function
(){
video_box
.
onmouseover
=
function
(){
clearInterval
(
timer
);
clearInterval
(
timer
);
};
};
video_box
.
onmouseout
=
function
(){
video_box
.
onmouseout
=
function
(){
autoPlay
();
autoPlay
();
aa
();
}
}
window
.
onscroll
=
function
(){
window
.
onscroll
=
function
(){
show_scroll
()
show_scroll
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论