Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/09/2005, 12:50
Avatar de raulco
raulco
 
Fecha de Ingreso: junio-2003
Ubicación: Panama
Mensajes: 170
Antigüedad: 21 años, 7 meses
Puntos: 0
Prueba con esto pa ve si te funciona

<html>
<head>
<title></title>
<script LANGUAGE="JavaScript">
<!--

var ventana
var cont=0

function nombredefuncion1(cual,titulo) {
if(cont==1){ventana.close();ventana=null}
ventana=window.open('','ventana','resizable=no,scr ollbars=no')
ventana.document.write('<html><head><meta http-equiv="ImageToolbar" content="no"><title>' + titulo + '</title></head><body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">')
ventana.document.close()
cont++
}

function redimensionar(ancho,alto) {
ventana.resizeTo(ancho+12,alto+28)
ventana.moveTo((screen.width-ancho)/2,30)
}
// -->
</script>

</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#000000">

<a href="#" onClick="nombredefuncion1('archivoquequieras.ext', 'titulodeventana');return false">link1</a>

</body>

</html>



saludos