Slimbox Example PDF Print E-mail
Sunday, 26 November 2006

There's a very popular JavaScript out there called Lightbox JS 2.0. It's a great way to show off images and create impromptu photo galleries. The only problem is that it's heavy and dramatically degrades the performance of your website. Fortunately there's a fantastic 'clone' called Slimbox that utilizes the great mootools JavaScript library to produce the same effect but with far less JavaScript, and advanced loading techniques that subsequently produces faster loading and more responsive pages. Sporticus fully integrates the JavaScript and the CSS so all you have to do to utilize this technique is an an extra element to your image link.

Check out the demo below:

sample image1 sample image1 sample image3 sample image4 sample image5 sample image6 sample image7 sample image8

Add the rel="lightbox" attribute to the links pointing to your full-sized images. Use the optional title attribute if you want to show a caption:

<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a> 

For sets of related images that you want to group and make navigable, add a group name to the rel attribute after ìlightboxî, for example inside square brackets:

<a href="images/image-1.jpg" rel="lightbox[colorado]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[colorado]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[colorado]">image #3</a> 

Alternatively, you can also launch the Lightbox effect using JavaScript to display a single image. Just call the following method, passing the URL of the image as first parameter and optionally a title as second parameter:

Lightbox.show('images/image-1.jpg', 'Spheres in construction');
 

Living in Canada

You can live in Canada as an immigrant or as a temporary visitor. This section has a wealth of information on immigration and settling in Canada and frank advice on business in Canada.

The NewCanadian is back!!

The NewCanadian Magazine was born in September 2002, when a group of young writers and graphic designers came together for its inaugural issue. The magazine sought to write on Canadian business culture and politics reflecting Canadian society as it truly is. The  Magazine was distributed through the Globe and Mail and soon found a loyal following amongst opinionmakes and scholars.

In January 2006, faced with ever increasing costs of printing and distribution, the NewCanadian ceased print publication. The NewCanadian Magazine is back as a rejuvinated, online publication. We will continue in the best journalistic traditions, independant, free and vocal.

We invite writers and grahic designers to contribute their talents in making this site , the last word on Canada. 

 

 

Syndicate