Submit your widget

Simple unlimited levels vertical drop down navigation menu jquery plugin

Created 14 years ago   Views 55498   downloads 8225    Author n/a
Simple unlimited levels vertical drop down navigation menu jquery plugin
View DemoDownload
249
Share |

Installation


Step1:include css and js files.

 

<script type="text/javascript" src="js/jquery.js"></script>
<link href="css/webwidget_vertical_menu.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/webwidget_vertical_menu.js"></script>

 

Step2:create ul and li tag.

 

        <div id="webwidget_vertical_menu" class="webwidget_vertical_menu">
            <ul>
                <li><a href="#">MENU1</a>
                    <ul>
                        <li><a href="#">submenu1</a>
                            <ul>
                                <li><a href="#">submenu1</a>
                                    <ul>
                                        <li><a href="#">submenu1</a>
                                        </li>
                                        <li><a href="#">submenu2</a></li>
                                        <li><a href="#">submenu3</a></li>
                                        <li><a href="#">submenu4</a></li>
                                        <li><a href="#">submenu5</a></li>
                                        <li><a href="#">submenu6</a></li>
                                    </ul>
                                </li>
                                <li><a href="#">submenu2</a></li>
                                <li><a href="#">submenu3</a></li>
                                <li><a href="#">submenu4</a></li>
                                <li><a href="#">submenu5</a></li>
                                <li><a href="#">submenu6</a></li>
                            </ul>
                        </li>
                        <li><a href="#">submenu2</a></li>
                        <li><a href="#">submenu3</a></li>
                        <li><a href="#">submenu4</a></li>
                        <li><a href="#">submenu5</a></li>
                        <li><a href="#">submenu6</a></li>
                    </ul>
                </li>
                <li><a href="#">MENU2</a>
                </li>
                <li><a href="#">MENU3</a></li>
                <li><a href="#">MENU4</a></li>
                <li><a href="#">MENU5</a></li>
                <li><a href="#">MENU6</a></li>
            </ul>
            <div style="clear: both"></div>
        </div>

 

Step3:add start script.

 

       <script language="javascript" type="text/javascript">
            $(function() {
                $("#webwidget_vertical_menu").webwidget_vertical_menu({
                    menu_width: '160',
                    menu_height: '25',
                    menu_margin: '2',
                    menu_text_size: '12',
                    menu_text_color: '#CCC',
                    menu_background_color: '#666',
                    menu_border_size: '2',
                    menu_border_color: '#000',
                    menu_border_style: 'solid',
                    menu_background_hover_color: '#999',
                    directory: 'images'
                });
            });
        </script>

 

tips:directory: 'images' : this option is  (down_drop_icon.gif) directory.