colour change on menu
I put up a similar post a few days ago to do with a push down menu problem.
I'm now using a css text based pushdown menu . I've got this working but I'm still having the problem that I don't know how to show the 2nd colour of the rollover once a user has clicked on it and the sub menu rolls down and presents itself. I want the 2nd colour to remain static and not go away once the user mouse aways from it.
Sorry, I forgot what forum I was in.
When the item is clicked, set a flag for that item. Then when the mouseout occurs, check the flag.
Menus are pretty advanced, and not knowing what you are using makes it near impossible to advise you.
Originally Posted by bluey83
Usually objects have an ID that you use to script them. You can your own add parameters to any object by instantiating them. For example:
This adds the attribute "wasclicked" to some object called "para1". You should be careful not to use reserved words or attributes that already exist.
document.getElementById("para1").wasclicked = true;
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)