11/03/2009, 09:39
|
| | Fecha de Ingreso: septiembre-2008 Ubicación: Lanzarote, Canarias
Mensajes: 486
Antigüedad: 16 años, 4 meses Puntos: 41 | |
Respuesta: Mostrar un iframe durante 20 segundos y luego un flash Vale, ya lo conseguí...
Código:
<script>
function mostrar(capa){
var obj = document.getElementById(capa)
if(obj.style.visibility== "hidden") obj.style.visibility= '';
}
function ocultar(capa){
var obj = document.getElementById(capa)
if(obj.style.visibility == "") obj.style.visibility = "hidden"
if(obj.style.position == "") obj.style.position = "absolute"
}
function flash() {
mostrar('flash');
ocultar('flash2');
}
</script>
<body onload="setTimeout('flash()', 5000)">
<div id="flash2">esto es otra prueba</div>
<div id="flash" style="visibility: hidden;">hola mundo</div>
Última edición por codig0; 11/03/2009 a las 09:46 |