On Nov. 14, Michael Collins wrote >> I would like to open a window the size of the new enlarged img. And have an X, or something, that you can click and close the page.
Michael - This is what I've used and it works great for me. <a href="URL TO PAGE WITH BIG IMAGE.html" onClick="var w=window.open(this.href, 'gallery', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=400,he ight=533'); w.focus(); return false;"><img src="THUMBNAIL.jpg" border="0" /></a> Then just change the width and height to what you want it to open up to. If you have a lot of them, then you might be better off to call a function where you just pass the urls and dimensions. I have the "focus();" on this because at one point I had a gallery set up for someone that opened the larger images in a new pop-up window when they clicked on the thumbnail. However, if the person didn't close that window and clicked on another image to view, then the pop-up got lost and they became frustrated. By doing it this way then the pop-up regains focus whether it was closed or not. Then on the page with "big image", you can figure out where you want to have the "Close Window" button. Then just put <a href="javascript:self.close();" >Close Window</a>. You can wrap that in a <div align="right"> tag to put it to the right side. Or you can use an image instead. Others might have a better way to do it, so stay tuned! HTH, Todd ____ The WDVL Discussion List from WDVL.COM ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: [email protected] To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
