Thursday, April 28, 2011

How To Add Images Gallery Widget With jQuery Hover / Zoom To Your Blogger

To add a very attractive gallery to your blog  Follow the Steps given below

Add Gallery Codes To Your Template.

Go To your blogger dashboard, layout >> Edit html >>
And find this code,

]]></b:skin>
 
 
And Before it, Add theFollowing Code , 
 
 
/* Blogger Zoom Gallery By coderlab.blogspot.com */
ul.thumb {
float: left;
list-style: none;
margin: 0; padding: 10px;
width: 360px;
}
ul.thumb li {
margin: 0; padding: 5px;
float: left;
position: relative;  /* Set the absolute positioning base coordinate */
width: 110px;
height: 110px;
}
ul.thumb li img {
width: 100px; height: 100px; /* Set the small thumbnail size */
-ms-interpolation-mode: bicubic; /* IE Fix for Bicubic Scaling */
border: 1px solid #ddd;
padding: 5px;
background: #f0f0f0;
position: absolute;
left: 0; top: 0;
}
ul.thumb li img.hover {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSHeMuwtbEgHRqwG7vp9ZvVEx49hEvnOFUDxNK_qGwqZkun1oRGDZCWe-XxXJaMWv1roExMTBpMGMj2w4U80xJYb_PuiNer-DnLq7pm511o-yfHh_h2uFUe6AdcSCUqz9yVlTjyW21a90x/s200/thumb_bg.png) no-repeat center center;  /* Image used as background on hover effect
border: none; /* Get rid of border on hover */
}
 
 
 
Then Find this Tag 
</head>
 
 
 
And add the next code before it. 
 






 
 
 
Click Save template,
And lets see the next step.

Adding The Gallery To your template.


Go to Layout >> page elements and on your template’s sidebar, header or footer Click on ‘Add a Gadget‘.
then Select HTML/Javascript
A new window will appear, in title box Type your gallery title, and in content area Copy and Paste the next code 

<ul class="thumb">
<li><a href="#"><img src="picture 1 Link" alt="" /></a></li>
<li><a href="#"><img src="picture 2 Link" alt="" /></a></li>
<li><a href="#"><img src="picture 3 Link" alt="" /></a></li>
<li><a href="#"><img src="picture 4 Link" alt="" /></a></li>
</ul>







 
Then instead Of picture 1 Link Type Your Image Url,
and if you want to make the image link to another page or url instead of # Add the target url.
Each time you want to add a new image to the gallery, just repeat this code.


<li><a href="URL 1 #"><img src="picture 1 Link" alt="" /></a></li>


That’s all.

0 comments:

Post a Comment

Breaking News
Loading...
Quick Message
Press Esc to close
Copyright © 2013 Crack o Hack & tweak STORE All Right Reserved