Jquery Lightbox for Blogger | Blogspot

jquery lightbox in blogger.. jquery may be difficult to apply to a Blogspot blog but it is not imposible. this simple way is to host files on google and link jquery to your blogger. i have added a jquery image gallery to my blog below is the demo of jquery image viewer, image gallery, it includes three parts .js file CSS part and Naming the image to work with jquery script.

Blogger jquery lightbox tutorial

Demo of lightbox in Blogger/Blogspot:

lightbox in blogger | blogspot lightbox tutorial | blogger jquery lightbox lightbox in blogger | blogspot lightbox tutorial | blogger jquery lightbox
lightbox in blogger | blogspot lightbox tutorial | blogger jquery lightbox lightbox in blogger | blogspot lightbox tutorial | blogger jquery lightbox

How to install lightbox in Blogger


step 1: adding jquery in Blogger:

Copy the below code and past it after the <Head> section in Edit HTML of the Blogger template
Incase lightbox does not work change the position of this code in head of the template... try adding above </HEAD> or after the title and meta tags...

<script src='http://jquery-hosting-blogge.googlecode.com/files/lightbox.js' type='text/javascript'/>

step 2: adding style to lightbox:


To add CSS code to your Blog, Go to Design>Edit HTML, find ]]</b:skin> past the code above it and Save Template

OR Go to Template Designer>Advanced>Add CSS, Past the code and click on Apply to Blog
#lightbox{
 background-color:#eee;
 padding: 10px;
 border-bottom: 2px solid #666;
 border-right: 2px solid #666;
 }
#lightboxDetails{
 font-size: 0.8em;
 padding-top: 0.4em;
 } 
#lightboxCaption{ float: left; }
#keyboardMsg{ float: right; }
#closeButton{ top: 5px; right: 5px; }

#lightbox img{ border: none; clear: both;} 
#overlay img{ border: none; }

#overlay{ background-image: url(http://1.bp.blogspot.com/-B6R41EjOobU/TrZkBklKcrI/AAAAAAAAEk8/dBzVL1ojJSY/s1600/overlay.png); }

* html #overlay{
 background-color: #333;
 background-color: transparent;
 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://2.bp.blogspot.com/-IuRWmtxsbLg/TlDQr1esv2I/AAAAAAAABTw/FiWsnpa0Gcw/s320/overlay.png", sizingMethod="scale");
 }

step 3: Adding rel="lightbox" to image:

Simply give image a rel rel="lightbox" attribution to the image
<a href="image-url" rel="lightbox" title="lightbox"><img src="url-of-image" width="150" Height="160"/></a>
upload all images and add rel="lightbox" to all images to make lightbox image gallery <a href="image-url" rel="lightbox"><img src="image"></a>

0 Comments | Post a comment:

Post a Comment

Find us on Facebook