我需要本網站的導航菜單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