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! Quote Link to comment 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/ Quote Link to comment 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/ Quote Link to comment 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! 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.