Basically, the links are an image surrounded by an anchor tag, and when you hover over it, another image appears behind it as a css background image. (Both are pngs, in case that matters.)
For some reason, on each page, there's one initial image that won't show until you run your mouse over it, activating the other image. When you mouse off, the initial graphic shows.
Can anyone shed any light on this? I have no idea what's going on.
The site: http://174.120.63.221/~geez34xy/testing/index.php
The navigation HTML code:
CODE
<div id="nav">
<span id="nav1" class="nav"><a href="index.php"><span class="hide">Welcome to Calico Spanish!</span><img src="utilities/nav-welcome.png" border="0" alt="Welcome to Calico Spanish!" /></a></span>
<span id="nav2" class="nav"><a href="whats-included.php"><span class="hide">What's Included in the Spanish Curriculum?</span><img src="utilities/nav-included.png" border="0" alt="What's Included in the Spanish Curriculum?" /></a></span>
<span id="nav3" class="nav"><a href="testimonials.php"><span class="hide">Testimonials for Calico Spanish</span><img src="utilities/nav-testimonials.png" border="0" alt="Testimonials for Calico Spanish" /></a></span>
<span id="nav4" class="nav"><a href="order.php"><span class="hide">Order Spanish Lanuage Curriculum</span><img src="utilities/nav-order.png" border="0" alt="Order Spanish Lanuage Curriculum" /></a></span>
<span id="nav5" class="nav"><a href="faq.php"><span class="hide">Calico Spanish FAQs</span><img src="utilities/nav-faq.png" border="0" alt="Calico Spanish FAQs" /></a></span>
<span id="nav6" class="nav"><a href="samples.php"><span class="hide">Spanish Lanuage Samples</span><img src="utilities/nav-samples.png" border="0" alt="Spanish Lanuage Samples" /></a></span>
<span id="nav7" class="nav"><a href="more.php"><span class="hide">Tell Me More About Learning Spanish</span><img src="utilities/nav-more.png" border="0" alt="Tell Me More About Learning Spanish" /></a></span>
</div>
<span id="nav1" class="nav"><a href="index.php"><span class="hide">Welcome to Calico Spanish!</span><img src="utilities/nav-welcome.png" border="0" alt="Welcome to Calico Spanish!" /></a></span>
<span id="nav2" class="nav"><a href="whats-included.php"><span class="hide">What's Included in the Spanish Curriculum?</span><img src="utilities/nav-included.png" border="0" alt="What's Included in the Spanish Curriculum?" /></a></span>
<span id="nav3" class="nav"><a href="testimonials.php"><span class="hide">Testimonials for Calico Spanish</span><img src="utilities/nav-testimonials.png" border="0" alt="Testimonials for Calico Spanish" /></a></span>
<span id="nav4" class="nav"><a href="order.php"><span class="hide">Order Spanish Lanuage Curriculum</span><img src="utilities/nav-order.png" border="0" alt="Order Spanish Lanuage Curriculum" /></a></span>
<span id="nav5" class="nav"><a href="faq.php"><span class="hide">Calico Spanish FAQs</span><img src="utilities/nav-faq.png" border="0" alt="Calico Spanish FAQs" /></a></span>
<span id="nav6" class="nav"><a href="samples.php"><span class="hide">Spanish Lanuage Samples</span><img src="utilities/nav-samples.png" border="0" alt="Spanish Lanuage Samples" /></a></span>
<span id="nav7" class="nav"><a href="more.php"><span class="hide">Tell Me More About Learning Spanish</span><img src="utilities/nav-more.png" border="0" alt="Tell Me More About Learning Spanish" /></a></span>
</div>
The corresponding CSS code:
CODE
.nav {
height: 158px;
border-right: 1px #ea7a7d solid;
display: block;
float: left;
padding: 0 10px 10px;;
}
.hide {
display: none;
}
#nav1:hover {
background-image: url(../../utilities/nav-welcome-on.png); }
#nav2:hover {
background-image: url(../../utilities/nav-included-on.png); }
#nav3:hover {
background-image: url(../../utilities/nav-testimonials-on.png); }
#nav4:hover {
background-image: url(../../utilities/nav-order-on.png); }
#nav5:hover {
background-image: url(../../utilities/nav-faq-on.png); }
#nav6:hover {
background-image: url(../../utilities/nav-samples-on.png); }
#nav7:hover {
background-image: url(../../utilities/nav-more-on.png); }