當 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