njdirt Posted March 10, 2010 Share Posted March 10, 2010 Hello, So I'm trying to make it so that on my site, when a user clicks a particular image, a semi-transparent <div> shows up covering 100% of the site and the larger image is shown centered on top of this. I know there must be a popular code out there to do this as I've seen it many times. Unfortunately, I can't remember any sites I've seen it on... if you have seen this, could you please post a link to a site that uses it? Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/194706-show-fullsize-image-in-over-page/ Share on other sites More sharing options...
njdirt Posted March 10, 2010 Author Share Posted March 10, 2010 Here is an example that uses Flash. I know there is something that uses only CSS though. http://www.huddletogether.com/projects/lightbox2/ Link to comment https://forums.phpfreaks.com/topic/194706-show-fullsize-image-in-over-page/#findComment-1023957 Share on other sites More sharing options...
haku Posted March 10, 2010 Share Posted March 10, 2010 There is nothing that uses only CSS, but it can be done with javascript (and a combination of CSS). Anyways, here is a very comprehensive list of different scripts that can do what you want (its called a lightbox by the way): http://planetozh.com/projects/lightbox-clones/ Link to comment https://forums.phpfreaks.com/topic/194706-show-fullsize-image-in-over-page/#findComment-1023982 Share on other sites More sharing options...
njdirt Posted March 10, 2010 Author Share Posted March 10, 2010 Thanks Haku, you're right, it does require Javascript. I am going to use the Lightbox2 code from the link I posted up. Thanks for your quick response, too! Link to comment https://forums.phpfreaks.com/topic/194706-show-fullsize-image-in-over-page/#findComment-1023991 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.