首页
Web开发
Windows程序
编程语言
数据库
移动开发
系统相关
微信
其他好文
会员
首页
>
其他好文
> 详细
顶部可以折叠的菜单工具栏
时间:
2015-04-16 14:25:15
阅读:
117
评论:
0
收藏:
0
[点我收藏+]
标签:
顶部可以折叠的菜单工具栏
<!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>可以折叠的菜单工具栏</title>
<style>
html,body{margin:0;}
body{ url(img.jpg) repeat-x; }
ha{margin:0 auto;}
img{border:none;}
#fx_topToolbar{position:relative;top:-76px;left:0;margin:0 auto;height:92px;background:#0C3E74; width:700px;text-align:center;}
#fx_topToolbar .shell{
margin:0 auto;padding:13px 0;}
#btn_offOn{position:absolute;bottom:-8px;left:20px;height:24px; width:150px;background:url(img34.gif) no-repeat;}
#btn_offOn a{display:block;zoom:1;height:24px;position:relative;right:-16px;background:url(tip.gif) no-repeat 100% 0;}
</style>
<script>
(JS={
$:function(o){return typeof o=="string"?document.getElementById(o):o},
on:function(o,type,fn){o.attachEvent?o.attachEvent(‘on‘+type,function(){fn.call(o)}):o.addEventListener(type,fn,false);return JS.on},
move:function(who,attr,val,s,fn){
var fm=parseInt(who.style[attr])||0;
clearInterval(who[‘timer_‘+attr]);
var iFx=(function(form,to,s){
return function (){return form+=Math[form<to?‘ceil‘:‘floor‘]((to-form)*(s||0.3))};
})(fm,val,s);
who[‘timer_‘+attr]=setInterval(function (){
var v=iFx();
who.style[attr]=v+‘px‘;
if(v==val){
fn&&fn.call(who);clearInterval(who[‘timer_‘+attr]);};
},18);
}
}).on(window,‘load‘,function (){
var Q=JS.$(‘fx_topToolbar‘);Q.style.top=‘-74px‘;
JS.on(JS.$(‘btn_offOn‘),‘mouseover‘,function(){JS.move(Q,‘top‘,0)})
(Q,‘mouseout‘,function (){Q.outTimer=setTimeout(function(){JS.move(Q,‘top‘,-74)},10)})
(Q,‘mouseover‘,function (){clearTimeout(this.outTimer)});
})
</script>
</head>
<body>
<div id="fx_topToolbar">
<div class="shell">
<a href="#" title=""><img src="1.gif" width="231" height="58" alt="" /></a>
<a href="#" title=""><img src="2.gif" width="231" height="58" alt="" /></a>
</div>
<div id="btn_offOn"><a href="#" title=""></a></div>
</div>
<div><A href="http://www.999jiujiu.com/">
http://www.999jiujiu.com/
</A></div>
</body>
</html>
顶部可以折叠的菜单工具栏
标签:
顶部可以折叠的菜单工具栏
原文地址:http://blog.csdn.net/life66881/article/details/45073083
踩
(
0
)
赞
(
0
)
举报
评论
一句话评论(
0
)
登录后才能评论!
分享档案
更多>
2021年07月29日 (22)
2021年07月28日 (40)
2021年07月27日 (32)
2021年07月26日 (79)
2021年07月23日 (29)
2021年07月22日 (30)
2021年07月21日 (42)
2021年07月20日 (16)
2021年07月19日 (90)
2021年07月16日 (35)
周排行
更多
分布式事务
2021-07-29
OpenStack云平台命令行登录账户
2021-07-29
getLastRowNum()与getLastCellNum()/getPhysicalNumberOfRows()与getPhysicalNumberOfCells()
2021-07-29
【K8s概念】CSI 卷克隆
2021-07-29
vue3.0使用ant-design-vue进行按需加载原来这么简单
2021-07-29
stack栈
2021-07-29
抽奖动画 - 大转盘抽奖
2021-07-29
PPT写作技巧
2021-07-29
003-核心技术-IO模型-NIO-基于NIO群聊示例
2021-07-29
Bootstrap组件2
2021-07-29
友情链接
兰亭集智
国之画
百度统计
站长统计
阿里云
chrome插件
新版天听网
关于我们
-
联系我们
-
留言反馈
© 2014
mamicode.com
版权所有 联系我们:gaon5@hotmail.com
迷上了代码!