Meizu魅族官方网站的jQuery导航菜单

偶尔看到魅族官方网站,发现网站的导航菜单的效果很不错就扣下来,俩字:给力。鼠标放到菜单上,菜单的下边会有一条横线在滑动。一直想找类似的效果学一下。结果,不是忘记有类似效果的网站的网址,就是压根儿找不到。。又不知道怎么描述,今天总算碰到了,真给力。

 

代码:

 

<! 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 > Meizu魅族导航菜单 </ title >
< script  type ="text/javascript"  src ="http://www.codefans.net/ajaxjs/jquery1.3.2.js" ></ script >
< style >
div,h1,h2,h3,h4,p,form,label,input,textarea,img,span
{ margin : 0 ; padding : 0 ; } ul,li { list-style : none ; padding : 0 ; margin : 0 ; } img { border : none ; }
.csc_top
{ background : url(http://www.codefans.net/jscss/demoimg/201105/shopping_tab.jpg) 0 0 no-repeat ; width : 958px ; height : 45px ; margin : 0 auto ; position : relative ; z-index : 101 ; }
.slideMenu
{ height : 38px ; }
li.current a
{ color : #00b5f7 ; cursor : pointer ; }
li.current a:hover
{ color : #00b5f7 ; cursor : pointer ; }
.lavaLampWithImage3 li a:hover,.lavaLampWithImage3 li a:active
{ border : none ; color : #00B5F7 ; text-decoration : none ; }
.lavaLampWithImage3 .sep
{ padding-top : 13px ; font-size : 10px ; color : #aeadad ; float : left ; height : 20px ; border-top : none ; }
.lavaLampWithImage3
{ position : relative ; height : 28px ; float : left ; }
.lavaLampWithImage3 .current
{ color : #008ace ; }
.lavaLampWithImage3 .current a
{ color : #008ace ; }
.lavaLampWithImage3 li
{ float : left ; list-style : none ; padding-bottom : 11px ; }
.lavaLampWithImage3 li.back
{ background : url(http://www.codefans.net/jscss/demoimg/201105/b_slider.gif) center bottom no-repeat ; width : 120px ; height : 28px ; z-index : 8 ; position : absolute ; }
.lavaLampWithImage3 li a
{ font : bold 14px arial ; text-decoration : none ; color : #303030 ; outline : none ; text-align : center ; top : 6px ; letter-spacing : 0 ; z-index : 10 ; display : block ; float : left ; height : 28px ; position : relative ; overflow : hidden ; padding : 5px 20px 0 17px ; font-family : "Microsoft Yahei",Arial,Helvetica,sans-serif,"� ; ���";font-weight : normal ; font-size : 13px ; }
</ style >
</ head >
< body >
< div  class ="csc_top" >
    
< div  class ="shead_left" >
      
< ul   id ="1"  class ="lavaLampWithImage3" >           
                  
< li  class ="current" >
                
< href ="/"  style ="padding: 5px 30px 0;" > Meizu </ a >
                
</ li >
                
< span  class ="sep" > | </ span >
                  
< li  >
                
< href ="http://www.codefans.net/"  style ="padding: 5px 30px 0;" > 魅族 </ a >
                
</ li >
                
< span  class ="sep" > | </ span >
                  
< li >
                
< href ="/"  style ="padding: 5px 30px 0;" > 源码爱好者 </ a >
                
</ li >     
     
</ ul >
    
</ div >
</ div >
</ div >
< script  type ="text/javascript"  src ="http://www.codefans.net/jscss/demoimg/201105/MZPub-CSC-0121.js" ></ script >
</ body >
</ html >
posted on 2011-07-19 13:18  前端设计 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/webshow/archive/2011/07/19/2110465.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值