见MSDN中关于“Implementing DHTML Behaviors in Script Using HTML Components”的例子,虽说也是两级,自己可以想办法。