Home › Forums › Other › Usercontrols for videos? › Re: Usercontrols for videos?
December 20, 2012 at 11:07 am
#118268
angela_laura
Participant
Got this so far, but how do i change the button to an anchor?
function vidplay() {
var video = document.getElementById("Video1");
var button = document.getElementById("play");
if (video.paused) {
video.play();
button.textContent = "||";
} else {
video.pause();
button.textContent = ">";
}
}
function restart() {
var video = document.getElementById("Video1");
video.currentTime = 0;
}
function skip(value) {
var video = document.getElementById("Video1");
video.currentTime += value;
}