基于jQuery实现悬浮九宫格菜单插件



40 159 54



特效描述:基于jQuery实现 悬浮九宫格 菜单插件,基于jQuery实现悬浮九宫格菜单插件

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/font-awesome.min.css"/>

2. 引入JS

<script src="js/jquery.min.js"></script>
<script src="js/jquery.popmenu.js"></script>

3. HTML代码

    <div id="container">
        <h1>jQuery pop menu</h1>
        <span>click these buttons below to have a try.</span>
        <div id="demo_box">
            <div class="pop_ctrl"><i class="fa fa-bars"></i></div>
            <ul id="demo_ul">
                <li class="demo_li"><a href="http://www.51qianduan.com/"><div><i class="fa fa-home"></i></div><div>Home</div></a></li>
                <li class="demo_li"><a href="http://www.51qianduan.com/"><div><i class="fa fa-cloud"></i></div><div>Cloud</div></a></li>
                <li class="demo_li"><div><i class="fa fa-cog"></i></div><div>settings</div></li>
                <li class="demo_li"><div><i class="fa fa-envelope"></i></div><div>E-mail</div></li>
                <li class="demo_li"><div><i class="fa fa-clock-o"></i></div><div>Clock</div></li>
                <li class="demo_li"><div><i class="fa fa-folder"></i></div><div>Files</div></li>
                <li class="demo_li"><div><i class="fa fa-heart-o"></i></div><div>Favourites</div></li>
                <li class="demo_li"><div><i class="fa fa-mobile"></i></div><div>Mobile</div></li>
                <li class="demo_li"><div><i class="fa fa-power-off"></i></div><div>Exit</div></li>
            </ul>
        </div>
        <div id="demo_box_2">
            <div class="pop_ctrl"><i class="fa fa-bars"></i></div>
            <ul id="demo_ul_2">
                <li class="demo_li"><a href="#"><div><i class="fa fa-home"></i></div><div>Home</div></a></li>
                <li class="demo_li"><div><i class="fa fa-cloud"></i></div><div>Cloud</div></li>
                <li class="demo_li"><div><i class="fa fa-cog"></i></div><div>settings</div></li>
                <li class="demo_li"><div><i class="fa fa-envelope"></i></div><div>E-mail</div></li>
                <li class="demo_li"><div><i class="fa fa-clock-o"></i></div><div>Clock</div></li>
                <li class="demo_li"><div><i class="fa fa-folder"></i></div><div>Files</div></li>
                <li class="demo_li"><div><i class="fa fa-heart-o"></i></div><div>Favourites</div></li>
                <li class="demo_li"><div><i class="fa fa-mobile"></i></div><div>Mobile</div></li>
                <li class="demo_li"><div><i class="fa fa-power-off"></i></div><div>Exit</div></li>
            </ul>
        </div>
        <h2>How to use:</h2>
        <pre>$('#demo_box').popmenu({parameters});</pre>
        <p>You can use parameters below.</p>
        <pre>{
        'controller': true,       // use control button or not
        'width': '300px',         // width of menu
        'background': '#34495e',  // background color of menu
        'focusColor': '#1abc9c',  // hover color of menu's buttons
        'borderRadius': '10px',   // radian of angles, '0' for right angle
        'top': '50',              // pixels that move up
        'left': '0',              // pixels that move left
        'iconSize': '100px'       // size of menu's buttons
        }</pre>
    </div>
    <script>
        $(function(){
            $('#demo_box').popmenu();
            $('#demo_box_2').popmenu({'background':'#e67e22','focusColor':'#c0392b','borderRadius':'0'});
        })
    </script>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: flash导航菜单 flash导航条 flash导航 flash菜单 flash下拉菜单 flash下拉导航菜单 h5动画导航 h5动画菜单 html5动画导航 html5动画菜单 收缩菜单 收缩导航 右键菜单 导航切换 菜单切换 浮动菜单 浮动导航 滑动导航菜单 滑动导航 滑动菜单 滚动导航菜单 滚动菜单 滚动导航 浮动 悬浮 悬浮层 悬浮框 浮动层 浮动框 浮动插件 悬浮插件 滑动星星打分 浮动提示框 导航菜单 导航条 菜单栏 导航栏 分类导航 响应式导航条 响应式导航 其他 鼠标悬停 浮动菜单 浮动导航 图标导航 图标菜单 导航菜单插件 导航插件 菜单插件

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到