轮播图左右箭头jquery-创新互联

<!DOCTYPE html>

10年积累的网站制作、做网站经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站制作后付款的网站建设流程,更有苍梧免费网站建设让你可以放心的选择与我们合作。

<html>

<head>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">

  <title>建造师考试网_全国专业建造师考试培训平台</title>

  <link href="http://static.wangxiao.cn/login/css/newlogin.css" rel="stylesheet" type="text/css">

  <script type="text/javascript" src="http://img.wangxiao.cn/js/jquery-1.8.1.min.js"></script>

  <script type="text/javascript" src="http://static.wangxiao.cn/users/js/artDialog/artDialog.js"></script>

  <link href="http://sxjy.wangxiao.cn/sxjy/bootstrap/css/bootstrap.css" rel="stylesheet">

  <script src="/Content/js/user.js"></script>

  <link href="/Content/css/base.css" rel="stylesheet" type="text/css">

  <link href="http://jianzaoshi.cn/Content/css/index.css" rel="stylesheet" type="text/css">

  <style type="text/css">

    .header-logo {

      margin-top: 27px;

      margin-bottom: 27px;

    }

    .header-nav {

      margin-top: 47px;

    }

      .header-nav, .header-nav a {

        color: #555;

      }

    .flow-nav {

      overflow: hidden;

      height: 50px;

      line-height: 50px;

      position: fixed;

      z-index: 1000;

      width: 100%;

      background-color: #f3520a;

      top: 0;

    }

    .combgcolor{

     background-color: #f3520a;

    }

    .header-icon1 {

      background-p_w_picpath: url(/Content/p_w_picpaths/login.png);

    }

    .header-icon2 {

      background-p_w_picpath: url("/Content/p_w_picpaths/registered.png");

    }

    .erw-bottom {

      padding: 3px;

    }

    .erwe span {

      height: auto;

    }

    .outer-box {

      margin-top: -15px;

      height: 318px;

    }

     .show_box{

      min-width:1190px;

      margin:0 auto;

    }

    .ul.pic_list,.show_box{

      min-height:300px;

    }

    .left_btn,.right_click{

      width:50px;

      height:50px;

      background-color:#000;

      opacity:0.5;

      background-color: #000;

      opacity: 0.5;

      position: relative;

      z-index: 10;

      top:45%;

      cursor: pointer;

    }

    .left_btn{

    float:left;

    left:5%;

    }

    .right_click{

    float:right;

    right:5%;

    }

  </style>

</head>

<body>

<div class="show_box">

      <div class="left_btn">

        <img src="/upload/otherpic7/leftbtn.png" width="100%">

      </div>

      <div class="right_click">

        <img src="/upload/otherpic7/leftbtn.png" width="100%">

      </div>

      <ul class="pic_list">

        <li >

          <a href="http://www.wangxiao.cn/jz1/83708370204.html" title="" target="_blank"><img alt="" src="/upload/otherpic7/213234.jpg"></a>

        </li>

        <li >

          <a href="http://www.wangxiao.cn/jz2/53655365118.html" title="" target="_blank"><img alt="" src="/upload/otherpic7/213235.jpg"></a>

        </li>

      </ul>

      <div class="title_nav">

        <a href="javascript:;" target="_blank" class="" ></a>

        <a href="javascript:;" class="select" ></a>

      </div>

    </div>

</body>

<script type="text/javascript">

(function ($) {

    $.fn.turnPic = function () {

      var index = 0;

      var clickLeft = $(this).children(".left_btn");

      var clickRight = $(this).children(".right_click");

      var showUl = $(this).children("ul.pic_list").children("li");

      var len = showUl.length;

      var navList = $(this).children("div").children("a");

      var timer;

      var showImg=function(index) {

        showUl.eq(index).stop(true, true).fadeIn("slow").siblings().fadeOut("slow");

        navList.removeClass("select").css("opacity", "0.7").eq(index).addClass("select").css("opacity", "1");

      }

      timer = setInterval(function () {

          showImg(index);

          index++;

          if (index == len) {

            index = 0;

          }

        }, 3000);

       var click=function(){

        clearInterval(timer);

       console.log(index)

        showImg(index);

        index++;

        if (index == len) {

          index = 0;

        }

       };

      clickLeft.click(function () {

       click();

      });

      clickRight.click(function () {

       click();

      });

      navList.mouseover(function () {

        index = navList.index(this);

        showImg(index);

      });

      $(this).hover(function () {

        clearInterval(timer);

      }, function () {

         timer = setInterval(function () {

          showImg(index);

          index++;

          if (index == len) {

            index = 0;

          }

        }, 3000);

      }).trigger("moverleave");

    }

  })(jQuery);

  $(function () {

    $(".show_box").turnPic();

  })

</script>

</html>

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

当前文章:轮播图左右箭头jquery-创新互联
链接分享:https://www.cdcxhl.com/article44/dgdehe.html

成都网站建设公司_创新互联,为您提供网站内链企业网站制作网站改版网站维护微信公众号定制网站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都app开发公司