The hack is very simple, a small CSS code changes the opacity level of the images, whenever you place the mouse cursor over these images.
To add this effect to the images in your blog, follow these steps;
STEP1:
Log in to Blogger, go to Layout -> Edit HTML,
Find (CTRL+F)
</head>
STEP2:
And right before that tag, paste this code:
<!--LINK-OPACITY-STARTS-->
<style type="text/css">
a.linkopacity img {
filter:alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 0.5;
-khtml-opacity: 0.5;}
a.linkopacity:hover img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
-khtml-opacity: 1.0; }
</style>
<!--LINK-OPACITY-STOPS-http://bloggerstop.net-->
STEP3:
Save the template.
STEP4:
Now whenever you want to show this effect to any of your images (whether in any post or in the sidebar), you have to modify the linking code like this:
Normally the code you use, to link any image will look like this:
<a href="http://bloggerstop.net" target="_blank" alt="Blogger Help Templates Widget SEO Tips"><img src="http://www.gigaimage.com/images/du41htpibgyb3fqeh9nt.png" /></a>
If you want to add the hover effect to the image, then add this simple code (in BOLD) to it, like this:
<a class="linkopacity" href="http://bloggerstop.net" target="_blank" alt="Blogger Help Templates Widget SEO Tips"><img src="http://www.gigaimage.com/images/du41htpibgyb3fqeh9nt.png" /></a>
To show exactly the same buttons as displayed above, or in the "Connect with me" widget in the sidebar, use this code:
<div class="separator" style="clear: both; text-align: center;">
<a class="linkopacity" href="http://www.blogger.com/profile/00580458018752018936" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiafcVmcJ-x0mmU-pxC9mV0E5__lmVXHrPqT_5tlsz8VIFZV7T8HCz7pm23B3gFTRcl1OZ7Tk2jPdhW9OsJxusxY20-5sBtv5Chj9xtT6CY0g7YidwQOgd6AAzZPWXdRMw60APEQZhjNouv/s320/blogger.png" /></a> <a class="linkopacity" href="http://delicious.com/network?add=dsai588" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLxW37TfI1DDOZi_HGagskTY0k7g4IOdoSmcZazdFshCnvDFbxi-ACX2K3PjHqaEwY2YlMqMeP0LlcyQa-1PFD4Zowsgj4lBxyphKjRVafitT5Dbwnj-4Z47Zwe2pab_nAsg3tRNokx1vO/s320/delicious.png" /></a> <a class="linkopacity" href="http://feeds2.feedburner.com/Bloggerstopnet" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4aBCi1epzibRaP4-HXvxt5urvO1gCz1UZNwYFadstv0jEQWmN-_S3q9de6mRIoaQbbZ67_Pm78inazgoqndjB1ewa-NMQcTXmDI0GTIVCKNCY3XG6UUyJP7_N7VWiqUi4NNRgm-f4BB24/s320/feed.png" /></a> <a class="linkopacity" href="http://technorati.com/faves?sub=addfavbtn&add=http://bloggerstop.net" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikJSjr00BLNoQzpQYcuW_D_vufHu7Nv5YRstkd3ujNkrRQEfScOM92wfkSIIJOnwHtjd4U0wIkaJy4ithBBdhxmdIRoLSKW8-sOYocdAw74r8iOz8p_HMZEvReQF3CGE9esVm7Whd8IjWz/s320/technorati.png" /> </a> <a class="linkopacity" href="http://dsai588.stumbleupon.com/" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxusBItpyQmqCuZUfwwoop-xEbbL9-_iLfZGlk2mJlTgdv2otJ4bGnQfVighO-s_jNAHmhgl7_X1IjKCk-Y87x9V-YraqBSa06KxzwQi5_eUkTvymhVt63s0gM7i_b4Q2vLVwA_xFSNuaT/s320/stumbleupon.png" /> </a><a class="linkopacity" href="http://twitter.com/bloggerstop" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheUB3ZmzXMy0CNdoOV5znDQA4FGcBHtt4sHR5RakkDlhZpKCbicS0ufAzNmjrtkxLhSTyrCBL23RwisgZzWX3qkUHUACW7jIntH1r0Ov0-fJRxFz4udhi0EMGyqp9_h1LWBzoccdrTMiBZ/s320/twitter.png" /> </a><a class="linkopacity" href="http://digg.com/design/Free_Professional_Blogger_Blogspot_XML_Themes_Templates_Skin" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-kL8MAg8xeFg1a-W2ZgZbmLS0DCI0OSSFaM-ohk35AXHQ5a8pcZH4GLqr73BOrl0lySQIJc8DSuD-iJrYz5k2n-CXCtTtisnam4KxYlEd8OYAYkx3yPPRP-1IEmTSRWE5AJpV43LRxvFO/s320/digg.png" /></a></div><a href="http://bloggerstop.net/2009/03/change-opacity-image-hover-effect.html" target="_blank"><span style="font-size: x-small;">Get this widget</span></a>
My Creative Readers:
Check out the best examples of this tutorial:
1. Buttons on a dark background - At Danoxs.BlogSpot.com by Danoxs
Show off your work in the comments, and get your blog listed here !
52 comments
Write commentsthanks,
Replynice effect
Welcome ANMA !
ReplyGreat Dsai! I was just looking for this trick, thks a tonne for sharing it.
ReplyRegards,
MOHD__
hi man... i love your site ..its awesome.. i have a big prob man..
Replyi want to have bookmarking icons like u have like twiter,digg etc.. but the problem is that how do i make it automatically get the title of the post when the person diggs it or stumbles it .. i can't put the link of the new post everytime na.
plz help
thnx
Hi dude,
ReplyI think this post will be helpful to you:
Add Social Networking Buttons To Your Blog
thanxxxxxxxxxxxxxxxx alot for the great post
ReplyI dont know why it is not working - at all. I would like to add my code here for you to maybe tell me whats wrong but I can't.
Replyhow can i show you, really want this to be fixed.
It's alright dude...add the code to your blog's template, and give me the link to your blog, I'll check the source code !
Replythanks for such a quick response. here is the site
Replywww.surfsecurely.blogspot.com
okay you have done upto step 3, and things are fine upto here, but what about step 4 buddy ?
Replyput some images too, that is how we can chk if the hack is working or not
Hello.
ReplyHehe you need to click on continue reading...then you will see the images.
okay...do not use the images as background images, instead use them between the <a>....</a> tags, as a simple <img src=''/> tag.
ReplyHello again, I have finally fixed it but I have a grey border around my icons, you know what cs to change?
Replyalthough your "a img" css code has border=0, but this border may be coz of this:
Reply#featured a img {
border:1px solid #bbb;
so make the border 0 as well.
Or in this code itself, you can add border elements as '0', like this:
a.linkopacity img {
filter:alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 0.5;
-khtml-opacity: 0.5;
border: 0px;
}
a.linkopacity:hover img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
-khtml-opacity: 1.0;
border: 0px; }
;)
ReplyThanks for the link again Divya !! But being in Spanish I don't really think they understand it, but thanks anyways !
Replyi really don't like this comment form
ReplyThanks for the post
ReplyTHE SITE IS
http://aka-core.blogspot.com
thanks a lot dude...............
Replymy blog(http://hack-krishna.blogspot.com) wud hv been nothin without yur tricks......
if u need any tech hacks, let me kno it abt it....
)
) ;;)
(
:X
( :-o :-/ :-* :| 8-}
] ~x( :-t b-( :-L x( =))
ReplyI have this site which has very nice funny articles...may be u can have a look at it ! definitely u r gonna have a laugh at these !
Replyhttp://www.ashokgunasekaran.blogspot.com
Please follow if you like it and I will do the same.
Hi, do you possibly have a PNG of the Facebook logo? None of mine working in this..
ReplyIn what dimensions do you want the icon?
ReplyHere's in 60x60
http://i34.tinypic.com/281hoi8.jpg
and here's 48x48
http://i33.tinypic.com/2h30hol.jpg
Regards
Sai
thanks..
Replyhttp://www.midekka.com
hiiiii Divya...
ReplyI use this widgets in my two blogs
http://uniquelikeme.blogspot.com
http://qur-aninhindi.blogspot.com
but there is some questions....
1. In your blog it's showing 9 items & in mine only 7..how can i add or change these logo's???
2. In stumbleupon your account address is dsai588.stumbleupon but in mine is showing as a Stumbler....how it's possible???
please reply to my mail address
=============
I can't change the opacity of my blog its so aggravating.
ReplyThank you, I've added this effect to the bookmarks button on my site
ReplyI hope its working done
Replywhen i try to replace this code:
Replywith the linkopacity code
it shows Page not found!please help...
thanks
Replyteknikbuatblog.blogspot.com
hi, is there any way to change the opacity to a different color when its not being hovered?
ReplyAs these buttons are transparent/translucent - so these buttons take the background color. So, just change the background color to give these buttons a diff appearance in the 'not hovered' state.
ReplyThis may help you: How to show different background color or image for separate posts or paragraphs
I want that plugin you are using above having share this post, bookmark this blog and recommended posts tabs. that is hell awesome... please tell me from where i can get that for my blog...
ReplyHello Umar, I am glad you liked that widget so much. It is basically a multi-tabbed widget wherein you can add content of your choice, here's the tutorial for that widget:
Replyhttp://bloggerstop.net/2009/12/part-2-collapsible-multi-tabbed-widget.html
Many thanks for this cool widget. I managed to add two social networking icons on my new blog with the help of your tutorial.
ReplyIt certainly looks neat and cool at the same time
Cheers
Nestor
hello ..
Replyi applied all the code exactly as your instructions..
but it's not working..
mediamaniiac.blogspot.com
You have done step 1 and 2 correctly.
ReplyAdd the required code (from Step 4) to your images.
hello ..
Replythanks for the quick reply ..
i actually have put the code from step 4 in my image..
for instance, i also add the example code that you give above and put it under my blog post ..
but as you can see, its not working at all..
is it something to do with my template ?
hello again ..
Replyi had fix my problem ..
it seems that i put the code at the wrong section ..
thanks again ..
a BIG BIG THANX!!!
ReplyI finally found the PERFECT solution!
French Boy
thank you so much! I've been trying to find an effect like this and yours was the most simple i've found yet. thank you so much!
Replyit worked perfectly
is there any way to make it fade instead of just changing right away?
Replyawesome site and great instructions! I'm new to blogging and have become hooked very quickly, I'm glad I found your site early on in the game!
Replywow...good tips and easy to understand..thanks a lot
ReplyTHANK YOU SO MUCH!!
ReplyBless you
Hey visit this page and hover any image and see the effect. I exact wants that. Plz add. Link- www(dot)abduzeedo(dot)com
ReplyHi
This is awesone.... worked right away.....
THANKS
ReplyDo you have any code, so insted of fading it shows in BLACK/WHITE o "Grey Scale".... JUST ASKING
so so
ReplyLoving Your Tuts.Thanks for all these.
ReplyBrilliant - thank you!
ReplyComments are moderated on this blog
Allowed HTML tags: <b>, <i> and <a>
Comment Like This! and Optimize your blog EmoticonEmoticon