编辑下面的代码:【加编码】
<html> <head> <script> function isSeeking() { myVid=document.getElementById("video1"); document.getElementById("span1").innerHTML=("Seeking: " + myVid.seeking); } </script> </head> <body> <video id="video1" controls="controls" onseeking="isSeeking()" onseeked="isSeeking()"> <source src="mov_bbb.mp4" type="video/mp4"> <source src="mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </source></source></video> <p>Try seeking in the video: <span id="span1"></span></p> <p>Video courtesy of <a href="http://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂