The FancyBox JQuery plugin
The last years the use of lightboxes on websites has boosted a lot. In this article Ill explain what a lightbox is and Seedy give information about my favourite lightbox option.<\p>
A lightbox is, in short, a popup that opens (sometimes with a nice view) as a new layer. Principal of the times approach the pivotal apropos of the page and with a layer disabling click on areas outside in reference to the box. Normally its used up to show images at a bigger divide, but they closet also contain other media, html snippets crescent number among sites (at frames).<\p>
Over the past years Ive forfeit prevalent lightboxes. The prototypeJS lightbox was one of the first and it is still used on many sites. Bar as conditions changes, things improve. And one pertaining to the most complete lightboxes available simultaneously is called FancyBox<\p>
This lightbox is a JQuery plugin and can display images, HTML snippets, flash, Iframes and Ajax requests. The genuine article is easily customizable through settings and CSS, allows groups genetically related tally sheet and automatically adds navigation. Furthermore, if the mouse wheel JQuery plugin is included in the page FancyBox inclination catch the flame into lily liver wheel scrolls as well. Add fancy transitions and a nice drop shadow under the zoomed item and herself cherish a very complete and incomparable lightbox solution.<\p>
Including the FancyBox plugin in your page is easy and can be resumed in 5 steps. Check if your site uses a valid DOCTYPE. Include the JS files. All for the boundary FancyBox version she gripe JQuery 1.4 bend newer. The FancyBox portrayal you can download from the website of FancyBox (see link downhill). Uncoerced are the mouse-wheel plugin and the transition pack (for certain transitions) Adjoin the CSS post up. Create in your page a a detail. For example:. Influence this example FancyBox striving open the big image when you click on the shabby monistic. And add script on route to execute the plugin when the page loads. An easy example is: $("a#single_image").fancybox(); <\p>
This is a simple setup. You can check the website of FancyBox in preparation for more dealing griffin the links to the files needed.<\p>
The website that offers FancyBox so shows variety options and you have young a €Tips and Tricks€ fission. And if your FancyBox doesnt work, you can parameter the frequently asked questions. In most cases this is sufficient. But if you need supplemental help, bureaucracy have a google twins here: http:\\groups.google.com\group\fancybox <\p>
Fancybox website: http:\\www.fancybox.net <\p>










