700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > jquery动感漂浮导航菜单代码分享【jquery】

jquery动感漂浮导航菜单代码分享【jquery】

时间:2020-05-17 10:28:05

相关推荐

jquery动感漂浮导航菜单代码分享【jquery】

web前端|js教程

jquery导航菜单,jquery导航菜单特效,动感漂浮导航菜单

web前端-js教程

这是一款基于jquery实现动感漂浮导航菜单的特效代码,菜单可以上下浮动,动感十足,为自己的网站增加了活力,是一款非常实用的导航菜单特效源码。

jsp 权限管理源码,vscode死循环了怎么办,ubuntu cpu 挖矿,tomcat 资源目录下,梦到腿上爬虫,php如何读取数组,seo精准培训课程关键词lzw

运行效果图:

锦尚源码,mac更改vscode快捷键,ubuntu循环卡死,如何清理tomcat日志,爬虫100个,php顶级框架,专业性seo优化服务电话,网站模板修改lzw

万年历控件源码,vscode项目怎么打包,ubuntu 安装问题,tomcat 没有权限,监控sqlite,网页设计回老家,数据库绑定,服务器伪静态设置,手机时钟部件去掉插件,前端做多少个框架比较好,沪江爬虫,php入门到精通,网站编辑seo,springboot写服务,织梦图集调用所有图片标签,网站cms系统,网页层固定位置,php cms模板,网站后台公告id修改,日志管理系统页面,运输信息管理系统代码,matlab程序 系统辨识lzw

点击下载源码

为大家分享的jquery动感漂浮导航菜单代码如下

jQuery Floating Menu$(document).ready(function () { //get the default top value var top_val = $(#menu li a).css( op); //animate the selected menu item $(#menu li.selected).children(a).stop().animate({top:0}, {easing: easeOutQuad, duration:500}); $(#menu li).hover( function () { //animate the menu item with 0 top value $(this).children(a).stop().animate({top:0}, {easing: easeOutQuad, duration:500}); }, function () { //set the position to default $(this).children(a).stop().animate({top:top_val}, {easing: easeOutQuad, duration:500}); //always keep the previously selected item in fixed position $(#menu li.selected).children(a).stop().animate({top:0}, {easing: easeOutQuad, duration:500}); } ); });#menu { list-style:none; padding:0; margin:0 auto;; height:70px; width:600px; } #menu li { float:left; width:109px; height:inherit; position:relative; overflow:hidden; } #menu li a { position:absolute; top:20px; text-indent:-999em; background:url(menu.jpg) no-repeat 0 0; display:block; width:109px; height:inherit; /* fast png fix for ie6 */ position:relative; behavior: expression((this.runtimeStyle.behavior="none")&&(this.jpgSet?this.jpgSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf(.jpg alt="jquery动感漂浮导航菜单代码分享【jquery】" title="jquery动感漂浮导航菜单代码分享【jquery】")>-1?(this.runtimeStyle.backgroundImage = "none",this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\" + this.src + ", sizingMethod=image)",this.src = "transparent.jpg"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace(url(",\).replace(\"),\),this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\" + this.origBg + ", sizingMethod=crop)",this.runtimeStyle.backgroundImage = "none")),this.jpgSet=true)); }

Item 1 Item 2 Item 3 Item 4 Item 5jQuery Floating Menu$(document).ready(function () { //get the default top value var top_val = $(#menu li a).css( op); //animate the selected menu item $(#menu li.selected).children(a).stop().animate({top:0}, {easing: easeOutQuad, duration:500}); $(#menu li).hover( function () { //animate the menu item with 0 top value $(this).children(a).stop().animate({top:0}, {easing: easeOutQuad, duration:500}); }, function () { //set the position to default $(this).children(a).stop().animate({top:top_val}, {easing: easeOutQuad, duration:500}); //always keep the previously selected item in fixed position $(#menu li.selected).children(a).stop().animate({top:0}, {easing: easeOutQuad, duration:500}); } ); });#menu { list-style:none; padding:0; margin:0 auto;; height:70px; width:600px; } #menu li { float:left; width:109px; height:inherit; position:relative; overflow:hidden; } #menu li a { position:absolute; top:20px; text-indent:-999em; background:url(menu.jpg) no-repeat 0 0; display:block; width:109px; height:inherit; /* fast png fix for ie6 */ position:relative; behavior: expression((this.runtimeStyle.behavior="none")&&(this.jpgSet?this.jpgSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf(.jpg)>-1?(this.runtimeStyle.backgroundImage = "none",this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\" + this.src + ", sizingMethod=image)",this.src = "transparent.jpg"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace(url(",\).replace(\"),\),this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\" + this.origBg + ", sizingMethod=crop)",this.runtimeStyle.backgroundImage = "none")),this.jpgSet=true)); }

Item 1 Item 2 Item 3 Item 4 Item 5

以上就是为大家分享的jquery动感漂浮导航菜单代码,希望大家可以喜欢。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。