我需要本网站的导航菜单http://recruitmentmalta.com/ptowers/的确切效果,但需要整洁的代码。这个代码是用一个从PSD转换成HTML/CSS的工具生成的,并且基本上创建了一堆无用的代码。我知道如何制作该菜单,除了仅在联系人悬停时才会关闭“即刻购买”功能的部分。导航菜单仅在特定场合下悬停效果
当我将鼠标悬停在联系人按钮上时(当立即关闭Shop Now时),如何重新创建悬停效果的任何想法?
这是我迄今所做的,给你一个想法
<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>
<li id="aboutButton"> <img src="images/about.png" onmouseout="this.src='images/about.png'" onmouseover="this.src='images/aboutHover.png'" width="115" height="55" alt="about" /></li>
<li id="newsButton"> <img src="images/news.png" onmouseout="this.src='images/news.png'" onmouseover="this.src='images/newsHover.png'" width="115" height="55" alt="news" /></li>
<li id="brandsButton"> <img src="images/brands.png" onmouseout="this.src='images/brands.png'" onmouseover="this.src='images/brandsHover.png'" width="115" height="55" alt="brands" /></li>
<li id="storesButton"> <img src="images/stores.png" onmouseout="this.src='images/stores.png'" onmouseover="this.src='images/storesHover.png'" width="115" height="55" alt="stores" /></li>
<li id="careersButton"> <img src="images/careers.png" onmouseout="this.src='images/careers.png'" onmouseover="this.src='images/careersHover.png'" width="115" height="55" alt="careers" /></li>
<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>
这是我的JS小提琴链接:http://jsfiddle.net/GHHJM/
请张贴有问题的代码示例,以便问题更加简洁。 – 2011-06-09 14:28:53
@John Strickler - 我关注网站,因此代码就在那里,除此之外,我只能看到设计图。 – 2011-06-10 13:02:01