If You're unaware of Image hover effect, then its an effect which brightens an image when mouse pointer is pointed on it. You can check out the demo images below I'm using.
OK love it right? ;) yea as I said its pretty easy hack. So lets start with the coding.
First of all I would like to say PLEASE BACKUP your template. Slight errors can bring bx-errors.
Login into your Blogger Dashboard > Blogger LAYOUT > Edit Html >
Press Press Ctrl+F to open search and search for </head>
and place the below code just above </head>
<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>
Yup, now you have to save your template. :)
No its not done yet! Remember the very next time you want to use this effect you have to add class="linkopacity"
For example:
earlier you used
<a href="http://chethstudios.blogspot.com/2009/04/designers-digest-resources-and.html" target="_blank"><img style="width: 50px; height: 35px;" alt="chethstudios" src="http://sites.google.com/site/thumbnailssmall/Home/watchmen.jpg?attredirects=0" /></a>
now you need to add the class for opacity
<a alt="Blogger Widget" class="linkopacity" href="http://chethstudios.blogspot.com/2009/04/designers-digest-resources-and.html" target="_blank"><img style="width: 50px; height: 35px;" alt="chethstudios" src="http://sites.google.com/site/thumbnailssmall/Home/watchmen.jpg?attredirects=0" /></a>
Compare both the codes and you will know what class I'm speaking of :) If in case you have any problem using this little trick feel free to comment here. THe Credits go to blogger stop Enjoy! I will be back soon with a nice tweak, helping you build a better blogger blog! :)
hey thankx for the image hover effect... its really awesome....
ReplyDeletevenkateshkumar
http://kollywoodmoviereview.blogspot.com/
Hey this looks great chetz.. you remember you helped me to install wordpress style animated label cloud in my blog.. I saw that hack in ur blog and was crazy of that label cloud :) like that I want this one also for my blog :)
ReplyDeletegood work !!!
ReplyDeleteis this tested on all browsers ?
ReplyDeletesweet it works thanks for the tweak
ReplyDeleteGood post .With your permission can I add this tutorial (In a modified form ) with link back?? Btw cheth , How you manged to arrange the images ad shown above ?? I arranged a bunch of images and each time it slips out when published ~x( .
ReplyDeleteYou can say it looks arranged because of the template coding "image alignment" try playing with it and it will set perfectly. PS: you need to have images of same size.
ReplyDeleteFeel free to repost this tut.
:))
ReplyDeleteThanks for your tuts, keep writing friend...
ReplyDeleteAny fix for I.E.? Border is appearing and it looks bad. x(
ReplyDelete@Raju : the border appears only on my blog because I've set it like that.. the tutorial codes doesn't have border..
ReplyDeleteSorry but it's in my blog that appears
ReplyDeleteyour blog is showing that in IE because your template is not optimised for IE6 png transparency. Fix that issue and it will be fine on IE
ReplyDeletewhere can i find this " template coding "image alignment" ??
ReplyDeleteI need to make it look orderly such as the example shown above.
actually never mind the previous post asking for alignment of images. I can do it now!!! thanks heaps!!!
ReplyDeleteHey,
ReplyDeletenice tweak. Liked it!!
Is there a similar hack in which the image is converted into greyscale and should colorize on mouse hover? Thanks.
ReplyDeleteHow do I make my icons to 'sink' and then come out fully when hovered over?
ReplyDeleteThank you so much for this! Works perfectly!
ReplyDelete