<!DOCTYPE html>
<html>
<body>
<head>
<meta charset="UTF-8">
<style>
#bunnyVideo { display:block;
}
#catechismVideo { display:block;
}
</style>
</head>
<body>
<button onclick="Big_Buck_Bunny_Video()" type="button">Page 1</button>
<button onclick="Catechism()" type="button">Page 2</button><br>
<div id="videoContainer" style="position:absolute; top:50px; width:600px; height: 500px; border-style:solid; border-width: 2px;">
<div style="position: absolute; top:1px">
<video id="catechismVideo" width="500" height="500px;">
<source src="Wesminster-Larger-Catechism-Q-20-30-31.mp4" type="video/mp4">
<source src="Wesminster-Larger-Catechism-Q-20-30-31.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
</div>
<div style="position: absolute; top:1px">
<video id="bunnyVideo" width="500" height="500;" >
<source src="Big_Buck_Bunny_Video-1MB.mp4" type="video/mp4">
<source src="Big_Buck_Bunny_Video-1MB.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
</div>
</div>
<script>
var vid1 = document.getElementById("bunnyVideo");
var vid2 = document.getElementById("catechismVideo");
function Big_Buck_Bunny_Video() {
document.getElementById("catechismVideo").style.display = "none";
document.getElementById("bunnyVideo").style.display = "block";
vid2.pause();
vid1.play();
}
function Catechism() {
document.getElementById("bunnyVideo").style.display = "none";
document.getElementById("catechismVideo").style.display = "block";
vid1.pause();
vid2.play();
}
</script>
</body>
</html>