...

View Full Version : Navigation conundrum



mendesdusters
10-20-2005, 12:02 AM
Hi all,

I have a problem that I do not know how to approach. Let's say I have 3 image sourced buttons serving as a nav bar at the top of my page that control an iframe below. When I hover over the images I use a change source script to alter their appearance - easy enough. But what I want to do is have the button keep the hovered state when it is clicked. Using the onClick function I can do this but when I MouseOff of the button it goes back to the non-hovered state because of the original hover on/off code. My question is "Is there a way around this? - maybe with an if statement or something." Any help would be great. Thanks.

-Dusty

diablo2_v
10-20-2005, 12:50 AM
If you post some code/link, that would be helpful.

What I would do is save some sort of unique id for the image when it is clicked. And in your mouseout code, only change it if the unique id is not the one clicked down.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum