NYCPHP Meetup

[nycphp-talk] need java help; sorry this is ot

D C Krook dkrook at hotmail.com
Mon Feb 10 15:30:56 EST 2003


Michael,

I ran into a similar problem about a year ago involving a popup window and 
resizeTo().  It seems to still be up and functioning cross browser 
(including Opera 7) if you want to try some new code:

http://rd.com/common/nav/index.jhtml?articleId=9525144&channelId=1&subChannelId=9 
  [click the goofy little "Memory Master" icon to the right of the content]

Good luck,
-Dan


>
>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
>======================================================
>
>


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail




More information about the talk mailing list