Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/08/2010, 21:56
iambuxer
 
Fecha de Ingreso: abril-2010
Mensajes: 21
Antigüedad: 14 años
Puntos: 0
Respuesta: Script pagina que quede cargando

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&amp;");
 } 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!