[PHP] small window scripts in Javascript?

2001-12-04 Thread Wee Chua

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] small window scripts in Javascript?

2001-12-04 Thread Andrew Brampton

NOT a php question, but the only solution I know of is making a HTML page
for the picture with the margin's set to zero (and whatever options u
want)...

This would mean you would have to create 100 HTML pages if you had 100 Popup
images... Another solution would be to use PHP to make 1 page, which would
allow you to pass the image to it as a variable, For example:
image.php?img=myPicture.jpg

Hope this helps
Andrew
- Original Message -
From: Wee Chua [EMAIL PROTECTED]
To: 'Michael Rudel' [EMAIL PROTECTED]
Cc: PHP (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 4:16 PM
Subject: [PHP] small window scripts in Javascript?


 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

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]