Drop down overlapping content javascript


In order to pass WCAG 1.0 Priority level 2 (AA) I am supposed to state the event handlers with this script. I think I require both 'onclick' and 'onselect'. What I need is the line of code that connects the dots when the script is called in the body of the html. Eg; the href first, then the event handler stated which is connected with the correct javascript function or whatever it needs to be etc, etc. Could someone help me with this please?

Many thanks J