Jun 28

NotesForLightBox is a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on all modern browsers.
The current functionalities are:

  • Rounded corners light box
  • Navigation with buttons
  • Real slide show with progress bar

thNotesForLightBox2

thNotesForLightBox 

Live demo

How to use ?

Setup

1. NotesForLightbox uses the JQuery Library. You will need to include these two Javascript files in your header (in this order).

<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/NFLightBox.js" type="text/javascript"></script> 

2. Include the NotesForLightbox CSS file (or append your active stylesheet with the NotesForLightbox styles).

<link href="css/nf.lightbox.css" rel="stylesheet" type="text/css" media="screen" />

Call

You can call the NotesForLightbox like this:

<script type="text/javascript">

    $(function() {
        // Use this example, or... 
        $('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel 
        // This, or... 
        $('#gallery a').lightBox(); // Select all links in object with gallery ID 
        // This, or... 
        $('a.lightbox').lightBox(); // Select all links with lightbox class 
        // This, or... 
        $('a').lightBox(); // Select all links in the page 
        // ... The possibility are many. Use your creative or choose one in the examples above 
    }); 

</script>

 

Configure

Settings

///    <param name="settings" type="Options"> 
///        1: overlayBgColor - (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color. 
///        2: overlayOpacity - (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9. 
///        3: fixedNavigation - (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface. 
///        4: imageLoading - (string) Path and the name of the loading icon image 
///        5: imageBtnPrev - (string) Path and the name of the prev button image 
///        6: imageBtnNext - (string) Path and the name of the next button image 
///        7: imageBtnClose - (string) Path and the name of the close button image 
///        8: imageBlank - (string) Path and the name of a blank image (one pixel) 
///        9: imageBtnBottomPrev - (string) Path and the name of the bottom prev button image 
///        10: imageBtnBottomNext - (string) (string) Path and the name of the bottom next button image 
///        11: imageBtnPlay - (string) Path and the name of the close button image 
///        12: imageBtnStop - (string) Path and the name of the play button image 
///        13: containerBorderSize - (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value 
///        14: containerResizeSpeed - (integer) Specify the resize duration of container image. These number are miliseconds. 500 is default. 
///        15: txtImage - (string) Specify text "Image" 
///        16: txtOf - (string) Specify text "of" 
///        17: txtPrev - (string) Specify text "previous" 
///        18: keyToNext - (string) Specify text "next" 
///        19: keyToClose - (string) (c = close) Letter to close the jQuery lightBox interface. Beyond this letter, the letter X and the SCAPE key is used to. 
///        20: keyToPrev - (string) (p = previous) Letter to show the previous image. 
///        21: keyToNext - (string) (n = next) Letter to show the next image. 
///        22: slideShowTimer - (integer) number of milliseconds to change image by default 5000. 
///    </param> 

 

 

Call with settings

 

<script type="text/javascript">
    $(function() {
        var settings = { containerResizeSpeed: 350 };
        $('#gallery a').lightBox(settings);
    }); 
</script>

 

Source Code and License

 

Copyright (c) 2009, Helori LAMBERTY
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of NotesFor.net nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Tags: | |

Comments

Rohit

Posted on Tuesday, 21 July 2009 04:03

I can not download the files. Are they removed???

Dave

Posted on Wednesday, 22 July 2009 09:12

Yeah, you guys should know that the download links appear to be broken.  Not just for this, but other downloads on the site as well.  Which is too bad, since it looks like you did another stellar job with this.

blueprintds.com

Posted on Thursday, 23 July 2009 15:47

Pingback from blueprintds.com

Top 14 jQuery Photo Slideshow / Gallery Plugins | Chicago Web Design

Bruno

Posted on Tuesday, 28 July 2009 19:55

In first place... congratulations!
Well, I'm trying to improve a feature, but I don't know how.
Is possible to use a link to invoque the lightbox? A link then is outside de gallery?

blog.tuvinh.com

Posted on Tuesday, 4 August 2009 08:56

Pingback from blog.tuvinh.com

30 Awesome Jquery Photo Plugins | TuVinhSoft .,JSC

David

Posted on Tuesday, 18 August 2009 16:16

I'm having problems setting the background of the Lightbox.

I've set:
#gallery

        {
        position: absolute;

        background-color: #444;


            padding: 10px;

            width: 520px;
            left: 1000px;
            top:  200px;

        }
But the background of the picture thumbnails is still the same color like on yours.What am I missing?

Thank you

David

Posted on Wednesday, 19 August 2009 06:25

Found the solution.Must've been blind xD

wallaceerick.com.br

Posted on Saturday, 22 August 2009 17:27

Pingback from wallaceerick.com.br

| Wallace Erick

zeroone

Posted on Saturday, 19 September 2009 04:33

is it a bug?

my webpage must be use DD_belatedPNG_0.0.8a-min.js and NotesForLightBox, i include two js files


Code:

<script type="text/javascript" src="/images/NFLightBox.js"></script>
<script type="text/javascript">
  $(function() {
            $('#big').lightBox();
        });

</script>
<!--[if IE 6]>
<script src="/images/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
  /* EXAMPLE */
  DD_belatedPNG.fix('.main_left,.main_right,.probox,img');
  
  /* string argument can be any CSS selector */
  /* .png_bg example is unnecessary */
  /* change it to what suits you! */
</script>
<![endif]-->

now there is bug,  when i used IE6 open the page , click the link open the lightbox then i click the colse button,the lightbox it cann't to be close.

sorry! my E is poor.

Helori

Posted on Tuesday, 22 September 2009 03:03

I did not know this bug, I will check and give you a feedback by email if I find a solution.

Regards,
Helori

accessko

Posted on Friday, 2 October 2009 09:47

Hi
First I want to thank you for making this gallery. Great job.

I got a question about the use of the gallery.

Is it possible to make a category's of the images so only the images of the category will be shown in a graybox?

Regards,

Accessko

marketing internet

Posted on Wednesday, 14 October 2009 13:18

I just couldnt leave your website before saying that I really enjoyed the quality information you offer to your visitors... Will be back often to check up on new stuff you post!

Acai Bær

Posted on Thursday, 15 October 2009 14:42

Great writeup.. I guess you summed it all up.. Cheers

How to stop panic attacks

Posted on Friday, 30 October 2009 05:26

This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article!

All Natural Weight Loss

Posted on Friday, 6 November 2009 22:00

you make things easier for us.
thank you for posting these codes
i hope i can make more out of these
codes.

Oes Tsetnoc

Posted on Thursday, 12 November 2009 09:20

Excellently written article, if only all bloggers offered the same content as you, the internet would be a much better place. Please keep it up! Cheers.

computer blog

Posted on Friday, 20 November 2009 13:32

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can’t wait to read lots of your posts.

Outsourcing

Posted on Wednesday, 25 November 2009 02:15

I was just thinking about NotesForLightBox and you have really helped out. Thanks!

Joe Carver

Posted on Friday, 18 December 2009 01:14

Thanks for the great work! I have integrated NFLightBox with the upcoming release of Coppermine Photo Gallery 1.5 that also uses jsquery. Your copyrights and statements remain.
Thanks again

dayak

Posted on Wednesday, 23 December 2009 12:20

Excellently written article, if only all bloggers offered the same content as you, the internet would be a much better place. Please keep it up! Cheers. I just couldnt leave your website before saying that I really enjoyed the quality information you offer to your visitors

stock photography

Posted on Wednesday, 30 December 2009 06:30

NotesForLightBox is a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on all modern browsers.

Kat

Posted on Thursday, 31 December 2009 06:47

Thats really cool, do you think I will be able to add it to my site? http://watchlivetv-online.com

pension annuities

Posted on Friday, 15 January 2010 07:06

This article gives the light in which we can observe the reality. this is very nice one and gives indepth information.

corporate entertainment ideas

Posted on Friday, 15 January 2010 15:35

This article gives the glow in which we can watch the veracity. This is very nice one and gives in-depth information. Thanks for this nice article!

Games

Posted on Monday, 18 January 2010 06:13

Searching for this for some time now - i guess luck is more advanced than search engines Smile

Woland

Posted on Tuesday, 19 January 2010 13:42

I have some bug in IE6. The bottom part of container (where "Image... of...") going down under the bottom end of screen. Sample is here: http://www.woland.info/tmp/bug.jpg

chopper tattoo

Posted on Thursday, 28 January 2010 01:18

This is such a cool story, I believe that the proof is all around us, and modern science and the massive increase in knowledge shows even more proof of a higher being!

colloidal silver products

Posted on Sunday, 31 January 2010 20:30

Thanks for this very useful info you have provided us. I will bookmark this for future reference and refer it to my friends. More power to your blog.

Apex Professionals LLC

Posted on Monday, 1 February 2010 03:08

This is a cool screen idea ! It is very interesting indeed.Thank you for your info.i love to read all info.This article gives the light in which we can observe the reality.

IVA

Posted on Thursday, 4 February 2010 03:20

Excellently written article, if only all bloggers offered the same content as you, the internet would be a much better place.

Chapel Hill Real Estate

Posted on Saturday, 6 February 2010 09:56

This is great! Just what I was looking for, Thanks for the coding & the demo.

printing magazine

Posted on Saturday, 13 February 2010 12:35

Thanks for this very useful info you have provided us. I will bookmark this for future reference and refer it to my friends. More power to your blog.

Ozan

Posted on Saturday, 13 February 2010 19:04

I can not use php; When I click the image file can not find the other;When I click the blank page comes

Oriya Matrimony

Posted on Sunday, 14 February 2010 07:36

Thank you for sharing, it's really a nice articles, pics are also cool

Oni Akuma

Posted on Monday, 22 February 2010 01:57

I really love this script -  is there a way to have the images pop up full size not auto-downsized for the browser size limits?  I am using images 1200 pixels tall and I am ok with them extending beyond current view and requiring vertical scrolling since a user will only click when they want to see a very detailed view...

Thanks in advance to anyone that might have any ideas where to start...

O.A.

purifier

Posted on Thursday, 25 February 2010 00:31

Love the rounded corners feature.  I hated having to make graphics for the rounded corners manually in photoshop

Add comment




  Country flag

biuquote
Loading