prettyPhoto, a jQuery lightbox clone

Posted by jcargoo | Tuesday, November 18, 2008
| 0Delicious Twitter Reddit Digg Loading...

























Stephane Caron wrote a very nice lightbox jQuery plugin called

prettyPhoto.

This plugin has been tested and is known to work in the following browsers:

• Firefox 3.0 (Mac/PC/Linux)
• Firefox 2.0 (Mac/PC)
• Safari 3.1.1 (Mac)
• Internet Explorer 6.0 (PC)
• Internet Explorer 7.0 (PC)

Simple to use it, just do like this:
Add rel="prettyPhoto" to any picture you want to activate the prettyPhoto feature.
<a href="images/fullscreen/1.jpg" rel="prettyPhoto" title="Description">
<img src="/images1.jpg" alt="Picture 1 title" />
</a>
Then initialize prettyPhoto.
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
For more details, please visit the site here.




How to encourage this blog if you like it:
  • Promote our sponsors;
  • Add any kind of comment or critic;
  • Ask me directly by email if you prefer.
Just do something like that, and I will have the huge pleasure to continue posting the best of the creativity I have.




Share this post ?

Digg Reddit Stumble Delicious Technorati Twitter Facebook

0 Previous Comments