jQuery鼠標滑過顯示縮略圖焦點圖切換特效



71 280 94



特效描述:jQuery鼠標滑過 顯示縮略圖 焦點圖切換特效,jQuery鼠標滑過顯示縮略圖焦點圖切換特效

代碼結構

1. 引入CSS

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

2. 引入JS

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

3. HTML代碼

<br>
<!-- 代碼開始 -->
<div class="contentall">
	<div class="IndexContentBox" id="IndexContentBox">
		<div class="IndexContent" id="IndexContent">
			<div class="IndexContentMain" style="width:1008px; overflow:hidden;">
				<p class="M_lifevc_1"></p>
				<div class="I_Colorpiece_nr">
					<div class="indexBanner">
						<div id="indexBannerdatouwang" class="datouwang">
							<ul class="imgList">
								<li>
								<a target="_blank" href="http://www.cqetom.live/">
								<img src="images/1.jpg" width="1000" height="490" />
								</a></li>
								<li>
								<a target="_blank" href="http://www.cqetom.live/">
								<img src="images/2.jpg" src="images/loadPic.gif" width="1000" height="490" />
								</a></li>
								<li>
								<a target="_blank" href="http://www.cqetom.live/">
								<img loadsrc="images/3.jpg" src="images/loadPic.gif" width="1000" height="490" />
								</a></li>
								<li>
								<a target="_blank" href="http://www.cqetom.live/">
								<img loadsrc="images/4.jpg" src="images/loadPic.gif" width="1000" height="490" />
								</a></li>
								<li>
								<a target="_blank" href="http://www.cqetom.live/">
								<img loadsrc="images/5.jpg" src="images/loadPic.gif" width="1000" height="490" />
								</a></li>
								<li>
								<a target="_blank" href="http://www.cqetom.live/">
								<img loadsrc="images/6.jpg" src="images/loadPic.gif" width="1000" height="490" />
								</a></li>
								<li>
								<a target="_blank" href="http://www.cqetom.live/">
								<img loadsrc="images/7.jpg" src="images/loadPic.gif" width="1000" height="490" />
								</a></li>
							</ul>
							<div class="btnList" id="btnList">
								<div class="BtnimgList">
									<a href="javascript:void(0);">
									<img loadsrc="images/1_1.jpg" src="images/loadPic.gif" width="100" height="51" /></a>
									<a href="javascript:void(0);">
									<img loadsrc="images/2_2.jpg" src="images/loadPic.gif" width="100" height="51" /></a>
									<a href="javascript:void(0);">
									<img loadsrc="images/3_3.jpg" src="images/loadPic.gif" width="100" height="51" /></a>
									<a href="javascript:void(0);">
									<img loadsrc="images/4_4.jpg" src="images/loadPic.gif" width="100" height="51" /></a>
									<a href="javascript:void(0);">
									<img loadsrc="images/5_5.jpg" src="images/loadPic.gif" width="100" height="51" /></a>
									<a href="javascript:void(0);">
									<img loadsrc="images/6_6.jpg" src="images/loadPic.gif" width="100" height="51" /></a>
									<a href="javascript:void(0);">
									<img loadsrc="images/7_7.jpg" src="images/loadPic.gif" width="100" height="51" /></a>
								</div>
							</div>
							<div class="numList" id="numList">
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
(function() {
    var maxShowedBanner = 1, currentBanner = 1,
        maxBannerNum = 7, datouwang = $(".indexBanner"),
        bsObj, bannerShelf, replaceStart = false, replaced = false;
    Common.AjaxCombiner.addCall({ type: "GET", url: "GetFirstShelf",
        success: function(result){
            bannerShelf = result ? result : "hot";
            Common.PubSub.publish("UserStat/Shelf", { shelf: bannerShelf });
            datouwang.trigger("cust:replace");
        }
    });
    $(function () {
        datouwang.bannerSlider({
            arrow:true,
            bannerHover:function () {
                maxShowedBanner = maxBannerNum;
            },
            beforeSlideTo : function (bannerIndex) {
                currentBanner = bannerIndex;
                maxShowedBanner = currentBanner > maxShowedBanner ? currentBanner : maxShowedBanner;
                if (replaceStart || maxShowedBanner >= maxBannerNum || bannerShelf !== "hot") {
                    return;
                }
                datouwang.trigger("cust:replace");
            }
        });
        bsObj = datouwang.data("bannerSlider");
    });
 }());
    $(function () {
        var sideBar = $("#sideBarContainer"),
            cartNote = sideBar.find('#shoppingCart_sidebar .pubCartNote');
        sideBar.sideBar({
            startTop:270
        });
        if (cartDialog) {
            cartDialog.init("#shoppingCart_sidebar");
        }
        Common.PubSub.subscribe("shoppingCart/ItemNumUpdate", function (data) {
            cartNote.removeClass("hide").html(data.cartItemNumStr);
        });
    });
</script>
<!-- 代碼結束 -->
<div style="text-align:center;margin:1px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 滾動 滾動條 頁面滾動 滾動插件 滾動條插件 滾動條美化 滑動選項卡 滑動切換 滾動切換 滾動條切換 flash焦點圖 flash幻燈片 flashbanner flash圖片輪播 自動滾動圖片輪播 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 滑動星星打分 切換按鈕 表單 表單美化 表單插件 表單美化插件 焦點圖 幻燈片 輪播圖 bar焦點圖 其他 滾動切換 滾動條切換 帶縮略圖的幻燈片 純圖片輪播 圖片輪播 選項卡自動切換 按鈕控制 分頁 翻頁 分頁插件
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

老夫子电子