jQuery Image Magnifier Blogger
C’mon who doesnt Love jQuery effects? yeah its a very easy trick on blogger too. Get ready to rumble with this new hack provided by dynamicdrive.com
As usual login into your Blogger Dashboard > Layout > Edit HTML and check the “Expand Widget Templates” option.
Important Step: Now as a precautionary measure please download your template so that you have an emergency backup if in case you create any errors
First locate this code in your blogger template.
<head/>
And replace it with the following code
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”></script>
<script type=”text/javascript” src=”url_of_jquery_script“>
/***********************************************
* jQuery Image Magnify- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
now search for ]]></b:skin> and replace it with the code below.
magnifyby: 3, //default increase factor of enlarged image
duration: 500, //default duration of animation, in millisec
mgopacity: 0.2 //opacify of original image when enlarged image overlays it
},
cursorcss: ‘url(url_of_the_cursor_file), -moz-zoom-in’, //Value for CSS’s ‘cursor’ attribute, added to original image
]]></b:skin>
You will need Two JavaScript files to make this tweak work for blogger zoom for images. One script used in image magnification and the other one for the cursor to be used on image hover.
Please download these two files and upload into your own server and copy the url because you maynot want to face server overload problems. OS i advice you to do that
![]()
Now replace the two files by:
url_of_jquery_script and url_of_the_cursor_file
That’s all.. now you can save your template. But remember that each time you want to add this zoom to your images you will have to add a ” class ” in your blog post before publishing it.
BEFORE you used to use this code -
Now you will have to add class=”magnify” magnifyby=”3″ please compare both the codes to understand what i mean to say.
PS: I’m really sorry I am using a different hack on my blog so i cannot show you the live demo. But I advice you to try this in your test blog
Any problem installing this? feel free t drop a comment and I will be helping you ASAP
You can also get a free subscription to Chethstudios updates. We will be back with more useful content. Get latest hacks and updates on your email














8 Comments
Misa Garcia
08.13.2009
ok… I'm gonna try it!
Jal Desai
08.18.2009
Big typo here… it should be /head instead of head/
VasiaUVI
10.10.2009
Hello!
The links for the 2 js files are not working!
Can you provide other links?
Thank you!
Eric Smith
10.17.2009
Took me awhile, since my image examples are different from what you used above, but I figured it out – this hack rocks!
Eric Smith
10.17.2009
VasaiUVI – go to http://www.dynamicdrive.com for the links to the js files
boffin
05.22.2010
Thnxx a lot for this nice gadget…although its nt working on my blog..
i wud b more than glad if u cud help me out wid it..
Thnxx
Patu
05.30.2010
where can i upload the java code? and how?
Paul santosh
01.25.2011
i'll try this for sure
There are no trackbacks to display at this time.