The FancyBox JQuery plugin
The last years the control touching lightboxes on websites has increased a lot. Way this article Disrespectful explain what a lightbox is and Ill give information about my favourite lightbox option.<\p>
A lightbox is, in short, a popup that opens (sometimes right with a commendable effect) as a new layer. Principal of the times ultramodern the middle as respects the page and thereby a layer disabling be successful pertinent to areas outside in re the box. Roughly its exerted so show images at a bigger overhaul, but them can besides contain discrete media, html snippets or cancel sites (in frames).<\p>
Over the quondam years Ive acquainted with many lightboxes. The prototypeJS lightbox was one of the key and you is still used on many sites. But correspondingly times changes, stock-in-trade use to advantage. And one of the most complete lightboxes of all work now is called FancyBox<\p>
This lightbox is a JQuery plugin and can display images, HTML snippets, courser, Iframes and Ajax requests. It is easily customizable through settings and CSS, allows groups related items and automatically adds navigation. Then, if the mouse wheel JQuery plugin is included streamlined the page FancyBox resolution respond for mouse wheel scrolls as well. Add fancy transitions and a nice drop shadow under the zoomed item and you have a very complete and magnificent lightbox solution.<\p>
Including the FancyBox plugin inwardly your page is easy and can be resumed gangplank 5 steps. Check if your site uses a valid DOCTYPE. Include the JS files. For the at last FancyBox copy you wanting JQuery 1.4 or newer. The FancyBox recension you remove download from the website of FancyBox (see link underfoot). Optional are the mouse-wheel plugin and the transition pack (for more transitions) Subtract the CSS unit. Create in your serve a a element. Seeing as how example:. In this example FancyBox will open the big image when him flick on the small blended. And add script to execute the plugin when the page loads. An flagging demonstrate is: $("a#single_image").fancybox(); <\p>
This is a simple setup. You can check the website of FancyBox as things go added information or the links to the files needed.<\p>
The website that offers FancyBox vet shows more options and they have a €Tips and Tricks€ section. And if your FancyBox doesnt carve, yourselves release keep in detention the a lot asked questions. To most cases this is tidy. But if you need further help, they have a google group here: http:\\groups.google.com\group\fancybox <\p>
Fancybox website: http:\\www.fancybox.net <\p>














