Jquery Image Maginfier For Blogger Blogs

sm_VistaWallpaperI recently came across a blog that had the effect of image magnification. That is, once you click on the picture in a post, it magnifies. So, I found a hack to implement the same on blogger blogs. The script and the hack original was developed by Dynamic Drive. I modified a little bit of the code and have implemented in my post here.

I feel this trick will be very helpful to those people who post a lot of photos in their blog and for those who post payment proofs in their blog post. Fine, enough of all bla bla's. Let me straight away explain you how to implement this technique in your blog. Follow these simple steps.
1. Navigate to "Layout>>Edit HTML" from your dashboard. Make a back up of your template before you do any changes in the template.
2. Now, expand your template, that is, make sure that you have a tick mark in that "Expand Widget Template". Now, do a search using "CTRL+F" for the following line: </head>
3. Place the following piece of code on top of the above line(</head>).
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
<script src='http://sites.google.com/site/careerfreelife/magnify/Magnifier.js?attredirects=0' type='text/javascript'>
/***********************************************
* 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>
4. Now, when you include any picture in your blog post. Go to the "Edit Html" section and just include class="magnify" and also include this piece of code with the <img src="URL"/>. Just see the syntax of the code here.
<img class="magnify" magnifyby="3" style="width: 200px; height: 150px;" src="YOUR IMAGE URL" alt="YOUR ALTERNATE TEXT" id="BLOGGER_PHOTO_ID_19numbers" border="0" />
5. Also, remove the link pointing to that picture. That is, remove the href code before the image HTML. If it is pretty confusing, just take a look at the following piece of code.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"> <img class="magnify" magnifyby="3" style="width: 200px; height: 150px;" align="left" src="http://alturl.com/53eg" alt="sm_VistaWallpaper" id="BLOGGER_PHOTO_ID_5364892650738529362" border="0"/></a>
This is what, I used for uploading the picture shown above. You can change the width or height of the picture and even change s200 to s400 or s800 in the image URL for bigger images. Note: You cannot find s200 in the above code because I have shorten my URL due to the page width constraints. Any help regarding this trick, you may leave a comment and I will solve your problem.

Enjoyed the article?
Subscribe to this Blog via Email:

Click here to subscribe to FREE email updates from "Everything About Blogging", so that you do not miss out anything that can be valuable to you and your blog!

    Other Recommended Posts

  • Blogger Tutorials
Alvin Tan said on August 4, 2009 at 10:16 PM :

This sharing is brilliant. It definitely helpful for those people who post a lot of photos in blogspot blog.

REPLY
links said on August 5, 2009 at 7:46 AM :

hi its a nice and informative too
i liked your template its cool

to know about links click at links

REPLY
Ken Bird

I am new to this. This is my code to insert an image from a database into a htm page - (tag)img src="http://www.kenbirddesigns.com.au/bowlingclub/mysql4/view.php?file=1" class="magnify" style="width:100px; height:100px" (close tag). The file=1 is the id in the database. The image is inserted and the magnify feature works. However, the paragraph does not wrap around the image. When I add class="float" it causes the script not to run. I want to do 2 things. Wrap the paragrap around the image and also to insert a command to magnify the image to a specified size. Can anyone assist?

REPLY
Ken Bird

I am new to this. This is my code to insert an image from a database into a htm page - (tag)img src="http://www.kenbirddesigns.com.au/bowlingclub/mysql4/view.php?file=1" class="magnify" style="width:100px; height:100px" (close tag). The file=1 is the id in the database. The image is inserted and the magnify feature works. However, the paragraph does not wrap around the image. When I add class="float" it causes the script not to run. I want to do 2 things. Wrap the paragrap around the image and also to insert a command to magnify the image to a specified size. Can anyone assist?

REPLY
Alvin Tan said on November 12, 2010 at 4:01 PM :

This sharing is brilliant. It definitely helpful for those people who post a lot of photos in blogspot blog.

REPLY
Seo Sydney said on December 15, 2010 at 10:22 AM :

Not just adding the meta tag in the head section would solve your problems but you will need to seperate the home page meta tag and the post page meta tag. Or else these meta tags would mess all your search engine descriptions up …

REPLY
Mukund said on December 16, 2010 at 9:21 PM :

@Seo Sydney: Yeah! I have posted enough about this meta tag in my blog. Just check out the posts related to meta tags. Search for them and you will find the articles!!!

REPLY
Anonymous

dude i need a jquery search form i mean instant search box for blog..plzz help me out..

REPLY
Mukund said on January 7, 2011 at 6:41 PM :

@Anonymous: I'm afraid if I can help you out. I should Google about such a search form before I can help you out. Contact me via email if you badly need it. I will ask my fellow bloggers and help you out.

REPLY
Anonymous

if we search something in blog just like song v ill get full post and it is difficult to search it in post..i need a search form or any other...to search only a particular one from post...is it possible..?

REPLY
Mukund said on January 9, 2011 at 2:10 PM :

@Anonymous I think it is difficult the way you ask. The search forms basically compare the word you enter with the content in post and later, display the results. Will the search form on my blog be okay for you?

REPLY
/\/\0#@/\/ said on January 9, 2011 at 7:14 PM :

for this type of blogs it is ok but
for eg if the blog post contain many songs if any one search for a song he
will get full post..and he finds its difficult...
eg: http://www.woophy.blogspot.com/
if i search for a single song m getting full post...
i think its not possible in blogs...

REPLY
Mukund said on January 9, 2011 at 7:36 PM :

@/\/\0#@/\/: May be!! I'm not sure!!! Any way, I hope you enjoy the other articles on my blog!!!

REPLY

Use the tab below to comment. No spam please!!!

[netinsert=0.0.1.11.14.1]