SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Photo script?

  1. #1
    SitePoint Wizard Another Designer's Avatar
    Join Date
    May 2005
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Photo script?

    Hello SitePointers,
    More and more I see websites (including sitepoint attachments), that show the photo expand to a larger image on the webpage, while the back of the page is darkened out. How is this done? Is it a script that enables this?
    I would like to be able to do this on my website which is made with Flash CS3.
    Thanks for your help.

  2. #2
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,303
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    It's a JavaScript effect, usually provided by one or another "library", like Prototype or jQuery.

    These are some pupular ones:

    Lightbox:
    http://www.huddletogether.com/projects/lightbox2/

    Slimbox
    http://www.digitalia.be/software/slimbox2

    FancyBox
    http://fancybox.net/

    Don't know about combining this with flash, though. I wouldn't build a website with Flash, myself.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Try your hand at the new JavaScript Challenge!

    If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

  3. #3
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    You shouldn't use Flash for something that can be done unobtrusively, I produced a pure CSS lightbox in an article which might be of use:

    http://downloads.sixrevisions.com/cs...ox/source.html

  4. #4
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,303
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by AlexDawson View Post
    I produced a pure CSS lightbox in an article which might be of use:
    Oooh, ah, that's beautiful work, Alex. Thanks for posting it!
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Try your hand at the new JavaScript Challenge!

    If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

  5. #5
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    No problem, I got inspired to produce it as a result of all the scripting dependency going on (as I was sure with CSS3 it could be accomplished), it has a bit of unobtrusive scripting in the background to help IE do it's job (replicating CSS3 :target) but for every other browser it'll work and do the job as well as scripting could

  6. #6
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,303
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    I particularly like what happens with CSS off. Very elegant.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Try your hand at the new JavaScript Challenge!

    If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

  7. #7
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Yea, it's much less obtrusive than conventional jQuery equivalents that'll cease to work if scripting is disabled (I'm pretty happy with it anyway).

  8. #8
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,303
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    I've gathered quite a few jQuery gallery scripts that degrade nicely. To some extent I can fix up those that don't with overflow: auto type fixes (such as carousels). Ideally I'd know enough about JS/jQuery to fix the others, too, but until then I just put them to one side.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Try your hand at the new JavaScript Challenge!

    If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

Tags for this Thread

Bookmarks

Posting Permissions

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