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
 * Just to make it more clear, if it's with wiki source, do the following for the wordmark:

<pre style="margin-left:70px">    Home Searching for more? REturn to the Main Page easily and start browsing again!
 * Anyone have an idea? &mdash; [/wiki/User:Sam_Wang <font color=#bdbdbd>S <font color=#bfbfbf>a <font color=#bibibi>m ] [/wiki/User_talk:Sam_Wang <font color=#bkbkbk>W <font color=#bmbmbm>a <font color=#bobobo>n <font color=#bqbqbq>g ] 02:22, March 23, 2012 (UTC)