|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,382
|
looking for a script
I'm looking for a javascript for a webpage with numerous thumbnail images. I want it so whan you slick on a thumbnail, the large version of the picture pops-up in a new window, forming around the image.
For example: I have a 300 x 300 image, and I don't want it to take up a whole page. I want it to pop-up in a new window because then you wouldn't have to wait for all 101 thumbnails to load again, like you would went clicking "back". I know this works, I've seen it done before, but I can't find any sites that have it now that I'm looking for it. Thanks
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#2 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
Check this thread, I wrote a script that does just that.
|
|
|
|
|
|
#3 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,382
|
Thanks, DrZaius!
Now, how can I do multiple pop-ups? Do I need a seperate script for each one? |
|
|
|
|
|
#4 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
You only need to put that main script at the top of the HTML file once, then each time you call it use that link code and replace "mypic.jpg" with the name of the image.
|
|
|
|
|
|
#5 | ||
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,382
|
Ah. Okay. I got that working. Now, about the "close window" thing. You said to add... Quote:
Quote:
|