| |||
Re: Imagen En Nueva Ventana Redimensionada ? Esto es lo que precisás?
Código:
<html> <head> <title> New Document </title> <script language="javascript"> var win = null; function nuevaVentana(imag,nombre){ var imagen = new Image(); imagen.src = imag; imagen.name = 'imagen'; var w = imagen.width; var h = imagen.height; LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; est = 'height=' + h + ',width=' + w + ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable'; win = window.open("",nombre,est); win.document.open(); win.document.write("<html><head><title>"); win.document.write(nombre); win.document.write("</title></head><body marginwidth='0' leftmargin='0' marginheight='0' topmargin='0'><img src='"); win.document.write(imag); win.document.write("'></body></html>"); win.document.close(); } </script> </head> <body> <a href="javascript:;" onClick="nuevaVentana('493-minoucoeur.gif','imagen');return false"> Abrir Imagen</a> </body> </html> <hr noshade size=1><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE] |