Lightbox (JavaScript): Difference between revisions

Content deleted Content added
Reverted good faith edits by 82.24.163.100; Invalid source as ref. (TW)
Line 12:
| website = http://www.lokeshdhakar.com/projects/lightbox2/
}}
'''Lightbox''', and the newer '''Lightbox 2''', is a [[JavaScript]] application used to display large images using [[Modal window|modal dialogs]]. The script has gained widespread popularity due to its simple yet elegant style and easy implementation. While it was initially developed from scratch, Lightbox has since been modified to use a number of JavaScript libraries (such as the [[Prototype Javascript Framework]]<ref name="Herrington">{{cite web | last = Herrington | first = Jack D | date = | title = Ajax and XML: Ajax for lightboxes | work = [[IBM DeveloperWorks]] | url = http://www.ibm.com/developerworks/library/x-ajaxxml6/ | accessdate = 2008-05-21 }}</ref> and [[script.aculo.us]]<ref name="Schmitt">{{cite book | last = Schmitt | first = Christopher | year = 2006 | title = CSS Cookbook | publisher = [[O'Reilly]] | isbn = 0596527411 | pages = p. 204 }}</ref> for its animations and positioning), in order to reduce the size of the code.<ref name="Resig">{{cite book | last = Resig | first = John | year = 2006 | title = Pro JavaScript Techniques | publisher = [[Apress]] | isbn = 1590597273 }}</ref> The release of Lightbox encouraged other developers to work on similar projects, resulting in products such as the later Thickbox and lighter Slimbox.<ref name="Resig" />. Some website designers have developed their own custom lightboxes since this aproach gives the developer absolute control over the appearance and contents of the lightbox <ref>http://fourpawscatrescue.co.uk/Adopt.php</ref>
 
== How it works ==
Line 25:
 
Many users have also noted that there is a lack of compatibility across the [[Internet Explorer]] range of browsers. However, many times the compatibility issues can be attributed to users not reading the documentation on how to make lightbox function correctly in these browsers.{{Citation needed|date=February 2010}}
 
== Alternatives ==
Use of scripts such as lightbox 2 gives the website developer limited control over the appearance of the lightbox since most users don’t have sufficient understanding of the coding needed to modify the lightbox. As a result some web developers design their own lightboxes so that they are able to fully control the appearance and content of the lightbox. <ref>http://fourpawscatrescue.co.uk/Adopt.php</ref>
 
== References ==