Witam, posiadam taki skrypt i chcę aby po paru sekundach w playerze http://www.videojs.com wyskakiwało właśnie okno iframe i zatrzymywało video, pomoże ktoś?
<iframe id="iframe1" src="" width="400" height="200" border="2" style='float: right; border: 0; width: 400px; height: 455px;' scrolling='no'></iframe>
<script type="text/javascript">
function setIframeSrc() {
var s = "2.html";
var iframe1 = document.getElementById('iframe1');
iframe1.src = s;
setTimeout(function(){
if (window.stop) {
window.stop();
} else {
document.execCommand('Stop'); // MSIE
}
}, 5000);
}
setTimeout(setIframeSrc, 5000);
</script>