February 3rd, 2010 at 6:47pm

Fancy following icons

You’ll have to use custom HTML to do this. If you’re not familiar with it, I don’t recommend this, as you can accidentally mess something up.

Basically, you will have slightly transparent Following icons. When you move your mouse over them, they become full coloured. I find it pretty fancy. You can see an example on my Tumblr’s sidebar.

What you need to do:

Add this before the </head> tag in your theme:

<script language=”Javascript”>
function lightup(imageobject, opacity){
if (navigator.appName.indexOf(“Netscape”)!=-1&&parseInt(navigator.appVersion)>=5)
imageobject.style.MozOpacity=opacity/100
else if (navigator.appName.indexOf(“Microsoft”)!=-1&&parseInt(navigator.appVersion)>=4)
imageobject.filters.alpha.opacity=opacity
ImageObj.style.filters.alpha.opacity=50
ImageObj.style.MozOpacity=0.5
}
</script>

Find <img src=”{FollowedPortraitURL-30}” alt=”{FollowedName}”/> in your code and add this:

<img src=”{FollowedPortraitURL-30}” alt=”{FollowedName}” style=”filter:alpha(opacity=50); -moz-opacity:0.5; opacity:0.5;” onMouseover=”lightup(this, 100)” onMouseout=”lightup(this, 50)”/>

You can also put the opacity in your CSS. Just add the following:

<img src=”{FollowedPortraitURL-30}” alt=”{FollowedName}” class=”icons” onMouseover=”lightup(this, 100)” onMouseout=”lightup(this, 50)”/>

And add this in your CSS:

.icons {
filter:alpha(opacity=50);
-moz-opacity:0.5;
opacity:0.5;
}

Note: I used portrait size 30, so remember to
change it if you want smaller/bigger icons.

Voilà, you’re ready!

Nisha is an eccentric chick loving life, the world and everything in it.
I work at a movie rental and it.

 
Tags:
Garden  Pictures of my garden.
Vegan  recipes, pictures, info.
Shopaholism  I like to shop.
MyPics  GPOYW & other

 
Search

 

 
I post this and that but I try to keep it original most of the time. Everything on this blog is by me unless otherwise noted.
RSS  |  Archive

Help & Resources Highslide
Free Icons Web
Tutorial9
Dynamic Drive
DinPattern
PatternCooler
stock.xchng
DaFont
W3C