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

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

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

    jquery圖片切換實(shí)例分析
    來(lái)源:易賢網(wǎng) 閱讀:1244 次 日期:2015-04-20 14:09:12
    溫馨提示:易賢網(wǎng)小編為您整理了“jquery圖片切換實(shí)例分析”,方便廣大網(wǎng)友查閱!

    本文實(shí)例講述了jquery圖片切換實(shí)現(xiàn)方法。分享給大家供大家參考。具體如下:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    "">

    <html xmlns="">

    <head>

    <script language="javascript" src="inc/jquery-1.4.2.js"></script>

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

    <title>無(wú)標(biāo)題文檔</title>

    </head>

    <style type="text/css">

    #butt div{

    width:122px; height:32px; float:left; text-align:center;

    }

    </style>

    <script language="javascript">

    function tab_q(now_id)

    {

    if(now_id == null)

    {

    //alert($("#butt").find("div:visible").attr("id"))

    c_show_id = $("#cont").find("div:visible").attr("id");

    //此時(shí)顯示按鈕的ID名稱

    nums_id = c_show_id.substring(1,3);

    //截取B1后面的1,作為字符串放到C后面

    b_show_id = "b"+ nums_id;

    //此時(shí)顯示內(nèi)容的ID名稱

    nums_next = parseInt(nums_id)+1

    //alert(nums_next)

    if(nums_next<=8)

    //如果到最后一個(gè)的話,那么就要跳回第一個(gè)

    {

    }

    else

    {

    nums_next = 1

    }

    }else

    {

    nums_next = now_id.substring(1,3);

    }

    $("#cont div").hide();

    //讓所有的上面的div中的圖片消失。

    //是為了羅出地方讓下一張圖片出現(xiàn)的。

    $("#butt div").css({border:'#FF0000 0px solid'});

    //讓所有按鈕的邊框消失。是為了讓下一個(gè)按鈕有邊框,

    //alert("#"+"c"+nums_next)

    $("#c"+nums_next).fadeIn() //讓上面的圖片淡出來(lái)

    $("#b"+nums_next).css({border:'#FF0000 1px solid'});

    //給下面對(duì)應(yīng)的按鈕加上邊框,當(dāng)然這里也可以做其他的效果

    //加邊框只是為了測(cè)試

    }

    $(function(){ //當(dāng)頁(yè)面加載完成

    auto = setInterval("tab_q()",2000); //這里修改切換的時(shí)間的

    $("#cont div").each(function(i,n){

    $(n).hover(

    function(){

    clearInterval(auto) },

    function(){auto=setInterval("tab_q()",2000); }

    )

    })

    $("#butt div").each(function(i,n){

    $(n).hover(

    function(){

    clearInterval(auto);

    tab_q($(this).attr("id"))

    },function(){auto=setInterval("tab_q()",2000); }

    )

    })

    })

    </script>

    <body>

    <div style="width:980px; height:275px;">

    <div style="width:980px; height:241px; overflow:hidden;

    text-align:center" id="cont">

    <div style="width:980px; height:241px; text-align:center"

    id="c1"><img src="images/xmjz.jpg" width="980"/>

    </div>

    <div style="width:980px; height:241px; display:none;

    text-align:center" id="c2">

    <img src="images/4037.jpg" width="980" height="241"/>

    </div>

    <div style="width:980px; height:241px; display:none;

    text-align:center" id="c3"><img src="images/4041.jpg"

    width="980" height="241"/></div>

    <div style="width:980px; height:241px; display:none;

    text-align:center" id="c4">

    <img src="images/xmjz.jpg" width="980"/>

    </div>

    <div style="width:980px; height:241px;

    display:none;text-align:center" id="c5">

    <img src="images/xmjz.jpg" width="980"/>

    </div>

    <div style="width:980px; height:241px;

    display:none;text-align:center" id="c6">

    <img src="images/xmjz.jpg" width="980"/>

    </div>

    <div style="width:980px; height:241px;

    display:none;text-align:center" id="c7">

    <img src="images/xmjz.jpg" width="980"/>

    </div>

    <div style="width:980px; height:241px;

    display:none;text-align:center" id="c8">

    <img src="images/xmjz.jpg" width="980"/>

    </div>

    </div>

    <div style="width:980px; height:31px; border:#FF0000 0px solid"

    id="butt">

    <div style="background-image:url(images/xmbtn_1.png)" id="b1">

    </div>

    <div style="background-image:url(images/xmbtn_2.png)" id="b2">

    </div>

    <div style="background-image:url(images/xmbtn_2.png)" id="b3">

    </div>

    <div style="background-image:url(images/xmbtn_2.png)" id="b4">

    </div>

    <div style="background-image:url(images/xmbtn_2.png)" id="b5">

    </div>

    <div style="background-image:url(images/xmbtn_2.png)" id="b6">

    </div>

    <div style="background-image:url(images/xmbtn_2.png)" id="b7">

    </div>

    <div style="background-image:url(images/xmbtn_2.png)" id="b8">

    </div>

    </div>

    </div>

    </body>

    </html>

    更多信息請(qǐng)查看IT技術(shù)專欄

    更多信息請(qǐng)查看腳本欄目
    易賢網(wǎng)手機(jī)網(wǎng)站地址:jquery圖片切換實(shí)例分析
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!

    2026國(guó)考·省考課程試聽(tīng)報(bào)名

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