基于jquery的網(wǎng)站幻燈片切換效果焦點(diǎn)圖代碼
導(dǎo)入jquery代碼
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery-image-scale-carousel.js" type="text/javascript" charset="utf-8"></script>
<script>
var carousel_images = [
"images/01.jpg",
"images/02.jpg",
"images/03.jpg",
"images/04.jpg",
"images/05.jpg",
"images/06.jpg",
"images/07.jpg"
];
// Example without autoplay
$(window).load(function() {
$("#photo_container").isc({
imgArray: carousel_images
});
});
// Example with autoplay
/* $(window).load(function() {
$("#photo_container").isc({
imgArray: carousel_images,
autoplay: true,
autoplayTimer: 5000 // 5 seconds.
});
}); */
</script>
樣式文件css有幾個 需要加載個
body {
font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif;
color: #FFF;
font-size: 12px;
background: #000;
}
h1 {
font-size: 52px;
text-align: center;
}
h1,h2,h3,h4 {
font-weight: 100;
}
#photo_container {
width: 960px;
height: 400px;
margin: auto;
background-color: #000;
}
p {
text-align: center;
}
/*定義文字樣式*/
A {FONT-SIZE: 12px; COLOR: #000;}
A:link {COLOR: #2d8931; TEXT-DECORATION: none;}
A:visited {COLOR: #333; TEXT-DECORATION: none;}
A:hover {COLOR: #333; TEXT-DECORATION:underline;}
A:active {COLOR: #333; TEXT-DECORATION: none;}
#swipe_nav_prev,#swipe_nav_next {
position: absolute;
top: 0;
left: 0;
z-index: 2000;
background-color: #ccc;
cursor: pointer;
text-align: center;
display: none;
}
#swipe_nav_prev {
background: #333 url('prev.png') no-repeat center center;
}
#swipe_nav_next {
background: #333 url('next.png') no-repeat center center;
}
.internal_swipe_container {
position: relative;
}
.trans {
filter:alpha(opacity=75);
-moz-opacity:0.75;
-khtml-opacity: 0.75;
opacity: 0.75;
}
.jq_swipe_image {
background: url('loader.gif') no-repeat center center;
}
#count_container {
padding: 0;
margin: 0;
position: absolute;
top: 0;
left: 0;
background-color: pink;
height: 6px;
list-style: none;
}
.counter {
float: left;
height: 6px;
background-color: #FFF;
z-index: 200;
height: 6px;
padding: 0;
margin: 0;
}
.counter:hover {
cursor: pointer;
background-color: #ff00fc !important;
}
.current {
background-color: #ff00fc !important;
}
- 基于jquery1.4.2的仿flash超炫焦點(diǎn)圖播放效果
- Jquery 焦點(diǎn)圖 用于圖片展示效果代碼
- 基于JQuery的實(shí)現(xiàn)圖片輪播效果(焦點(diǎn)圖)
- jquery實(shí)現(xiàn)的帶縮略圖的焦點(diǎn)圖片切換(自動播放/響應(yīng)鼠標(biāo)動作)
- jquery焦點(diǎn)圖片切換(數(shù)字標(biāo)注/手動/自動播放/橫向滾動)
- jquery仿QQ商城帶左右按鈕控制焦點(diǎn)圖片切換滾動效果
- jquery左右滾動焦點(diǎn)圖banner圖片鼠標(biāo)經(jīng)過顯示上下頁按鈕
- jQuery焦點(diǎn)圖切換簡易插件制作過程全紀(jì)錄
- Jquery焦點(diǎn)圖實(shí)例代碼
- 酷炫jQuery全屏3D焦點(diǎn)圖動畫效果
相關(guān)文章
jQuery插件PageSlide實(shí)現(xiàn)左右側(cè)欄導(dǎo)航菜單
jQuery pageSlide 是一個可以讓網(wǎng)頁出現(xiàn)滾動效果的jQuery插件,它可以控制一個隱藏頁面的顯示和關(guān)閉。具體來說,就是當(dāng)前頁占一個完整頁面,隱藏頁是看不到的,你設(shè)置一個控制的地方,點(diǎn)擊該控制時觸發(fā)事件,隱藏的頁面就滑出來,再次點(diǎn)擊隱藏頁面以外的地方,它就又關(guān)閉2015-04-04easyUI combobox實(shí)現(xiàn)聯(lián)動效果
這篇文章主要為大家詳細(xì)介紹了easyUI combobox實(shí)現(xiàn)聯(lián)動效果,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-01-01jQuery實(shí)現(xiàn)購物車計算價格功能的方法
這篇文章主要介紹了jQuery實(shí)現(xiàn)購物車計算價格功能的方法,實(shí)例分析了jQuery針對html元素的操作技巧,非常具有實(shí)用價值,需要的朋友可以參考下2015-03-03Jquery?on("click")方法綁定事件后執(zhí)行多次的解決方法
這篇文章主要給大家介紹了關(guān)于Jquery?on("click")方法綁定事件后執(zhí)行多次的解決方法,文章通過實(shí)例代碼以及圖文介紹的非常詳細(xì),對大家學(xué)習(xí)或者使用jQuery具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2023-06-06jQuery表單獲取和失去焦點(diǎn)輸入框提示效果的實(shí)例代碼
這篇文章介紹了jQuery表單獲取和失去焦點(diǎn)輸入框提示效果的實(shí)例代碼,有需要的朋友可以參考一下2013-08-08