Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/03/2016, 18:28
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Mostrar Imagen en cero segundos

prueba asi mano:

Código HTML:
Ver original
  1. <body bgcolor="#FFFFFF">
  2. <table width="600" border="0">
  3.   <tr>
  4.     <td height="580">
  5.     <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/55/Sasso_lungo_da_passo_pordoi.jpg/270px-Sasso_lungo_da_passo_pordoi.jpg" width="200" height="200" style="display:none" id="img"></p></td>
  6.     <td>
  7.     <div id="seg" class="seg">
  8.     <div id="contador"></div>
  9.     </div>
  10. </td>
  11.   </tr>
  12. </body>

Código Javascript:
Ver original
  1. $(document).ready(function() {    
  2.  
  3. var ini = 10;
  4.  
  5. function Mostrar(){
  6.  
  7. ini = parseInt(ini)-1;
  8.  
  9. document.getElementById("contador").innerHTML = ini;
  10.  
  11.     if(ini == 0){
  12.     window.clearInterval(tiempo);
  13.     $("img[id=img]").animate('display','Block');
  14.     $("img[id=img]").fadeIn('slow');
  15.    
  16.  
  17. }
  18.  
  19. }
  20. var tiempo = setInterval(Mostrar, 1000);
  21. });

MUESTRA: https://jsfiddle.net/xfxstudios/otmhzugq/1/
__________________
[email protected]
HITCEL