jquery设计简洁选项卡自动切换特效

2周前 (04-19 18:07)阅读27回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4014
  • 级别管理员
  • 主题802
  • 回复2
楼主

一款jquery选项卡滑动门切换特效,简洁设计,鼠标经过时能自动切换显示,选中项与其他背景颜色不同。

<!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>jquery设计简洁选项卡自动切换特效_武鸣人</title>
<script type="text/javascript" src="/img/jquery_wuming_ren.js"></script>
<script type="text/javascript">
    $(function() {
        var len = $(".wuming_1 li").length;
        var index;
        var time;
        $(".wuming_1 li").mousemove(function() {
            index = $(".wuming_1 li").index(this);
            show(index);
        }).eq(0).mousemove();
        $(".wuming_2").hover(function() {
            clearInterval(time);
        }, function() {
            time = setInterval(function() {
                show(index)
                index++;
                if (index == len) { index = 0; }
            }, 2000);
        }).trigger("mouseleave");
    })
    function show(index) {
        $(".wuming_2 li").eq(index).show().siblings().hide();
        $(".wuming_1 li").css("background", "url(/img/20240419_www_wuming_ren_33.gif)").eq(index).css("background", "url(/img/20240419_www_wuming_ren_34.gif)");
    } 
//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
</script>
<style type="text/css">
body{ font-family:"宋体"; font-size:9pt; color:#ffffff}
#wwwwumingren{ width:510px; height:200px; border:4px #1025c0 solid; margin:0 auto}
#wwwwumingren ul li{ cursor:pointer}
#wwwwumingren .wuming{ border:none}
#wwwwumingren .wuming ul{ margin:0; padding:0}
#wwwwumingren .wuming ul li{ cursor:pointer;float:left;list-style:none; width:100px; height:40px; line-height:40px; text-align:center; background:url(/img/20240419_www_wuming_ren_33.gif) repeat-x; border:1px black solid}
#wwwwumingren .wuming_ren{ width:510px; height:160px; color:#000000; border:none;}
#wwwwumingren .wuming_ren ul{ margin:0; padding:0; width:510px; height:160px;}
#wwwwumingren .wuming_ren ul li{ list-style:none}
.hide{ display:none}
</style>
</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>
<span style="color:#FF0000">需要加载js文件,请刷新页面后看效果。</span>
<div id="wwwwumingren">
<div class="wuming">
<ul class="wuming_1">
<li>武鸣人一号</li><li>武鸣人二号</li><li>武鸣人三号</li><li>武鸣人四号</li><li>武鸣人五号</li>
</ul>
</div>
<div class="wuming_ren">
<ul class="wuming_2">
<li>武鸣人一号内容,武鸣人网。<br /><a href="https://www.wuming.ren">武鸣人</a>,各种信息免费发布,资源共享合作共赢!</li><li class="hide">武鸣人二号内容,武鸣人网。<br /><a href="https://www.wuming.ren">武鸣人</a>,各种信息免费发布,资源共享合作共赢!</li><li class="hide">武鸣人三号内容,武鸣人网。<br /><a href="https://www.wuming.ren">武鸣人</a>,各种信息免费发布,资源共享合作共赢!</li><li class="hide">武鸣人四号内容,武鸣人网。<br /><a href="https://www.wuming.ren">武鸣人</a>,各种信息免费发布,资源共享合作共赢!</li><li class="hide">武鸣人五号内容,武鸣人网。<br /><a href="https://www.wuming.ren">武鸣人</a>,各种信息免费发布,资源共享合作共赢!</li>
</ul>
</div>
</div>
</body>
</html>


0
0
收藏0
回帖

jquery设计简洁选项卡自动切换特效 期待您的回复!

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

取消确定

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