I am trying to replicate the navigation menu effect of this website but with cleaner code. The current code I have was auto-generated from a PSD to HTML/CSS conversion tool, resulting in a lot of unnecessary code. While I can recreate most of the menu, I am stuck on implementing the hover-off effect for the Shop Now button only when the contact button is hovered over.
Do you have any suggestions on how I can achieve this toggle effect where hovering over the contact button turns off the Shop Now effect?
Below is what I have attempted so far:
<ul>
<li id="homeButton"> <img src="images/home.png" onmouseout="this.src='images/home.png'" onmouseover="this.src='images/homeHover.png'" width="115" height="55" alt="home" /></li>
// Other menu items...
<li id="contactButtonMenu"> <img src="images/contactButton.png" onmouseout="this.src='images/contactButton.png'" onmouseover="this.src='images/contactButtonHover.png'" width="115" height="55" alt="contact" /></li>
<li id="shopNowButton"> <img src="images/shopNowHover.png" width="114" height="53" alt="Shop Now" /> </li>
</ul>
Here is my attempt on JS Fiddle: http://jsfiddle.net/GHHJM/