js控制video

api简直就是抄袭的as3嘛
[code]




html5_video







[/code]
[code]
/**
* …video
* @author amyflash.com
*/
var vid;
function init()
{
vid = document.getElementById(“vid”);
}

function pauseToggle()
{
if(vid.paused)
{
vid.play();
}else
{
vid.pause();
}
}

function clicked(){
vid.currentTime+=2;
}

[/code]

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>