small window scripts in Javascript?

From: Date: Tue, 04 Dec 2001 16:16:33 +0000
Subject: small window scripts in Javascript?
Groups: php.general 
Request: Send a blank email to php-general+get-76537@lists.php.net to get a copy of this message
Hi all, How could i get rid of the white space and show the picture exactly same size as the window, so it would be perfect fit. What else do I miss in the codes to make the perfect fit size? Also, how can I have the small window close automatically after user clicking on the picture's hyperlink? Any helps will be greatly appreciated. Thanks. <Script> <!-- function displayWindow(url, width, height) { window.open(url,"displayWindow",'width=' + width + ',height=' + height +',resizable=0,scrollbars=no,menubar=no,status=no,topmargin=0,leftmargin=0') ; self.close(); } //--> </script> <a href="javascript:displayWindow('../JPeg/big%20jpeg/Untitled-1.jpg',750,530)" > regards, Calvin

« previous php.general (#76537) next »