#Step 2: Tick at the Expand widget template.
#Step 3: Use Ctrl+F to find this code.
Code: ]]></b:skin>
#Step 4: Paste the code below before ]]></b:skin>.
/* Blogger Zoom Gallery By AllBlogTools.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/AVvXsEgeGAX6FW39LNnJe3bEFsS7D6DSni78nAGunM3nzeig7xWEoRV3THF_hE3JhAOrypXCy_qkJVJqTPb00cLcoBM3Wk0itUyHyM5O5viEcTkN8UofUaoBh9mehKgUImny6k5YgfjurDZddk6R/) no-repeat center center; /* Image used as background on hover effect
border: none; /* Get rid of border on hover */
#Step 5: You must use Ctrl+F again but this time you must find the tag below:
</head>
#Step 6: After you had found the </head> tag, you must paste this code before it.
<script src='http://code.jquery.com/jquery-latest.js'
type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function(){
//Larger thumbnail preview
$("ul.thumb li").hover(function() {
$(this).css({'z-index' : '10'});
$(this).find('img').addClass("hover").stop()
.animate({
marginTop: '-110px',
marginLeft: '-110px',
top: '50%',
left: '50%',
width: '174px',
height: '174px',
padding: '20px'
}, 200);
} , function() {
$(this).css({'z-index' : '0'});
$(this).find('img').removeClass("hover").stop()
.animate({
marginTop: '0',
marginLeft: '0',
top: '0',
left: '0',
width: '100px',
height: '100px',
padding: '5px'
}, 400);
});
//Swap Image on Click
$("ul.thumb li a").click(function() {
var mainImage = $(this).attr("href"); //Find Image Name
$("#main_view img").attr({ src: mainImage });
return false;
});
});
</script>
#Step 7: Click at the Save template. Now, we have done editing the template. Just a few steps left.
#Step 8: After that, you need to go to your Page Elements at the Layout. Click at the Add a Gadget and choose HTML/JavaScript.
#Step 9: Paste the code below in the box appeared. Don't forget to put the title of your image gallery.
<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>
#Memo: Change the picture 1 Link in the code above with your Image Link Location and so do picture 2
Link and such as that.
: To make the image goes to another url, you just need to replace the # with the target url.
: If you want to add more image, you just need to repeat the code below and paste it.
Code = <li><a href="URL 1 #"><img src="picture 1 Link" alt="" /></a></li>
#Step 10: You just need to save it and the work is Done!!
0 comments:
Post a Comment