Ver Mensaje Individual
  #14 (permalink)  
Antiguo 31/12/2002, 11:18
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Sabes que tú no me molestas en absoluto

Bueeeno me compliqué más de lo necesario para finalmente ver que había una forma más facil.

Sabes, a veces cuando se escribe una página con javascript el navegador interpreta que nunca termina de estar cargado el documento. No le vemos el "listo" en la barra de estado.
En el caso de éstas pop-ups sucede así. Si le pones status bar puedes ver como se queda en un estado perpetuo de "descargando imagen..." cuando la imagen hace horas que se cargó.

Así que nunca se activaba la condición de estar el documento cargado
En cambio, sí reconoce haber descargado la imagen, con lo que ha bastado con pedirle a la imagen que onLoad oculte la capa.

El código ha quedado así:

Código PHP:
var intContador0;
function 
ExpandUse05(strImageintHeightintWidth,titulo ) {
    
intContador++;
    
intHeight2 intHeight 20
    intWidth2 
intWidth 6
    ImageNew 
window.open("","Imagenes" intContador,"toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=" intWidth2 ",height=" intHeight2);
    
ImageNew.document.writeln('<html>');
    
ImageNew.document.writeln('<head>');
    
ImageNewdocument.writeln('<title>'+titulo +'</title>'); 
    
ImageNew.document.writeln('<style type="text/css">');
    
ImageNew.document.writeln('a {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; font-style: normal; line-height: normal; font-weight: bold; font-variant: normal; text-transform: uppercase; color: #FFFFFF; text-decoration: none}');
    
ImageNew.document.writeln('</style>'); 
    
ImageNew.document.writeln('</head>');
    
ImageNew.document.writeln('<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" bgcolor="#FFFFFF">');
    
ImageNew.document.writeln ('<div id="precarga" style="position:absolute; width:100%; height:100%; z-index:10; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; left: 0; top: 0 ; visibility:visible"> ')
    
ImageNew.document.writeln ('<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">')
    
ImageNew.document.writeln ('<tr> <td align="center"> ')
    
ImageNew.document.writeln ('<p><font face="Tahoma, Verdana, Arial" size="2"><b><font color="#FF0000">CARGANDO</font></b></font></p>')
    
ImageNew.document.writeln ('<p><font face="Tahoma, Verdana, Arial" size="1" color="#FF9900">Espere  por favor</font><br>')
    
ImageNew.document.writeln ('<img src="fnp_196_Relojcargando.gif" width="30" height="30"></p>')
    
ImageNew.document.writeln ('</td></tr></table></div>')
    
ImageNew.document.writeln('<table width="100%" border="1" cellpadding="0" cellspacing="0" align="center" bordercolor="#8098CB" bordercolordark="#8098CB" bordercolorlight="#8098CB">');
    
ImageNew.document.writeln('<tr>');
    
ImageNew.document.writeln('<td align="center" valign="center"><img src="' strImage '" border="0" onLoad="document.getElementById(\'precarga\').style.visibility=\'hidden\'"></td>');
    
ImageNew.document.writeln('</tr>');
    
ImageNew.document.writeln('<tr bgcolor="#8098CB"> ');
    
ImageNew.document.writeln('<td> <p align="right"><a href="Javascript:window.close()"><font size="1" face="verdana">CERRAR VENTANA</font></a></p></td>');
    
ImageNew.document.writeln('</tr>');
    
ImageNew.document.writeln('</table>');
    
ImageNew.document.writeln('    ¡¡¡ espere un momento ... ');
    
ImageNew.document.writeln('<' '/' 'body>');
    
ImageNew.document.writeln('</html>');

Al menos en mi pc me ha funcionado estupendo, incluso en el Nescafé 6.2

Yá me contarás