ASP学校学生基地,原创基地,ASP优秀程序,定制程序,学校信息化教育整合系统的开始! 设为首页 添加到收藏夹 25175产品
  首页 > 网站技巧 > javaScript技巧
        阅读新闻
 

菜单导航集合

精彩的跳动菜单效果

[日期:2007-05-07]  来源:http://www.2ky.cn/  作者:未知  阅读: 次  [字体: ]

精彩的跳动菜单效果

<style type="text/css">
<!--
a:link,a:visited    { text-decoration: none; color: #666666 }powered by 25175.net
a:hover            { text-decoration: underline }
#hor1 {
    position:absolute;
    left:320px;
    top:20px;
    width:220px;
    height:20px;
    z-index:1;
    background-color: #999900;
}
#hor2 {
    position:absolute;
    left:320px;
    top:40px;
    width:220px;
    height:20px;
    z-index:2;
    background-color: #FFCC00;
}
#hor3 {
    position:absolute;
    left:320px;
    top:60px;
    width:220px;
    height:20px;
    z-index:3;
    background-color: #99CC00;
}
#board1 {
    position:absolute;
    left:320px;
    top:40px;
    width:220px;
    height:120px;
    z-index:-100;
    background-color: #333333;
    visibility: hidden;
}
body,td,th {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #FFFFFF;
    font-weight: bold;
}
body {
    background-color: #666666;
}
#board2 {
    position:absolute;
    left:320px;
    top:60px;
    width:220px;
    height:120px;
    z-index:-90;
    background-color: #333333;
    visibility: hidden;
}
#board3 {
    position:absolute;
    width:220px;
    height:120px;
    z-index:-80;
    left: 320px;
    top: 80px;
    background-color: #333333;
    visibility: hidden;
}
#hor4 {
    position:absolute;
    left:320px;
    top:80px;
    width:220px;
    height:20px;
    z-index:4;
    background-color: #99CCCC;
}
#board4 {
    position:absolute;
    left:320px;
    top:100px;
    width:220px;
    height:120px;
    z-index:-70;
    background-color: #333333;
    visibility: hidden;
}

-->
</style>
<script type="text/javascript">
lastNo=0
function re(menu_no){
if(lastNo!=menu_no){
cur=menu_no+1
lastNo=menu_no
rest()
}else{
cur=100
}
document.getElementById("board"+menu_no).style.visibility="visible"
}
function rest(){
for(i=1;i<=4;i++){
document.getElementById("hor"+i).style.top=20*i;
document.getElementById("board"+i).style.visibility="hidden"
}
menu_num=4;
 act=1
 height=120+20
 speed=0;
 posY=0;
}
function huke(){
if(act==1&&cur<100){
speed=(height-posY)*0.69+speed*0.6
posY+=speed
for(i=cur;i<=menu_num;i++){
document.getElementById("hor"+i).style.top=posY+(i-2)*20
}
if(Math.abs(height-posY)<0.5){
for(i=cur;i<=menu_num;i++){
document.getElementById("hor"+i).style.top=height+(i-2)*20
}
act=0
}
setTimeout("huke()",50)
}
}

</script>
</head>
<body>
<div id="hor1" onclick="re(1);huke()">News</div>
<div id="hor2" onclick="re(2);huke()">Populor</div>
<div id="hor3" onclick="re(3);huke()">Sports</div>
<div id="hor4" onclick="re(4);huke()">Woman</div>
<div id="board1">1.由AS而想起Javascript<br />2.用Jscript写ASP有没有先天性的不足?<br />3.没有了。</div>
<div id="board2">1.xhtml+css真的来了吗?<br />2.Flash取代传统网站<br />3.Flash何时才能连接数据库?</div>
<div id="board3">1.程序员与小姐的10个相同。<br />2.中国的程序员与中国的足球?</div>
<div id="board4">1.二十一世纪最缺的是什么?人才<br />
<a href="http://www.25175.com" target="_blank">http://www.25175.com</a>
<a href="http://www.25175.com" target="_blank">http://www.gamvan.com</a></div>
</body>



上一页 [1] [..24] [25] [26] [27] [28] [29] [30] [31] 下一页   
【内容导航】
第1页:完全用CSS实现的中英文双语导航菜单(经典) 第2页:商业风格的CSS垂直菜单
第3页:突起的导航栏效果[经典] 第4页:点击显示的FAQ菜单效果[经典]
第5页:一款DIV+CSS闪动导航条效果(经典) 第6页:非常酷的CSS菜单效果B(经典)
第7页:非常酷的CSS菜单效果A(经典) 第8页:会旋转的菜单导航(经典)
第9页:带项目描述的导航菜单(经典) 第10页:聚合的导航菜单效果(经典)
第11页:整合在IE中的导航条(经典) 第12页:含下拉菜单的绿色导航条
第13页:关联菜单(连动菜单) 第14页:可拖动的导航菜单
第15页:多级滚动菜单 第16页:微软导航菜单
第17页:鼠标移到文字上自动展开 第18页:点击渐显的导航菜单
第19页:随机网站推荐脚本 第20页:网站内快捷键导航
第21页:左侧导航菜单类似按钮 第22页:可移动的导航栏
第23页:页面顶部多级导航栏 第24页:浮动、隐藏的导航菜单
第25页:上下弹动的导航条 第26页:鼠标指向显示次级菜单
第27页:漂亮的仿flash菜单 第28页:滑动的层作菜单导航
第29页:精彩的跳动菜单效果 第30页:类似与QQ的好友/黑名单之类的树型菜单
第31页:定时改变标题栏的内容
推荐给朋友 】 【 打印此文章 】 【 加入收藏
 

上一篇:状态栏特效集合
下一篇:弹出浏览器的版本信息

       相关新闻   css  实现  中英文 

       本文评论   所有评论
 
  这个浮动导航栏效果如何? www.bj-pingan.cn   (YOYO ,10月23日 15:12 )
  很好...   (as ,10月07日 )
  晕   (ju ,08月05日 )
  1212   (445465 ,05月30日 )
 

点评: 字数
姓名:

.
网站制作 | 广告服务 | 产品价格 | 汇款方式 | 购买指南 | 程序制作 |
技术支持 | idc.25175.net
Copyright © 2005-2008 25175. All Rights Reserved powered by 25175 | 浙ICP备05022281 | 法律顾问:陈淑丽