茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    簡單的jQuery banner圖片輪播實例代碼
    來源:易賢網(wǎng) 閱讀:1575 次 日期:2016-08-02 15:48:25
    溫馨提示:易賢網(wǎng)小編為您整理了“簡單的jQuery banner圖片輪播實例代碼”,方便廣大網(wǎng)友查閱!

    這篇文章主要介紹了簡單的jQuery banner圖片輪播實例代碼的相關(guān)資料,需要的朋友可以參考下

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head>

    <title>無標題頁</title>

    <script src="js/jquery-2.1.4.js" type="text/javascript"></script>

    <style type="text/css">

    .clear{overflow:hidden; clear:both; width:0px; height:0px; }

    .imgbox{width:640px; margin:0 auto; text-align:center; }

    ul{padding:0px; margin:0px;}

    ul li{float:left; list-style:none; }

    ul li.select{display:block;}

    .imgnum span{border-radius:10px; font:normal normal bold 12px/15px 微軟雅黑; color:#FFF; margin-left:5px; padding:3px 6px 3px 6px; background-color:#F90; cursor:pointer;}

    .imgnum span.onselect{background-color:#F00;}

    .imgnum{text-align:center; float:right; margin:-30px 30px; position:relative;}

    </style>

    </head>

    <body>

    <div class="imgbox">

    <ul id="banner_img">

    <li><img src="images/banner1.jpg"/></li>

    <li><img src="images/banner2.jpg"/></li>

    <li><img src="images/banner3.jpg"/></li>

    <li><img src="images/banner4.jpg"/></li>

    <li><img src="images/banner5.jpg"/></li>

    </ul>

    <div class="clear"></div>

    <div class="imgnum">

    <span class="onselect">1</span>

    <span>2</span>

    <span>3</span>

    <span>4</span>

    <span>5</span>

    </div>

    </div>

    <script type="text/javascript">

    var time = "";

    var index = 1;

    $(function () {

    showimg(index);

    //鼠標移入移出

    $(".imgnum span").hover(function () {

    clearTimeout(time);

    var icon=$(this).text();

    $(".imgnum span").removeClass("onselect").eq(icon-1).addClass("onselect");

    $("#banner_img li").hide().stop(true,true).eq(icon-1).fadeIn("slow");

    }, function () {

    index=$(this).text()> 4 ? 1 :parseInt($(this).text())+1;

    time = setTimeout("showimg(" + index + ")", 3000);

    });

    });

    function showimg(num) {

    index = num;

    $(".imgnum span").removeClass("onselect").eq(index-1).addClass("onselect");

    $("#banner_img li").hide().stop(true,true).eq(index-1).fadeIn("slow");

    index = index + 1 > 5 ? 1 : index + 1;

    time = setTimeout("showimg(" + index + ")", 3000);

    }

    </script>

    </body>

    </html>

    注意要引用 Jquery 文件,圖片我就不放上來了,自己替換掉,注意圖片長寬。

    以上所述是小編給大家分享的簡單的jQuery banner圖片輪播實例代碼,希望對大家有所幫助!

    更多信息請查看網(wǎng)絡(luò)編程
    易賢網(wǎng)手機網(wǎng)站地址:簡單的jQuery banner圖片輪播實例代碼

    2026上岸·考公考編培訓(xùn)報班

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)