顶部缓冲下拉菜单导航特效的JS代码

时间:2013-08-27    点击:82   

复制代码 代码如下:

<script type="text/javascript">
            $(function() {
                var d=300;
                $('#navigation a').each(function(){
                    $(this).stop().animate({
                        'marginTop':'-80px'
                    },d+=150);
                });

                $('#navigation > li').hover(
                function () {
                    $('a',$(this)).stop().animate({
                        'marginTop':'-2px'
                    },200);
                },
                function () {
                    $('a',$(this)).stop().animate({
                        'marginTop':'-80px'
                    },200);
                }
            );
            });
        </script>

实用的Jquery选项卡TAB示例代码
JQuery筛选器全系列介绍
HTML Color Picker(js拾色器效果)
Js中的onblur和onfocus事件应用介绍
javascript:void(0)使用探讨
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved