网页特效
建站首页
|
广告代码
|
源码下载
|
站长工具
|
字体下载
|
网页模板
|
收藏本站
|
设为首页
网站首页
菜单导航
日期时间
背景图像
图层样式
鼠标键盘
页面窗口
色彩表格
链接文字
表单按钮
计数转换
游戏娱乐
综合实例
特效
热门搜索:
特效代码
js脚本
导航菜单
热点推荐:
英文字体
人民币汇率
dw插件
站长常用软件
alexa排名查询
您的位置:
网页特效
->
菜单导航
-> 支付宝的控制台动画效果菜单
支付宝的控制台动画效果菜单
作者:admin 发布时间:2010-8-31 20:08:44 发布人: admin
<!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" lang="zh" xml:lang="zh"> <head> <title>支付宝的控制台动画效果菜单丨jz123.Cn</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;} table{border-collapse:collapse;border-spacing:0;} fieldset,img{border:0;} body{font-size:12px;} #MyMenu{ margin: 10px auto; width: 760px;background: url(http://web.archive.org/web/20150530051256im_/http://www.csrcode.cn/html/txdm_2/images/20100813/Account_Title_BgC.gif) repeat-x; height: 36px;} .MyMenubg{background: url(http://web.archive.org/web/20150530051256im_/http://www.csrcode.cn/html/txdm_2/images/20100813/Account_Title_Bg.gif) no-repeat;} #QuickMenu{background: url(http://web.archive.org/web/20150530051256im_/http://www.csrcode.cn/html/txdm_2/images/20100813/Account_Title_Bg.gif) no-repeat right -36px;text-align:left;} #QuickMenu a{font-size:12px;color:#003599;text-decoration:none;} #QuickMenu a:hover,#QuickMenu a:active{color:#FF6B00;} #QuickMenu span a.cc:hover ,#QuickMenu a.cc:active span{background: url(http://web.archive.org/web/20150530051256im_/http://www.csrcode.cn/html/txdm_2/images/20100813/MyMenu_bg_on.gif) no-repeat 0px 6px;} #QuickMenu span a.cc {cursor:pointer;display:block;background: url(http://web.archive.org/web/20150530051256im_/http://www.csrcode.cn/html/txdm_2/images/20100813/MyMenu_bg.gif) no-repeat 0px 6px;margin:0px 0px 0px 10px;width:154px;height:23px;padding:11px 5px 0px 25px;} #MyMenuLinks{border:1px solid #FE7E25;background:#FCD5AA;padding:3px;text-align:left;top:-3px;left:20px;width:240px;float:left;} #MyMenuLinks *{margin:0px;padding:0px;line-height:20px;} #MyMenuLinks li {color:#003599;font-weight:bold;float:left;width:208px;padding-bottom:15px;} #MyMenuLinks li.home a{display:block;border:1px solid #FFBD80;background:#FCF6DC url(http://web.archive.org/web/20150530051256im_/http://www.csrcode.cn/html/txdm_2/images/20100813/MyMenu_home.gif) no-repeat 45px 5px;text-align:center;font-weight:normal;} #MyMenuLinks ul{clear:left;list-style:none;border:1px solid #FBDDB9;background:#FFF;width:208px;padding:15px 15px 0px 15px;float:left;} #MyMenuLinks ul ul{border:1px solid #FFF;background:#FFF;width:200px;padding:0px;} #MyMenuLinks li li{font-weight:normal;width:90px;background:url(http://web.archive.org/web/20150530051256im_/http://www.csrcode.cn/html/txdm_2/images/20100813/MyMenu_Li_bg.gif) no-repeat 0px 6px;padding:0px 0px 0px 10px;} #all-links, #flying{display:none;margin-left:-35px;position:absolute;left:0;top:30px;} #flying{background:#fff;border:1px dashed #ccc;top:0;} #enter{position: relative;width:184px;} </style> </head> <body> <div id="MyMenu"> <div class="MyMenubg"> <div id="QuickMenu"> <div id="enter"> <span><a id="cc" href="#" class="cc">支付宝快速入口</a></span> <div id="flying"></div> <div id="all-links" style="display:none;"> <div id="MyMenuLinks"> <ul> <li class="home"><a class="R" href="#">我的支付宝首页</a> </li> <li>账户管理 <ul> <li><a href="#">账户余额查询</a> </li> <li><a href="#">账户信息管理</a> </li> <li><a href="#">支付宝卡通</a> </li> </ul> </li> <li>资金管理 <ul> <li><a href="#">充值</a> </li> <li><a href="#">提现</a> </li> <li><a href="#">账户明细查询</a> </li> <li><a href="#">提现申请查询</a> </li> </ul> </li> <li>增值服务 <ul> <li><a href="#">安全中心</a> </li> <li><a href="#">手机服务</a> </li> <li><a href="#">信使</a> </li> <li><a href="#">产品中心</a> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> var $ = function(id){ return typeof id == 'string' ? document.getElementById(id) : id; } var flying = function(obj, w, h, callback){ var d = 10; var index = 0; var extend = 50; var step = {width:(w+extend)/d, height:(h+extend)/d, top:30/d}; var only; clearInterval(only); obj.style.display = 'block'; only = setInterval( function(){ index++; obj.style.width = ( index * step.width) + 'px'; obj.style.height = ( index * step.height) + 'px'; obj.style.top = ( index * step.top) + 'px'; obj.style.marginLeft = ( 0 - (index * step.width - 150))/2 + 'px'; if(index > d){ clearInterval(only); if(typeof callback == 'function') callback(obj); } } ,10); } var timer; $('enter').onmouseover = function(){ clearTimeout(timer); timer = setTimeout(function(){ if($('all-links').style.display == 'none'){ new flying($('flying'), 248, 293, function(obj){ $('all-links').style.display = 'block'; obj.style.display = 'none'; }); document.title = 'over--'+Math.random(); } },200); } $('enter').onmouseout = function(){ clearTimeout(timer); timer = setTimeout(function(){ $('all-links').style.display = 'none'; document.title = 'out--'+Math.random(); },200); } </script> </body> </html>
支付宝网站中的控制台总菜单,动画效果的显示,漂亮美观,简洁实用,鼠标移到文字上,会滑出一个菜单层,移开后消失,也是当前较流行的菜单方式,很多朋友都挺喜欢的
将本文收藏到QQ书签与更多好友分享
上一篇:文章:
JS横向布局二级菜单,鼠标滑过即激活菜单
下一篇:文章:
行为、结构、表现分离的CSS选项卡
本类浏览排行 »
搜索页面中的内容
又一款综合搜索引擎代码
标题栏显示当前时间
倒影效果的电子表,显示当前时间
自动记录当前页面最新的更新日期
JS让网页每隔2秒弹出一次对话框
一款超酷的CSS列表排行榜
鼠标悬停放大的纯CSS分页效果
本站推荐文章 »
垂直三栏自适应等高布局
仿QQ消息管理器的文本内容样式
支付宝的控制台动画效果菜单
文字、图片拖曳移动
可拉伸移动的DIV层效果
很酷的图片伸缩放大功能
较好的视觉效果的网页选项卡
CSS实例:通过定义渐变边框给图片加阴影