日期:2014-05-16 浏览次数:20382 次
<div>
<dl>
<dt><a href="javascript:void(0);" class="plus" onclick="showHide(this,'aaa0');"><span></span>一级菜单1</a></dt>
<dd id="items0" style="display:none;">
<ul>
<li><a href="#" onClick="doclickA(this)">二级菜单1</a></li>
</ul>
</dd>
</dl>
<dl>
<dt><a href="javascript:void(0);" class="plus" onclick="showHide(this,'aaa1');"><span></span>一级菜单2</a></dt>
<dd id="items1" style="display:none;">
<ul>
<li><a href="#">二级菜单11</a></li>
</ul>
</dd>
</dl>
<dl>
<dt><a href="javascript:void(0);" class="plus" onclick="showHide(this,'aaa2');"><span></span>一级菜单3</a></dt>
<dd id="items2" style="display:none;">
<ul>
<li><a href="#">二级菜单11</a></li>
</ul>
</dd>
</dl>
</div>
window.onload = function init(){
var arr = [getObject("aaa0"), getObject("aaa1"), getObject("aaa2")];
for(var i=0; i<arr.length; i++){