Hi…
I want to create a popup display while the video is running.
I’m looking for the tutorial, please help … thanks
Hi asepsaepudin welcome to the forum
Have you written the HTML for the modal yet?
Have you tried using setTimeout?
It’s solved by using this script:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://www.jacklmoore.com/colorbox/jquery.colorbox.js"></script>
<script>
function openColorBox(){
$.colorbox({iframe:false, width:"100%", height:"80%", href: "/signin.php?id=<?php echo $id;?>"});
}
function countDown(){
seconds--
$("#seconds").text(seconds);
if (seconds === 0){
openColorBox();
clearInterval(i);
}
}
var seconds = 60,
i = setInterval(countDown, 1000);
</script>
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.