hola tengo el siguiente codigo para ventanas popup del tamaño de las imagenes
<HTML><HEAD><TITLE>Abrir una ventana con el tamaño justo de una imagen</TITLE>
<script language=javascript>
var win=null;
function mostrarimagen(url_imagen,titulo){
 	var img = new Image();
 	img.src = url_imagen;
	win=window.open('','','width='+img.width+',height=  '+img.height+',scrollbars=no,menubar=no,resizable=  no,toolbar=0');
	win.document.write ('<html>\n');
	win.document.write (' <head>\n');
	win.document.write ('  <title>'+titulo+'</title>\n');
	win.document.write (' </head>\n');
	win.document.write (' <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n');
	win.document.write ('  <img src="' + url_imagen + '" height='+img.height+' width='+img.width+'>\n');
	win.document.write (' </body>\n');
	win.document.write ('</html>\n');	
}
</script>
</head>
<BODY>
<p>
<a href="javascript:mostrarimagen('foto1.jpg','titulo  01');">foto</a>
<p>
<a href="javascript:mostrarimagen('foto2.jpg','RJ-45');"><img src="foto2.jpg" width="200" border="0"></a>
<p>
<a href="javascript:mostrarimagen('foto3.jpg','Areas'  );"><img src="foto3.jpg" width="200" border="0"></a>
 
 
</body>
</html>
 
pero cuando lo copio a una pagina dentro de dreamweaver y lo ejecuto con f12
al hacer clic sobre una de las imagenes sale una ventana en blanco
pero cuando vuelvo a hacer otro clic recien sale la imagen.
 a que se debe.
 
aproposito puedo hacer ventanes popup del tamaño de las imagenes utilizando LA opcion comportamientos? 
   
 
 popup en dreamweaver
 popup en dreamweaver 
