Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image Pop-Up, with javascript and CSS

    Hi everyone,
    i'm kind of new to this forum, so if i don't give enough information, ask for it.
    i'm trying to make a website and i love the effect when a visitor clicks on an image, it pops up so they can view it a little bigger. i think it's called "lightbox" i'm not sure. but i wanted to know if there is a way to have something like this:
    Code:
    <img src="img/image.png" ID="lightbox" />
    so what i mean is, i don't want a link around the image, i want the image to have a specific ID that makes it pop up.

    any suggestions?

    thank you!

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,085
    Thanks
    15
    Thanked 245 Times in 245 Posts
    Lightbox involves a lot of code and uses jQuery, you can download load it and try it out, it doesn't even have to be on a server to use it, it can be used on files in your own machine. It's also complicated and fussy, and doesn't play very well with other things on a page.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •