JQuery Lightbox Image Overlay Pop Out Effect For Blogger

Ads by Google
JQuery Lightbox Image Overlay Pop Out Effect For Blogger
Step 1. go to your Blogger dashboard click Design > Edit Html.
Step 2. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code)
]]></b:skin>

And put this code directly Above the following code.

/*start css lightbox*/
/**
* jQuery lightBox plugin
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
* and adapted to me for use like a plugin from jQuery.
* @name jquery-lightbox-0.5.css
* @author Leandro Vieira Pinho - http://leandrovieira.com
* @version 0.5
* @date April 11, 2008
* @category jQuery plugin
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
* @license CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
*/
#jquery-overlay {
position: absolute;
top: 0;
left: 0;
z-index: 90;
width: 100%;
height: 500px;
}
#jquery-lightbox {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
line-height: 0;
}
#jquery-lightbox a img { border: none; }
#lightbox-container-image-box {
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
}
#lightbox-container-image { padding: 10px; }
#lightbox-loading {
position: absolute;
top: 40%;
left: 0%;
height: 25%;
width: 100%;
text-align: center;
line-height: 0;
}
#lightbox-nav {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
}
#lightbox-container-image-box > #lightbox-nav { left: 0; }
#lightbox-nav a { outline: none;}
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
width: 49%;
height: 100%;
zoom: 1;
display: block;
}
#lightbox-nav-btnPrev {
left: 0;
float: left;
}
#lightbox-nav-btnNext {
right: 0;
float: right;
}
#lightbox-container-image-data-box {
font: 10px Verdana, Helvetica, sans-serif;
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
overflow: auto;
width: 100%;
padding: 0 10px 0;
}
#lightbox-container-image-data {
padding: 0 10px;
color: #666;
}
#lightbox-container-image-data #lightbox-image-details {
width: 70%;
float: left;
text-align: left;
}
#lightbox-image-details-caption { font-weight: bold; }
#lightbox-image-details-currentNumber {
display: block;
clear: left;
padding-bottom: 1.0em;
}
#lightbox-secNav-btnClose {
width: 66px;
float: right;
padding-bottom: 0.7em;
}
/*end lightbox css*/

Step 4. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code)


</head>

And put this code directly Above the following code.

<!--Start lightbox scripts info from http://www.spiceupyourblog.com-->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js' type='text/javascript'/>
<script src='http://suyb.googlecode.com/files/jquery.lightbox-0.5.min.js' type='text/javascript'/>
<script type='text/javascript'>
$(function() {
$(&#39;a.spicebox&#39;) .lightBox({

overlayOpacity: 0.6,
imageLoading: &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNLj1NjM9BvVv5WfUTkl83CEtUjhRwvuDr-MM7Qni8VFn0jZMDg58I0ame-iW32rinfjHJUB5tkf1OUwtRAViunhy5Lm4_kFgL87aGp45qgEU7iaS-Wh_O4h9oWscgCwxg6XKtgwopMhxg/s1600/lightbox-ico-loading.gif&#39;,
imageBtnClose: &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihmop4OcAGqXVi0fw11pyUvCGindJKX7-6iuBMOc0EZ9aDc0dFkoP6mKCzhMFCkcT0OMDmIzsoVOTimJPEm11Y8jAijwgfgg-U3XA0aF9Ig-MRcXbAAaaz9KOtDvtW886wEVxWsq-lYCZJ/s1600/lightbox-btn-close.gif&#39;,
imageBtnPrev: &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW6Kc6XdrnP44_Ys9FS3GBfkIPgqMg4vdGPu91dAzRYmoqvepgjCuiO0WyJO_GufAU1wgHHOxb__xfb3nNE-EsKVePRuJPVe2w-Qdklag-QcDOtZex5DbqeinVszd7WRu2qZXINVUolUlS/s1600/lightbox-btn-prev.gif&#39;,
imageBtnNext: &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJaE7LpHlz0oogh6WTh3F4lWu8YSkBfPba-pTzFYgmcPzUY2CJXpHaphUYBvrrHPohcjKIFJBOlSVTDMw815wNRaiR0_MwdhLP8Gwrzp-6dUhT4Ho43DSLFktorRoSt_qGaspeKSQyXdxF/s1600/lightbox-btn-next.gif&#39;,
containerResizeSpeed: 350,
txtImage: &#39;Image&#39;,
txtOf: &#39;Of&#39;
});
});
</script>
<!--end lightbox scripts-->


Save your template, that's the Css and Script added next we see how to add it to selected images.

When you add an image to your blog that you want to use the lightbox effect simply add class="spicebox" and title="Description Here".

<a class="spicebox" title="Image Description Here" href="http://image.jpg"><img src="http://image.jpg"></a>

Red - The Class Must Be Added To Images Were Shown.
Blue - Add Title And Replace Image Description Here With Your Description.

 
Powered By Blogger ©2011 - White blending ads Template | Design by: Rea Alfa The Doctor Template| Sponsored by: Freia media