This is one of the most common and popular image hover effects, you would have seen on many blogs, including a number of pro-blogs too. Simply hover your mouse cursor on these images:


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/AVvXsEhMRq7sL_dRNBBRu6GxDAMkRYbt01DvCjQR5L5SmgPw3PH5a7_mW6BO5PIUj0C6Qplfd06BNgYpyjCcZVZwFUddQQHaq0vqpgv0AIy6K0ngErpnhkvsnOE-XsC0AuIcmZOJrkNsBAoHN1Hb/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/AVvXsEhiLPn3ITgYFGXhuIpSSej3l0Kt15ntsZt5vLKUcU7O-Dy1KG8M3wiy02y0leqJSzol2IV8jkcpzO_RsbyPM8tJzWEYyNKEhZ3younzlttcZtvOe07ZJl0bfcB1hfLtj3wCjuklQ-DQAJuU/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/AVvXsEiHXdR-xOx2CPYVL81v1NHbQ6OUg1qownHXo_9I8839p2ljqbAA6LitxS2LpIblosWCv4OXEzxIfSaOBClP6cwgnT3RCbB8Ic_dNGRiuo_4CHYGkvyvNryBsm2bwlpK6X7h_YNGfxJFZA7_/s320/feed.png" /></a> <a class="linkopacity" href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://bloggerstop.net" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJUg2VBIKqCnh2brRGfIOlwRNofwZxLulWq6vCKvFXalFA8D7V52W1fpNEo4SQ5U-3KwiZSng5QlLRoelWCQ4CLeeFnuZZUg1UcNxlSg0feseslpZkA50IZYS5x6bg89USzXYCOjN9-PaA/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/AVvXsEiPtpnX6o9GzqN3GD6OzzG2kbabzXCft5CDLH9NT4WKScuTLua2_IBYJBcK259HJnba1ng0N9B3JNK-e3NFPT5OOEwHSA6GGgK5pa0kcGSPpCjqubyzMv0XGlKUAvfliAjbVI-KcvnkJR5U/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/AVvXsEgkA86SoYcGRzI2HjcZqDBsGGRcehQV9IPUMeIH1mN67kON_e8HQyOcICI2IHc2qjDg6qYJP6kOjaz9CU3V3h5_Gwn3fX1z0uBUspNVa1lhtromTprCYKnm6ZYudqyPBd3zYSQKogR15LL7/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/AVvXsEisQHOS8frETXwLCKzWFOpba5JfKI9RV0Oo3pDgn-0UpteH61ct2VZkSaeKoKQQC0z3equuJsRIAdwXBf8ZEbPHCVFUKKDkPMROwFElhO87xcoR-fs-7_rnM8w-HJEwjuYz0VYDlX0DN5cz/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>

Leave a Reply