간단한 JQ의 2 레벨 효과 메뉴

2870 단어 2 레벨 메뉴
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>NotesForMenuTree demo</title>
    <link href="Styles.css" rel="stylesheet" type="text/css" />

    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="js/JQuery-ui.js" type="text/javascript"></script>

    <script src="js/JQuery.MenuTree.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $('#menu2').menuTree({
                expandSpeed: 1000,
                collapseSpeed: 1000,
                expandEasing: 'easeOutBounce',
                collapseEasing: 'easeOutBounce',
                parentMenuTriggerCallback: false,
                multiOpenedSubMenu: true
            });
           
        });
    </script>

</head>
<body>
 
 
    <div id="menu2" class="menuTree">
        <ul>
            <li class="parent"><a href="#"> </a>
                <ul>
                    <li class="child"><a href="dog.htm"> </a></li>
                    <li class="child"><a href="cat.htm"> </a></li>
                    <li class="child"><a href="duck.htm"> </a></li>
                </ul>
            </li>
            
                        <li class="parent"><a href="#"> 2</a>
                <ul>
                    <li class="child"><a href="dog.htm"> </a></li>
                    <li class="child"><a href="cat.htm"> </a></li>
                    <li class="child"><a href="duck.htm"> </a></li>
                </ul>
            </li>
            
                        <li class="parent"><a href="#"> 3</a>
                <ul>
                    <li class="child"><a href="dog.htm"> </a></li>
                    <li class="child"><a href="cat.htm"> </a></li>
                    <li class="child"><a href="duck.htm"> </a></li>
                </ul>
            </li>
        </ul>
    </div>
</html>
<!-- JS  JQ       ..- -!   ..3Q-->

좋은 웹페이지 즐겨찾기