PDA

View Full Version : pop-up image window..how?


barnettgs
04-17-2003, 10:24 PM
I will be creating a image gallery with many thumbnail images and I would like to click on one of the image and window come up showing the image (without tool bar and scroll) and close it when finished viewing. Is it possible? Thanks

redhead
04-17-2003, 11:04 PM
try searching, it returned these threads:

http://www.codingforums.com/search.php?action=showresults&searchid=108231&sortby=&sortorder=

Skyzyx
04-17-2003, 11:04 PM
Take a look at this:

http://www.codingforums.com/showthread.php?s=&threadid=9836#post74248

Jason
04-17-2003, 11:43 PM
if you want it to pop up in a new window then yes, you can do it. If you want to turn on the scroll bar and URL bar and whatever else you are in the wrong area. All that can only be done with JS. This topic has come up alot and I think if you search in the JS area you will even get a link to a pop up creation webpage where you type in the URL and it will add the bars and whatever else to the link and you just paste into your code.


Jason

barnettgs
04-17-2003, 11:44 PM
I have found this:

<img src="yourimage.jpg" width="400" height="400" onClick="window.open(this.src,'','width=400,height=400);">

I have actually found it few minutes ago and it seemed to work and I think it's very short/simple code to use rather than a long & complicated codes!

Jason
04-17-2003, 11:52 PM
good deal, thats the JS though....


Jason