- Posts: 41
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<video src="video.ogv" id="myVideo"> video not supported </video> <script type='text/javascript'> document.getElementById('myVideo').addEventListener('ended',myHandler,false); function myHandler(e) { // What you want to do after the event } </script>
$( document ).ready(function() { $("#iframeID").attr("src","URL to Video"); //when the page is loaded then you add the source to the iframe $("#iframeID").css({"display":"visible"}); //show the video frame $("#questionID").css({"display":"none"}); //don't show the question or questions on this page setTimeout(function(){ $("#iframeID").css({"display":"none"}); //hide the video frame $("#questionID").css({"display":"visible"}); //show the question or questions }, 3000); //set in miliseconds the time according to the length of the video });
<iframe src="" width height etc.></iframe>