Live Demo:-
Add jQuery Image Zoom Effect To Your Blog
Add The Css And Scripts
Step 1. In your Blogger Dashboard Click Design > Edit HtmlStep 2. Find the following piece of code.
]]></b:skin>
Step 3. Copy And Paste The Following Code Directly Above ]]></b:skin>
#easy_zoom{
width:600px;
height:400px;
border:5px solid #eee;
background:#fff;
color:#333;
position:fixed;
top:35px;
left:50%;
overflow:hidden;
-moz-box-shadow:0 0 10px #555;
-webkit-box-shadow:0 0 10px #555;
box-shadow:0 0 10px #555;
/* vertical and horizontal alignment used for preloader text */
line-height:400px;
text-align:center;
}
Step 4. Now Find the following piece of code in your blog.width:600px;
height:400px;
border:5px solid #eee;
background:#fff;
color:#333;
position:fixed;
top:35px;
left:50%;
overflow:hidden;
-moz-box-shadow:0 0 10px #555;
-webkit-box-shadow:0 0 10px #555;
box-shadow:0 0 10px #555;
/* vertical and horizontal alignment used for preloader text */
line-height:400px;
text-align:center;
}
</head>
Step 5. Copy and paste the following piece of code Directly Above </head>
Important - The code highlighted in blue is the main jQuery script, if you already have jQuery in your template. Then leave the highlighted code.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src='http://blogtipsntricks.googlecode.com/files/easyzoom.js' type='text/javascript'/><script type='text/javascript'>
jQuery(function($){
$('a.zoom').easyZoom();
});
</script>
Adding The Image To Your Posts
When you upload a large image (Don't upload image smaller than 500px) to Blogger it will often be re-sized to fit your posts.The image code you upload will look as below and you simply add class="zoom" as highlighted :<div class="separator" style="clear: both; text-align: center;">
<a class="zoom" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjckR0LbHc4mVZR5PvnTweoVKV5IxEZb-f7p2Sb-A2eaikLqUcMtXiHc4HS9wLsBJpWQ_9TLxwhdWghNkeTlblh1EJS42CnA1miiuSB29xXZrROHBCPAnjPHG04thfbwayQdmvI3uxJH3k/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="205" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjckR0LbHc4mVZR5PvnTweoVKV5IxEZb-f7p2Sb-A2eaikLqUcMtXiHc4HS9wLsBJpWQ_9TLxwhdWghNkeTlblh1EJS42CnA1miiuSB29xXZrROHBCPAnjPHG04thfbwayQdmvI3uxJH3k/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" width="320" /></a></div>
Now you had added the image zoom effect to your blog.Feel free to share this post and leave your thoughts in comments we always want to hear from you.
<a class="zoom" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjckR0LbHc4mVZR5PvnTweoVKV5IxEZb-f7p2Sb-A2eaikLqUcMtXiHc4HS9wLsBJpWQ_9TLxwhdWghNkeTlblh1EJS42CnA1miiuSB29xXZrROHBCPAnjPHG04thfbwayQdmvI3uxJH3k/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="205" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjckR0LbHc4mVZR5PvnTweoVKV5IxEZb-f7p2Sb-A2eaikLqUcMtXiHc4HS9wLsBJpWQ_9TLxwhdWghNkeTlblh1EJS42CnA1miiuSB29xXZrROHBCPAnjPHG04thfbwayQdmvI3uxJH3k/s1600/WideScreen_Prince+of+Persia+The+Two+Thrones+03.jpg" width="320" /></a></div>
Actually, it doesn't work. At all.
ReplyDeleteI works fine. please check demo url..
DeleteIT IS NOT WORKING
DeleteI followed the instructions precisely. It doesn't work.
ReplyDeleteGive me your blog url where you followed the instruction.
DeleteThanks! work great for my blog: http://www.downspaces.com/
ReplyDeleteThanks buddy,
ReplyDeleteit's really working in my blog
http://www.q4points.com
it works just on one photo :P don't know why ? ... :P
ReplyDeletewww.glarow.blogspot.com
Let me know where did you added the photos :)
DeleteHello and thank's for this plugin (and sorry for my english!), I have the same problem.
DeleteI've just add it for 3 photos on articles, but it only works for the last one, and the others ones don't have image...
What's the problem?...
Thanks again!
www.doina-lingerie.blogspot.fr
Thank you very much ;)
ReplyDeleteIt is working in my blog
http://mapcardshunting.blogspot.de/
Hi Firstly thanks, I've been looking for a simple zoom/magnify feature for ages and no one really explains how to implement JQuery easily..but I am defo going to use this in my blog but I want the zoom area to open right next to the image and not a location on screen as I'm wanting to use it for several images in one blog like a portfolio to view art, I currently have huge images in order to view detail but that takes up so much bandwidth..Im not currently using your code but if you view my blog you will understand what I mean
ReplyDeletehttp://cacrosbyart.blogspot.co.uk/
very much thanks to you..finally i found this tutorial. it's works on my blog..
ReplyDeleteplease help me brother. i implemented as you said but its only zooming for last image of post. Others don't work.
ReplyDeletemy site is www.photoshopcreation.blogspot.com. i hope for your reply
it doesn't work for me!! what about The code highlighted in blue is the main jQuery script? i haven't this jQuery on my template so what can i do! delete it or leave him?
ReplyDeleteThis is not working for me , added this code to www.crazyboutiques.com, not working.. any suggestions other than this code any free plugin ?
ReplyDeletehi sir hope u will be fine
ReplyDeletesir i have a blog on my button product i upload 04 pix in one post but magnifier works for the last one only pls help
tryed it but it didnt work does this work if your using templates?
ReplyDeleteIt doesn't work help me out!
ReplyDelete