1、js代码
<script language="javascript"> /** * 动态显示与隐藏层 * http://www.jb200.com */ function showsubmenu(ss){ if(eval('document.all.'+ss+'.style.display') == "none" || eval('document.all.'+ss+'.style.display') == ""){ eval('document.all.'+ss+'.style.display = "block"'); }else{ eval('document.all.'+ss+'.style.display = "none"'); } } </script>
2、调用示例:
onclick="showsubmenu('要显示或隐藏的层')"
3、css代码:
#basic{ display:none }