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)
 * It might be better if you explained what you want to do exactly rather than some obscure change that might not even achieve what you want. It may just be better to add a simple tooltip to the wordmark. -- <span style="border-bottom:1px dotted; cursor:help;" title="Who?">Fandyllic (talk &middot; contr) 23 Mar 2012 4:08 PM Pacific

I don't quite understand what you mean, Fandyllic &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 ] 00:49, March 24, 2012 (UTC)
 * You're not easy to understand yourself, Sam! You want to do what? Add some kind of mouseover effect or tooltip to your wordmark? Or do your want to replace the wordmark? Or append HTML to it? Or something else entirely?


 * Another way to say this: for the entire wordmark, make it have the following html as the wordmark:
 * Another way to say this: for the entire wordmark, make it have the following html as the wordmark:


 * Do you understand now? &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 ] 10:36, March 24, 2012 (UTC)


 * Possibly. So you want to replace the wordmark with that snippet, is that it?

--


 * So you've decided to seek help elsewhere? That's cool, but the fact that you couldn't be bothered to mention that here is not cool. That is rude. --
 * Thanks! &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:51, March 28, 2012 (UTC)

I didn't try to seek help in the thread, it was for another JavaScript help &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:53, March 28, 2012 (UTC)