Crazy Developer

...feel free to become an authority

Welcome to my technical blog. Hope the information enclosed will help you to improve the abilities and resolve the IT issues.
The most popular categories are BlogEngine.NET related info, downloads.
Also, you may be interested by my CV and thesis. Look for more info at About.

prettyPhoto jQuery based lightbox is a jQuery based lightbox clone. It supports images, videos, flash, YouTube, iFrames. It’s a full blown media lightbox. Just click any of the images below and media presentation and navigation popup will start. The setup is easy and quick, plus the script is compatible in every major browser:

  • Firefox 2.0+
  • Safari 3.1.1+
  • Opera 9+
  • Internet Explorer 6.0+

 

The extension will be automatically enabled for any link element <a> just by adding rel="prettyPhoto[gallery id]"

 Look here for an working example.

 

 

Examples

Image Gallery popup

The HTML layout is:

<a title="younger sister" href="http://babooo.md/Natasha/image.axd?picture=IMG_2821.jpg" rel="prettyPhoto[1]">

<img height="95" alt="Nataly" src="http://babooo.md/Natasha/image.axd?picture=IMG_2821.jpg" width="90" />

</a>

<a title="older sister" href="http://babooo.md/Sasha/image.axd?picture=IMG_2177_1.jpg" rel="prettyPhoto[1]">

<img height="95" alt="Sasha" src="http://babooo.md/Sasha/image.axd?picture=IMG_2177_1.jpg" width="70" />

</a>

Nataly Sasha

 

Flash content popup

The HTML layout is:

<a title="Flash 10 demo" href="http://www.adobe.com/products/flashplayer/include/marquee/design.swf?width=792&amp;height=294" rel="prettyPhoto[flash]">

<img alt="Flash 10 demo" src="http://sirbu.babooo.md/file.axd?file=flash.jpg" width="60" />

</a>

<a title="Vimeo Movie" href="http://vimeo.com/moogaloop.swf?width=580&amp;height=326&amp;flashvars=clip_id=4321799…;color=&amp;fullscreen=1" rel="prettyPhoto[flash]">

<img alt="Vimeo movie" src="http://sirbu.babooo.md/file.axd?file=flash.jpg" width="60" />

</a> 

Flash 10 demo Vimeo movie

 

Youtube content popup

<a href="http://www.youtube.com/watch?v=wtXNNAs9u0M" rel="prettyPhoto[tube]">

<img alt="YouTube" src="http://sirbu.babooo.md/file.axd?file=flash.jpg" width="60" />

</a>

<a title="H2O" href="http://www.youtube.com/watch?v=O_2lYwoXIak" rel="prettyPhoto[tube]">

<img height="97" alt="H2O" src="http://img.youtube.com/vi/O_2lYwoXIak/2.jpg" width="130" />

</a>

YouTube

H2O

 

Quicktime videos popup

<a title="Terminator!" href="http://movies.apple.com/movies/wb/terminatorsalvation/terminatorsalvation-tlr3_h.480.mov?width=480&amp;height=204" rel="prettyPhoto[movies]">

<img alt="Terminator Salvation" src="http://sirbu.babooo.md/file.axd?file=quicktime.png" width="60" />

</a>

<a title="Angels &amp; Demons" href="http://movies.apple.com/movies/sony_pictures/angelsanddemons/angelsanddemons-video_h.480.mov?width=480&amp;height=260" rel="prettyPhoto[movies]">

<img alt="Angels &amp; Demons" src="http://sirbu.babooo.md/file.axd?file=quicktime.png" width="60" />

</a>

<a title="Food, Inc." href="http://movies.apple.com/movies/magnolia_pictures/foodinc/foodinc_h.480.mov?width=480&amp;height=260" rel="prettyPhoto[movies]">

<img alt="Food, Inc." src="http://sirbu.babooo.md/file.axd?file=quicktime.png" width="60" />

</a>

Terminator Salvation Angels & Demons Food, Inc.

 

External iframe popup

<a title="Google.com opened at 100%" href="http://www.google.com?iframe=true&amp;width=100%&amp;height=100%" rel="prettyPhoto[iframes]">

Google.com

</a>

<a href="http://www.apple.com?iframe=true&amp;width=500&amp;height=250" rel="prettyPhoto[iframes]">

Apple.com

</a>

<a href="http://www.twitter.com?iframe=true&amp;width=400&amp;height=200" rel="prettyPhoto[iframes]">

Twitter.com

</a>

Google.com   Apple.com   Twitter.com

 

 

Installation

Download the prettyPhoto.zip and unpack it in your BlogEngine .Net root folder

Here an original prettyPhoto javascript file is included, two .css and two files to be placed in the BlogEngine extensions. Please let me know if any problems.

 

Using

To do so, simply:

  1. For every new gallery, select a new gallery id
  2. Create a link (<a href=”#”>).
  3. Add the rel attribute “prettyPhoto” to it (rel=”prettyPhoto[gallery id]”).
  4. Change the href of your link so it points to the full size image, url to a .SWF or .MOV file, youtube video page or a link to a webpage.
  5. Customize the appearence of your link (by inserting images inside, for instance)
  6. Add new links until necessary (by returning to the step 2)


You can also add a title and a description to your picture:

  1. To have display a title, add the title into the ALT attribute or your thumbnail image.
  2. To have display a description, add the description into the TITLE attribute or your link.

Comments

  • pingback education.imremarkablebonus.org Said,

    Pingback from education.imremarkablebonus.org

    Macao Movie

    Posted on 12/3/2009 3:50:28 PM

  • sirbu sirbu Said,

    thank you, it helps me to begin with this kind of blog engine

    Posted on 1/24/2010 2:41:32 PM

  • Seattle SEO Seattle SEO Said,

    Sirbu, thanks for this nice idea, i am working now for my blogengine.net. Keep up the good work.

    Posted on 1/29/2010 2:05:53 PM

  • Add comment


    (Will show your Gravatar icon)

      Country flag

    biuquote
    • Comment
    • Preview
    Loading



    Babooo.md 1.5 is the system on top of the site family *.babooo.md, *.babooo.us, *.babooo.ru and *.babooo.eu. It is running on top of MS Windows 2008 tuned up to roles IIS 7.0 and DNS server, SQL Server 2008, Adobe Flash Media Server 3.5 and .Net Framework 3.5.

    System components

    Mainly it is two major components for now:

    1. Crazy Babooo video mail system with video live conferences and chat supporting.

    2. Blogs system based on deeply enhanced and customized .Net BlogEngine. You can try Crazy developer Blog, Babooo.md Blog, Personal Alionka blog, Psychology Blog, Sasha Blog, Natasha Blog and so on.

    The ongoing development of Babooo.md can be followed at Babooo.md Blog where you can buy the software.

    Good luck and enjoy.

    The Babooo.md team

    Welcome to Babooo.md 1.5

    Posted by sirbu