This is JavaScript you open a link
like this...
<A HREF="javascript:display('image.jpg');">Open Image</A>
place in HEAD or in JS file.
// <!--
function display(myimage) {
html = "<HTML><HEAD><TITLE>NYGLASS Photo</TITLE>" +
"</HEAD><BODY BGCOLOR=BLACK LEFTMARGIN=0 " +
"MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER>" +
'<a class="url_nav_links" href="javascript:;" onClick="window.close()">Close Window [x]' +
"<IMG ALT=\"CLICK TO CLOSE WINDOW\" SRC='" + myimage + "' BORDER=0 NAME=image " +
"onload='window.resizeTo(document.image.width + 25,document.image.height + 60)'></a></CENTER>" +
"</BODY></HTML>";
popup=window.open
('','image','top=35,left=135,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
popup.document.open();
popup.document.write(html);
popup.document.focus();
popup.document.close()
};
// -->
Willopen window and resize after image is loaded automatic