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

菜单导航集合

左侧导航菜单类似按钮

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

左侧导航菜单类似按钮

要完成此效果需要两个步骤

第一步:把如下代码加入到<head>区域中

<style>powered by 25175.net
<!-- Begin
.BorderOn  { width:90px;
             margin-left:10px;
             border:1px solid #456789 }
.BorderOff { width:90px;
             margin-left:0px;
             border:1px solid #444444 }
A.mBlue:link      {color:#00CCFF; text-decoration:none;}
A.mBlue:visited   {color:#00CCFF; text-decoration:none;}
A.mBlue:active    {color:#00CCFF; text-decoration:none;}
A.mBlue:hover     {color:#FF0000; text-decoration:underline;}       
A.mGreen:link     {color:#00FF80; text-decoration:none;}
A.mGreen:visited  {color:#00FF80; text-decoration:none;}
A.mGreen:active   {color:#00FF80; text-decoration:none;}
A.mGreen:hover    {color:#FF0000; text-decoration:underline;}
A.mYellow:link    {color:#FFFF00; text-decoration:none;}
A.mYellow:visited {color:#FFFF00; text-decoration:none;}
A.mYellow:active  {color:#FFFF00; text-decoration:none;}
A.mYellow:hover   {color:#FF0000; text-decoration:underline;}         
//-->            
</style>
<script language="JavaScript1.2">
<!-- Begin
offMessage = "Add this menu to your site!"
function boxOn(which,message) {
if (document.all||document.getElementById) {
which.className = 'BorderOn';
if (document.getElementById) {
document.getElementById("Message").innerHTML = message
}
else {
Message.innerHTML = message;
      }
   }
}
function boxOff(which) {
if (document.all||document.getElementById) {
which.className = 'BorderOff';
if (document.getElementById) {
document.getElementById("Message").innerHTML = offMessage
}
else {
Message.innerHTML = offMessage;
      }
   }
}
//  End -->
</script>

第二步:如下代码加入到<body>区域中

<table cellpadding="0" cellspacing="0" width="100">
<tr>
<td align="center">
<!-- Header Table // -->
<table cellpadding="3" cellspacing="0" bgcolor="#000000" class="BorderOff">
        <tr bgcolor="#999999">
          <td>
            <div align="center"><font color="#FEDCBA" size="2" face="Arial">主菜单</font></div>
          </td>
</tr>
</table>
<!-- End Header Table //-->
<!-- Menu Items Tables
   - To add more, just follow the pattern
   - Note class= in each <a href> to attach link style colors
//-->
<!-- Menu Item One Table //-->
<table cellpadding="3" cellspacing="0" class="BorderOff" onMouseover="boxOn(this,'Visit the JavaScript Source')" onMouseout="boxOff(this)">
        <tr bgcolor="#999999">
          <td>
            <div align="center"><font color="#00FF80" size="2" face="Arial"><a class="mBlue" href="../../../link.htm" target="_blank">分类一</a></font>
            </div>
          </td>
</tr>
</table> 
<!-- Menu Item Two Table //-->
<table cellpadding="3" cellspacing="0" class="BorderOff" onMouseover="boxOn(this,'Description 2')" onMouseout="boxOff(this)">
        <tr bgcolor="#999999">
          <td>
            <div align="center"><font color="#00FF80" size="2" face="Arial"><a class="mBlue" href="http://www.jojoo.net/" target="_blank">分类二</a></font>
            </div>
          </td>
</tr>
</table>
<!-- Menu Item Three Table //-->
<table cellpadding="3" cellspacing="0" class="BorderOff" onMouseover="boxOn(this,'Description 3')" onMouseout="boxOff(this)"> 
        <tr bgcolor="#999999">
          <td>
            <div align="center"><font color="#00FF80" size="2" face="Arial"><a class="mGreen" href="http://www.jojoo.net/bb/" target="_blank">分类三</a></font></div>
          </td>
</tr>
</table>
<!-- Menu Item Four Table //-->
<table cellpadding="3" cellspacing="0" class="BorderOff" onMouseover="boxOn(this,'Description 4')" onMouseout="boxOff(this)"> 
        <tr bgcolor="#999999">
          <td>
            <div align="center"><font color="#00FF80" size="2" face="Arial"><a class="mYellow" href="http://www.jojoo.net/ts/" target="_blank">分类四</a></font></div>
          </td>
</tr>
</table>
<!-- End Menu Items Tables //-->
<!-- Message Table //-->
<!-- Set the width= of this table the same as the overall width in the <style> //-->
<table cellpadding="1" cellspacing="0" bgcolor="#444444" width="90">
        <tr bgcolor="#999999">
          <td> <!-- Set the width= of this table to the overall width
     in the style table minus 2x the border width; set
     the height= long (large) enough to accommodate your
     longest message //-->
            <table cellpadding="3" cellspacing="0" bgcolor="#000000" width="88" height="100">
              <tr bgcolor="#999999">
                <td align="left" valign="top"> <font id="Message" color="#CBA987" size="2" face="Arial">Move
                  your mouse over the menu items.</font> </td>
</tr>
</table>
</td>
</tr>
</table>
<!-- End Message Table //-->
</td>
</tr>
</table>



上一页 [1] [..16] [17] [18] [19] [20] [21] [22] [23] [24] [25..] [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 | 法律顾问:陈淑丽