MyBB Community Forums

Full Version: Javascript Hover problem.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to make my buttons change when you hover over them.

Here is what I got - <


a href="{$mybb->settings['bburl']}/portal.php"><img name="menubar" src="http://i43.tinypic.com/a9uxqh.png" onMouseOver="menu.src="http://i40.tinypic.com/nppg94.png " onMouseOut="menu.src="http://i43.tinypic.com/a9uxqh.png " /></a>

What am I doing wrong Sad?
Funnily enough I figured howe to do this yesterday. Here is an example of one of my buttons:

<a href="member.php?action=emailuser&amp;uid={$post['uid']}"><img src="{$theme['imglangdir']}/postbit_email.png" alt="{$lang->postbit_email}" title="{$lang->postbit_email}"
 onmouseover="this.src='{$theme['imglangdir']}/postbit_email_hover.png';" onmouseout="this.src='{$theme['imglangdir']}/postbit_email.png';" /></a> 

Hope that helps?
I tried that and still don't work. Am I suppose to make where it says "this.src" match one of my divs?

Edit: NVM I got it to work thanks man.
Glad I could be of help. Your admin forum looks interesting as well.