Re: small window scripts in Javascript?

From: Date: Tue, 04 Dec 2001 17:07:32 +0000
Subject: Re: small window scripts in Javascript?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76551@lists.php.net to get a copy of this message
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" <Chua@mail.interclean.com> To: "'Michael Rudel'" <Michael.Rudel@in-gmbh.de> Cc: "PHP (E-mail)" <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#76551) next »