Forum:JavaScript help!

I am very bad at JavaScript (can only do ), so can you help me with this question? In the main page of Isle of Tune Wiki, where it has the 'mainpagebutton' and 'mainpagehover' classes, I would like to have a style of when your the edge of the center of the right edge of the 'mainpagehover' class to be identical to wherever your cursor is, as long as it's on the 'mainpagebutton' class. Does anyone have an idea? If so, then please leave a message on my Message Wall, thanks! &mdash; [/wiki/User:Sam_Wang S a m ] [/wiki/User_talk:Sam_Wang W a n g ] 03:56, March 27, 2012 (UTC)