PHP beginner |
|
script:
function popup(imagename)
{
OpenWin = this.open("","GrootVenster","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,width=800,height=600,left=0,top=0");
setTimeout('update()',100)
doc = OpenWin.document;
doc.write('<HTML><HEAD><TITLE>Preview<\/TITLE><\/HEAD><BODY>');
doc.write('<center><IMG SRC="' + imagename + '">');
doc.write('<\/center><\/BODY><\/HTML>');
doc.close();
}
function popup(imagename) { OpenWin = this.open("","GrootVenster","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,width=800,height=600,left=0,top=0"); setTimeout('update()',100) doc = OpenWin.document; doc.write('<HTML><HEAD><TITLE>Preview<\/TITLE><\/HEAD><BODY>'); doc.write('<center><IMG SRC="' + imagename + '">'); doc.write('<\/center><\/BODY><\/HTML>'); doc.close(); }
je link:
<a href="javascript:popup('image.jpg')">Preview</a>
<a href="javascript:popup('image.jpg')">Preview </a>
of:
<input type="button" onClick="javascript:popup('image.jpg')" value="Preview">
<input type="button" onClick="javascript:popup('image.jpg')" value="Preview">
|