/ Published in: PHP
Abrir imagen
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function abrirImagen( imagen ){ html = "<html><head><TITLE>Imagen</title></head><body leftmargin=\"0\" marginheight=\"0\" topmargin=\"0\" marginwidth=\"0\">" + "<img src=\"" + imagen + "\" border=\"0\" name=\"image\" onload=\"window.resizeTo(document.image.width,document.image.height+38)\"></body></html>"; popup=window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0'); popup.document.open(); popup.document.write( html ); popup.document.focus(); popup.document.close() }