Agree with tommyBoy on this one - use jQuery (google "jQuery") and you will find a JS+CSS thing that will do exactly what you want. It may take some looking, but I am sure that the easiest implementation is in jQuery -- which does almost all of the special effects on Facebook.
Best regards, ~Ray