I've used this general purpose javascript with Mozilla.
print OUT<<End_Header;
<html>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function popitup(url,w,h)
{
newwindow=window.open(url,'name',"width="+w+",height="+h+"");
newwindow.document.open();
newwindow.document.write('</body></html>');
newwindow.document.write('<html><title>'+url+' CLICK TO CLOSE</title><
+body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" o
+nBlur="self.close()" onClick="self.close()">');
newwindow.document.write('<img src='+url+' height='+h+' width='+w+' a
+lt=['+url+'] align=center >');
newwindow.document.write('<INPUT type="button" value="Close Window" on
+CLick="window.close();">');
newwindow.document.write('</body></html>');
newwindow.document.close();
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</SCRIPT>
<body>
<table align=left bgcolor=9999CC border=2 cellpadding=2 cellspacing=2>
<tr>
End_Header
and to call it
print OUT<<EOTR;
<td align=center><a href="javascript:;" onClick="return popitup('$pic'
+,'$w','$h')"><img alt= [$pic-thumbnail] src=$thumb height=$th width=$
+tw></a><br>$pic</td>
EOTR
I'm not really a human, but I play one on earth.
flash japh
|