Forum:Some javascript help needed here

By using javascript, how can I add the class: mainpagehover to the wordmark? The source containing for the css class should be  Home Searching for more? Return to the Main Page easily and start searching for more!  If you don't understand, then please reply &mdash; [/wiki/User:Sam_Wang S a m ] [/wiki/User_talk:Sam_Wang W a n g ] 04:29, March 18, 2012 (UTC)


 * The following code will add a class to the wordmark:


 * I'm not sure what you mean by "The source containing for the css class". Do you want to replace the html contents of the Wordmark with that code? To do that, you would use the following code:

Searching for more? Return to the Main Page easily and start browsing again! " in the class &mdash; [/wiki/User:Sam_Wang S a m ] [/wiki/User_talk:Sam_Wang W a n <font color=#bqbqbq>g ] 05:26, March 19, 2012 (UTC)
 * --Gardimuer { ʈalk } 16:21, March 18, 2012 (UTC)
 * Is there anyway to add the css class mainpagebutton to the image, and add mainpagehover after the button which has " Home