Jump to content

[SOLVED] HTML Rollover Effect Elsewhere on Page


njdirt

Recommended Posts

Hello,

  So, I know I've seen this done before, but I don't know how to do it:

 

Take this Layout, though right now it is just an image...

splash.jpg

 

If someone were to mouse over "About" I would like the text "Who We Are" to appear to the left of About, in that open space.  If someone moused over "Services" I'd like "What We Do" to appear in the same space.  I will also have the links themselves do a rollover effect, though I know how to do that.

 

If anyone could point me in the right direction, I'd appreciate it very much!  Thanks in Advance!

 

 

You could do this purely in css. Eric Meyer made something like that.

 

How it works:

 

<div id="nav">

<ul>

    <li class="about">

      <a>About</a>

        <span>Who we are</span>

    </li>

    <li class="contact">

    <a>Contact Us

      <span>Get in touch</span>

    </li>

</ul>

</div>

 

Span is hidden. Display: none;

 

On the mouse hover:

 

ul li.about:hover span {

display: block;

}

 

You get the idea. Google is your friend.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.