Log in

View Full Version : having problems with image positioning



stevemtno
03-20-2008, 02:35 PM
I'm working on a navigation bar and I'm having a problem.

I need to make the 'tab image' stay visible when you're on the menu for that particular tab. But when you mouseout, the 'tab image' needs to disappear. So (as far as I know) I can't use a :visited or a :active. When I tried :visited, it stayed visible after I moved the mouse off the menu. When I tried :active, it was visible all the time.

Here's a link to my page in progress:

http://www.stltoday.com/stltoday/pages.nsf/9C2225A4C505CC768625692100045EE4/09CA7738C05AE33086257412004B690B?OpenDocument

Any help/assistance will be greatly appreciated.. thanks!

Steve

Nile
03-21-2008, 02:59 AM
Just give it another class and when you click on it[js], you can change it to that class....
Thats what I do, for example:


<script type="text/javascript">
show(var){
var.class="selected";
}
<!--tabs--! onClick="show(this)">

Although I don't know if you can use js...

tfit
03-21-2008, 11:48 AM
stevemtno,

Are you testing this with IE? I had this similar problem and I thought it was a nice feature. Later I realized it's an IE thing.