Create LightBox Effect Image Display In Blogger

To know what a LightBox effect is, click on the image below (click on it, once the page loads completely):

You may have seen this effect earlier in other websites, but on a blogger blog, you may be seeing this for the first time.

So if are impressed with the hack, and want to apply this to your blog too, then follow these steps:

Download these two files from Ziddu:

1. lytebox.js
2. lytebox.css

Download Link

And then upload these two files to (You need to register first)
NOTE: Edit and Save the properties of the folder at your mydatanest account as “hidden” and NOT as “private.”
After uploading the files, copy the DIRECT LINKS to these files.

Log in to Blogger, go to Layout -> Edit HTML tab
Now find this in the template:


And immediately ABOVE it, paste this code

<!–LIGHTBOX-IMAGES-STARTS–><link rel=”stylesheet” href=”” type=”text/css” media=”screen” />
<script type=”text/javascript” src=””></script><!–LIGHTBOX-IMAGES-STOPS–>

You may freely use the code AS IT IS in your template, but I would appreciate if you replace the CODE in RED with the DIRECT LINKS you got from STEP 1.

Now once this is done, whenever you want to add this effect to any image, then simply add the red code along with the usual code used for linking an image:

<a href=”http://TARGET_ADDRESS_OF_THE_IMAGE.jpg” rel=”lytebox”><img src=”http://SOURCE_ADDRESS_OF_THE_IMAGE.jpg”></a>

NOTE: This NOTE is very important if, you want to use this hack on images uploaded on Blogger.

In blogger, when you normally upload any image, you see two links in the HTML Code, viz.




So if you want to use this hack , then IT IS VERY IMPORTANT to edit the first link (href). Modify it like this:

change s1600-h to this s1600 in the link, and then publish the post.
Credits: Markus F. Hay from LyteBox was originally derived from the Lightbox class (v2.02) that was written by Lokesh Dhakar. For more information please visit HuddleTogether

39 thoughts on “Create LightBox Effect Image Display In Blogger