need java help; sorry this is ot
Michael Southwell
southwell at dneba.com
Mon Feb 10 14:36:01 EST 2003
I know this is ot but it must be easy and I am feeling my way in the
dark. If this is inappropriate, just let me know, and I apologize.
This code opens and resizes a popup image window perfectly in IE; in
Mozilla it opens a window but doesn't resize it; in Opera it doesn't even
open a window. I expect I have to change a little detail somewhere, or
maybe sniff the browser and write different code (aha, there's the php
connection):
==========================
function bigUrl(fn){
url='images/photos/'+fn+'.jpg';
return url;
}
function image_open(url){
HTML ="<html><head><title>Photo of
Laura</title><style>body{margin:0}</style>"
HTML+="<meta http-equiv=\\"imagetoolbar\\" content=\\"no\\" /></head>"
HTML+="<body><img src='"+ url +"' border=0 name=load_image "
HTML+="onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+20)'></body></html>";
popupImage = window.open('','_blank','toolbar=no,scrollbars=no');
popupImage.document.open();
popupImage.document.write(HTML);
popupImage.document.close();
}
.......
<a href="javascript:image_open(bigUrl(7947))"
onMouseOver="onit('i7947t')" onMouseOut="offit('i7947t')">
<img name="i7947t" border="0" width="90" height="92"
src="images/photos/7947toff.jpg"
alt="[View photo of Laura.]" title="View photo of Laura." /></a>
=============================
TIA
Michael G. Southwell =================================
DNEBA Enterprises
81 South Road
Bloomingdale, NJ 07403-1419
973/492-7873 (voice and fax)
southwell at dneba.com
http://www.dneba.com
======================================================
More information about the talk
mailing list