Page 1 of 1
Image Popup
Posted: Sat Jan 14, 2006 5:32 pm
by LiveFree
Hey Ya'll!
I have a gallery with a very narrow main frame design so I cant show the picture without ruining the layout..
So basically what Im looking for is a JavaScript code I can add to my script so that when I click on a thumbnail, the full image is displayed in a popup
Thanks

Re: Image Popup
Posted: Sat Jan 14, 2006 5:39 pm
by foobar
Posted: Sat Jan 14, 2006 5:47 pm
by matthijs
I cannot give you the code straight away, but I have some very good links:
http://adactio.com/articles/display.php ... t_model/11
http://www.huddletogether.com/projects/lightbox/
and I know Richardathome had an example of an unobtrusive popup script, but he recently changed domains to
http://richardathome.wordpress.com/ so I'm not sure where his article is at the moment.
Posted: Sat Jan 14, 2006 5:50 pm
by LiveFree
Okie
The Window.open worked ... but when I click on it the parent window goes blank and you can only see:
[object Window]
Thanks
Posted: Sat Jan 14, 2006 6:04 pm
by matthijs
If you follow the links I gave you'll see some perfectly working examples. Maybe you could look at them, use them or use parts of that code for your own script. Then if you encounter any problems, post your code here and I'm sure someone can help.
Posted: Mon Jan 16, 2006 10:02 am
by pickle
You could make the link like this:
Code: Select all
<a href = "javascript:void(0);" onClick = "window.open('blah blah');">
You could also use the "target" attribute:
Code: Select all
<a href = "racecar.jpg" target = "_new">
This is probably the best way