当 seeking 属性设为 true 时,指示 HTML 中的寻找处于活动状态,执行一个脚本?
在 HTML 中,使用 onseeking 属性来指示视频中的查找处于活动状态。
示例
您可以尝试运行以下代码,当 seeking 属性设为 true 时,指示 HTML 中的查找处于活动状态,执行一个脚本 −
<!DOCTYPE html>
<html>
<body>
<video controls onseeking = "display()">
<source src = "/html5/foo.ogg" type = "video/ogg" />
<source src = "/html5/foo.mp4" type = "video/mp4" />
Your browser does not support the video element.
</video>
<script>
function display() {
alert("Seeking starts!");
}
</script>
</body>
</html>
广告
数据结构
网络
关系型数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 语言
C++
C#
MongoDB
MySQL
Javascript
PHP