Posted By

nicolaspar on 08/02/06


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
willcodeforfood


Javascript - popup imagen redimensionado desde padre.


 / Published in: PHP
 

Abrir imagen

  1. function abrirImagen( imagen ){
  2. html = "<html><head><TITLE>Imagen</title></head><body leftmargin=\"0\" marginheight=\"0\" topmargin=\"0\" marginwidth=\"0\">" +
  3. "<img src=\"" + imagen + "\" border=\"0\" name=\"image\" onload=\"window.resizeTo(document.image.width,document.image.height+38)\"></body></html>";
  4. popup=window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
  5. popup.document.open();
  6. popup.document.write( html );
  7. popup.document.focus();
  8. popup.document.close()
  9. }

Report this snippet  

You need to login to post a comment.