竖排导航菜单鼠标感应缓冲弹出特效

4个月前 (04-30 20:28)阅读回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值5294
  • 级别管理员
  • 主题1058
  • 回复2
楼主

js实现flash效果竖排导航,当用户的鼠标经过菜单栏时缓冲弹出,鼠标移开后恢复原来效果,结合自己的网站来修改。

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>竖排导航菜单鼠标感应缓冲弹出特效_武鸣人</title>
<style> 
li { margin-bottom: 2px; list-style: none; background: url(bg.gif) repeat-x 0 1px; float: left; clear: left; cursor: pointer-; }
a { display: block; width: 120px; height: 25px; line-height: 25px; position: relative; padding: 0 6px; border: 1px solid #d6d6d6; text-decoration: none; font-size: 12px; color: #555; }
a:hover { font-weight: bold; border: 1px solid #b5b5b5; }
span { display: block; width: 9px; height: 8px; overflow: hidden; background: url(ico.gif) no-repeat; position: absolute; top: 8px; right: 10px; }
</style>
<script type="text/javascript"> 
window.onload=function ()
{//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
    var aA=document.getElementById('menu_www_wuming_ren').getElementsByTagName('a');
    var i=0;
    
    for(i=0;i<aA.length;i++)
    {
        aA[i].iTime=null;
        aA[i].iSpeed=6;
        aA[i].onmouseover=function ()
        {
            goTime(this,30,1);
        }
        aA[i].onmouseout=function ()
        {
            goTime(this,6,-1);
        }
    }
}///武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
function goTime(obj,iTarget,toggle)
{
    if(obj.iTime)
    {
        clearInterval(obj.iTime);
    }
    obj.iTime=setInterval(function()
    {
        if(obj.iSpeed===iTarget)
        {
            clearInterval(obj.iTime);
            obj.iTime=null;
        }
        else
        {
            obj.iSpeed+=2*toggle;
            obj.style.paddingLeft=obj.iSpeed+'px';
            obj.style.paddingRight=obj.iSpeed+'px';
        }
        
    },30);
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
</script>
</head>
 
<body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
<ul id="menu_www_wuming_ren">
    <li><a href="https://www.wuming.ren" target="_blank">武鸣人首页<span></span></a></li>
    <li><a href="https://www.wuming.ren" target="_blank">武鸣人一号<span></span></a></li>
    <li><a href="https://www.wuming.ren" target="_blank">武鸣人二号<span></span></a></li>
    <li><a href="https://www.wuming.ren" target="_blank">武鸣人三号<span></span></a></li>
    <li><a href="https://www.wuming.ren" target="_blank">武鸣人四号<span></span></a></li>
</ul>
</body>
</html>


0
0
收藏0

本文来自武鸣人网站,转载请注明出处

本文地址:https://www.wuming.ren/a/875.html

回帖

竖排导航菜单鼠标感应缓冲弹出特效 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息