How higlight opened submenu item in Accordion Script
1) Script Title: Accordion Content script (v2.0)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...daccordion.htm
3) Describe problem:
Its my first post so Hi for everyone ;)
I have small problem with this script..
How can J change color of active (selected from menu and displayed) item ? Something like this:
HTML Code:
oninit:function(headers, expandedindices){ //custom code to run when headers have initialized
for (var i=0; i<expandedindices.length; i++){
var expandedindex=expandedindices[i] //index of current expanded header index within array
headers[expandedindex].style.backgroundColor='black'
headers[expandedindex].style.color='white'
}
}
but with a actual tab,not with header, anyone can help ?