Results 1 to 3 of 3

Thread: Facebox

  1. #1
    Join Date
    Jun 2006
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Facebox

    1) Script Title: Facebox image and content viewer (v 1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ebox/index.htm

    3) Describe problem: More of a request...



    Hi everyone.

    I've been fiddling with this lovely new script like an amateur but I can't get my way. What I'd really like is to be able to close the Facebox by clicking on its content, as you can with the "Lightbox image viewer" (http://www.dynamicdrive.com/dynamici...tbox/index.htm)

    Possible?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, try changing the line:

    Code:
    $('#facebox .close').click($.facebox.close)
    inside the .js file to just:

    Code:
    $('#facebox').click($.facebox.close)

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    MattyBumBum (03-22-2008)

  4. #3
    Join Date
    Jun 2006
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Crikey, as simple as that, so much for my fiddling about. Well, at least I learned some stuff from it.


    Many thanks sir!

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
  •