VHPirie Posted November 27, 2007 Share Posted November 27, 2007 A few months back I came across something on here, a topic someone started asking for help with an image gallery. I can't seem to find it so thought I might see if anyone knows how to do wat I'm looking for. I think javascript might of been used as well. What I need to do is show some thumbnails on a page, then once clicked it shows the bigger picture above the thumbnails. Somehow javascript was used so the page didn't have to reload for every picture, but instead the picture on the page just changed. Here's something similar: http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/ On there you just mouseover the image and it displays, then goes away when u move off the image, but I want the image to dsplay once the thumbnail is clicked, then change to the new picture when another thumbnail is clicked. One more thing, how would I get a script to get the URL for every picture in a directory? So then I can make the script display new uploaded pictures as soon as they are uploaded into the directory. I'm sry if that doesn't make sense, but just thought I would ask. I've been looking for a few hours, and still looking now, just thought I may as well ask on here as well incase someone knows. Cheers, Danny Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted November 27, 2007 Share Posted November 27, 2007 I like to use this for that it is called OVERLIB http://www.macridesweb.com/oltest/ check out 19. loading HTML files into popups go here http://www.macridesweb.com/oltest/harley.html and move your mouse over the dances link in the Greek Dances. Quote Link to comment Share on other sites More sharing options...
VHPirie Posted November 27, 2007 Author Share Posted November 27, 2007 thx mate, will take a look. Here's sumfin else I found which I'm having a play with at the moment....it's pretty much wat I'm after, just need to incorporate sumfin into it to automatically generate a variable for new images in a directory. http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm Quote Link to comment Share on other sites More sharing options...
VHPirie Posted November 27, 2007 Author Share Posted November 27, 2007 Also found this thread which helped me with displaying images in a directory automatically... http://www.phpfreaks.com/forums/index.php/topic,150140.0.html Have put them both 2gether and have it working now. Quote Link to comment Share on other sites More sharing options...
VHPirie Posted November 28, 2007 Author Share Posted November 28, 2007 Well after I got all this working, it's not very effective when there is about 100 thumbnails (I have 4 in a row) and when ya get near the bottom ya click on a picture and have to scroll up to see it. I had a look at that link again which BenInBlack posted and the greek dancer window I think is wat I need. But there's a problem, I wouldn't have a clue how to decypher all that to get wat I need haha. Does anyone how to have a picture popup and have the box follow the top of the screen, so when u scroll down it comes down as well? Basically exactly like the greek dancer thing in BenInBlack's link. I'll have another play 2night and see if I can work sumfin out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.