This has been discussed some days ago, search the previous posts.
Anyways, it's a very simple solution. Call a function in the change
event of the accordion and add the below code to that function.
var lastSelected
function selectedPane()
{
lastSelected.setStyle("color", 0x000000);
var header =
accordion1.getHeaderAt(accordion1.selectedIndex); // accordion1 is the
id of the accordion
lastSelected = header;
header.setStyle("color", 0xFF0000)
}
Thanks
-Ashish
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky
> Sent: Friday, August 05, 2005 8:29 AM
> To: [email protected]
> Subject: [flexcoders] Accordeon header, text in different color
>
> Hello Everybody,
>
> Goal: I need to have text in accordeon header in different color.
> Maybe htmlText field in that header.
>
> As far as I know we have Button in the accordeon header, so my
> assumption is to extend button class and use it in extended
> accordeonHeader class.
>
> Maybe someone can suggest better solution?
>
> Best regards
> Stanislav Zayarsky
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> <font face=arial size=-1><a
> href="http://us.ard.yahoo.com/SIG=12hs4mknp/M=362335.6886445.7
> 839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123263230
> /A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/to
> pics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http:
> //groups.yahoo.com/">In low income neighborhoods, 84% do not
> own computers. At Network for Good, help bridge the Digital
> Divide!</a>.</font>
> --------------------------------------------------------------
> ------~->
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12h743oqn/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123270050/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/