欢迎你的访问
 
返回天空素材库首页 http://www.Skysucai.com  
收藏本站
将本站设为首页
您当前的位置:天空素材首页 -> 导航菜单特效 (突出的接钮似效果)
 
栏 目 导 航
. 常用代码 . 综合特效
. 状态特效 . 游戏特效
. 页面背景 . 页面特效
. 页面导航 . 文本操作
. 文本特效 . 图形特效
. 鼠标特效 . 时间日期
. 密码特效 . 浏览相关
. 警告对话 . 技巧特效
. 计数转换 . 测试搜索
. 代码生成 . 播放音乐
. 按钮特效 . 系统相关
. 链接特效 . 黑客性质
. 相关特效 . 窗口特效
. 广告特效 . 表单表格
. 模拟例子
相 关 文 章
· 状态栏显示链接内容...
· 又一例闪动的标题栏...
· 让标题栏文字动起来...
· 状态栏显示链接内容...
· 在输入框中输入什么...
· 状态栏打字效果特效...
· 闪动的标题栏特效
· 字符来回出现于状态...
· 在标题栏显示时间特...
· 一款状态滚动的文字...
本 类 热 门
· 漫天飞雪网页特效代码...
· 在主页加入钟表的代码...
· 飘落的多图片
· 又一款蝴蝶飞舞的页面...
· 右键点出菜单条(出新...
· 随机文本链接
· 随鼠标栏拉动的滚动下...
· 文字播放后页面随即自...
· 上下弹动的导航条
· 点击单选框就直接激活...
· 无边的信息导航窗
· 会浮动、隐藏的导航菜...
更多  
 
 
更多  
最 新 推 荐
· 状态栏时间跳动特效
· 农历挂历特效
· 真正的万年历
· 网页特效 菜单-会动的...
· 网页特效 时间-任意位...
· 个人网页特效-有前后日...
· 时间每过一秒,Radio就...
· 时钟显示在任意指定位...
· 带开关的Form时钟
· 记录几天后的日期
· 显示登陆时间
· 退出时显示访问时间
更多  
     
导航菜单特效 (突出的接钮似效果)
导航菜单特效 (突出的接钮似效果)
作者:佚名  来源:本站整理  名称:导航菜单特效 (突出的接钮似效果) 

减小字体 增大字体

       

[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]

此特效的详细完整代码如下:

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

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

<style>
<!-- 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>

[返回上一页] [打印导航菜单特效 (突出的接钮似效果)]
     
| 关于本站 | 服务条款 | 友情连接 | 网站地图 | 联系方式 | 广告联系 |