Aun no he encontrado como hacerlo.
Aca les dejo el codigo:
Código:
<script type="text/javascript">
function include(file) {
var head = document.getElementsByTagName('head').item(0);
var old = document.getElementById('lastLoadedCmds');
if (old) head.removeChild(old);
script = document.createElement('script');
script.src = file;
script.type = 'text/javascript';
script.defer = true;
script.id = 'lastLoadedCmds';
void(head.appendChild(script));
}
var secs = ({$set['seconds']});
var tway=1;
function startTimer()
{
if(secs==0)
{
include("cmp.php?complete&");
} else {
secs=secs-tway;
setTimeout("startTimer()", 1000);
}
document.getElementById('secs').innerHTML = secs;
}
</script>
Código:
<body style = "margin:0px; position:absolute; width:100%;" onload = "startTimer()">
Código:
<iframe id="completed" src="{$url}" width="100%" frameborder="0" height="100%" style = "border-bottom: 0px solid #121212;border-left: 0px solid #121212;border-right: 0px solid #121212;" allowtransparency="true" scrolling="auto"></iframe>
Gracias!