欢迎来到皮皮网网站!

【ios ble 源码】【web 棋牌 源码下载】【pokemmo丰源码头】叠菜单源码_折叠菜单代码

时间:2024-11-30 07:32:24 来源:picasso 源码分析

1.折叠展开的叠菜单源叠菜单代ios ble 源码菜单

叠菜单源码_折叠菜单代码

折叠展开的菜单

       试试这个:

       <script type="text/javascript">

        function SwitchMenu(obj){

        if(document.getElementById){

        var el = document.getElementById(obj);

        var ar = document.getElementById("masterdiv").getElementsByTagName("span");

        if(el.style.display != "block"){

        for (var i=0; i<ar.length; i++){

        if (ar[i].className=="submenu")

        ar[i].style.display = "none";

        }

        el.style.display = "block";

        }else{

        el.style.display = "none";

        }

        }

        }

       window.onload=function(e) {

       e = e || window.event;

       SwitchMenu('sub1');

       }

        </script>

更多相关资讯请点击【时尚】频道>>>