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
jQuery+Image+Magnifier+Blogger jQuery Image Magnifier Blogger

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 icon smile jQuery Image Magnifier Blogger

First locate this code in your blogger template.

<head/>

And replace it with the following code

<head/>
<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.

dsettings: {
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 icon smile jQuery Image Magnifier Blogger

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 -

<img style=”width: 501px; height: 250px;” src=”http://1.bp.blogspot.com/_5rlxf3T9Z9U/SnVGC8M2o5I/AAAAAAAAC2g/SxhjyLBrqmQ/Ultimate List of Power Tweeting Tools.png” alt=”jQuery Image Magnifier Blogger” id=”BLOGGER_PHOTO_ID_5361650096596248578″ border=”0″ />

Now you will have to add class=”magnify” magnifyby=”3″ please compare both the codes to understand what i mean to say.

<img class=”magnify” magnifyby=”3″ style=”width: 501px; height: 250px;” src=”http://1.bp.blogspot.com/_5rlxf3T9Z9U/SnVGC8M2o5I/AAAAAAAAC2g/SxhjyLBrqmQ/Ultimate List of Power Tweeting Tools.png” alt=”jQuery Image Magnifier Blogger” id=”BLOGGER_PHOTO_ID_5361650096596248578″ border=”0″ />

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 icon smile jQuery Image Magnifier Blogger 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

PinExt jQuery Image Magnifier Blogger











Related Posts

Blogger Toolbox: Fresh, Free and Stunning Blogger Templates

40+ New and Fresh Blogger Templates

BloggerPower- A Super Flexible Blogger Template

Glassical: A Free Blogger Template ~ SmashingMagazine

Mindblowing Premium-Like Free Blogger Templates

Blogging Faceoff: Blogger vs. WordPress

HOW TO: Official Facebook Share Counters for Blogs

Create Mobile Version of Blog: 12 Free Alternatives

jQuery Powered Text / Font Resize Widget

HOW TO: Elegant CSS Message Boxes for Blogs

8 Comments

  1. Misa Garcia

    08.13.2009

    Reply

    ok… I'm gonna try it!

  2. Jal Desai

    08.18.2009

    Reply

    Big typo here… it should be /head instead of head/

  3. VasiaUVI

    10.10.2009

    Reply

    Hello!
    The links for the 2 js files are not working!
    Can you provide other links?
    Thank you!

  4. Eric Smith

    10.17.2009

    Reply

    Took me awhile, since my image examples are different from what you used above, but I figured it out – this hack rocks!

  5. Eric Smith

    10.17.2009

    Reply

    VasaiUVI – go to http://www.dynamicdrive.com for the links to the js files

  6. boffin

    05.22.2010

    Reply

    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

  7. Patu

    05.30.2010

    Reply

    where can i upload the java code? and how?

  8. Paul santosh

    01.25.2011

    Reply

    i'll try this for sure

Leave a Reply








4 + = 10



Recent Tweets

Follow Me On Twitter →

Email Updates

Get all our latest posts delivered right to your mailbox.