Actually the class attribute is named in javascript as classNamenot just class. But don't even bother doing that. Just make a class for normal A and a class with :hover for mouse over event. It works much faster than interpreted javascript. I use it all the time.