In the JS script, I coded it to toggle the item open or closed depending on
the request.
So I tried adding a statement there to set the Bgcolo but does not seem to
work.
function showHide(theid,mName){
if (document.getElementById) {
var switch_id = document.getElementById(theid);
var menu_id = document.getElementById(mName);
if (switch_id.className == 'show'){
switch_id.className = 'hide';
switch_id.style.backgroundColor = '#800000';
}
else {
switch_id.className = 'show';
switch_id.style.backgroundColor = '#EBD6B0';
}
}
}
-----Original Message-----
From: Coldfusion [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 4:56 PM
To: CF-Community
Subject: RE: CSS Help
In this menu there is only one submenu (selectable menu).
However, to answer the question, as far as I am concerned, the selected menu
can remain open until clicked Again to close (as it is designed currently).
-----Original Message-----
From: Dinner [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 4:42 PM
To: CF-Community
Subject: Re: CSS Help
On 2/19/07, Coldfusion <[EMAIL PROTECTED]> wrote:
.........
> When the menu item "Program Services" is clicked, the submenu will
> display (as it is doing), along with the item Program Services will
> remain as a bgcolor or maroon and the small
How are you thinking of handling "multiple expansions"-- are you planning on
automatically "unselecting" the previously selected top level menu item?
Or having all expanded top level items bg colors set to maroon (vs. just the
currently "active" one)?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/
Archive:
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:228375
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5