Jquery幻燈片特效代碼分享?鼠標(biāo)點(diǎn)擊按鈕時(shí)切換(1)
本文實(shí)例講述了jQuery實(shí)現(xiàn)時(shí)尚漂亮的幻燈片特效,基本能滿足你在網(wǎng)頁(yè)上使用幻燈片(焦點(diǎn)圖)效果。分享給大家供大家參考。具體如下:
幻燈片效果描述:用鼠標(biāo)點(diǎn)擊右下角數(shù)字按鈕幻燈片進(jìn)行左右切換進(jìn)行切換。
運(yùn)行效果截圖如下:

具體實(shí)現(xiàn)代碼:
<head>
<title>Jquery幻燈片焦點(diǎn)圖插件</title>
<script src="js/jquery-1.4a2.min.js" type="text/javascript"></script>
<script src="js/jquery.-1.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#KinSlideshow").KinSlideshow();
})
</script>
<style type="text/css">
.code{ height:auto; padding:20px; border:1px solid #9EC9FE; background:#ECF3FD;}
.code pre{ font-family:"Courier New";font-size:14px;}
.info{ font-size:12px; color:#666666; font-family:Verdana; margin:20px 0 50px 0;}
.info p{ margin:0; padding:0; line-height:22px; text-indent:40px;}
h2.title{ margin:0; padding:0; margin-top:50px; font-size:18px; font-family:"微軟雅黑",Verdana;}
h3.title{ font-size:16px; font-family:"微軟雅黑",Verdana;}
.importInfo{ font-family:Verdana; font-size:14px;}
</style>
</head>
<body>
<li><h3><a href="index.html">默認(rèn)設(shè)置效果</a></h3></li>
</ol>
<div id="KinSlideshow" style="visibility:hidden;">
<a target="_blank"><img src="images/22.png" alt="" width="600" height="300" /></a>
<a target="_blank"><img src="images/23.png" alt="" width="600" height="300" /></a>
<a target="_blank"><img src="images/4.jpg" alt="" width="600" height="300" /></a>
<a target="_blank"><img src="images/5.jpg" alt="" width="600" height="300" /></a>
<a target="_blank"><img src="images/11.png" alt="" width="600" height="300" /></a>
</div>
</body>
</html>
附:所有參數(shù)列表
intervalTime:5, //設(shè)置間隔時(shí)間為5秒 【單位:秒】 [默認(rèn)為5秒]
moveSpeedTime:400 //切換一張圖片所需時(shí)間,【單位:毫秒】[默認(rèn)為400毫秒]
moveStyle:"left", //切換方向 可選值:【 left | right | up | down 】left:向左切換,right:向右切換,up:向上切換,down:向下切換 [默認(rèn)向左切換]
mouseEvent:"mouseclick", //鼠標(biāo)操作按鈕事件,可選值:【mouseclick | mouseover】mouseclick:鼠標(biāo)單擊切換。mouseover:鼠標(biāo)滑過切換。[默認(rèn)為鼠標(biāo)點(diǎn)擊按鈕切換]
isHasTitleBar:true, //是否顯示標(biāo)題背景 可選值:【 true | false 】[默認(rèn)為true]
titleBar:{titleBar_height:40,titleBar_bgColor:"#000000",titleBar_alpha:0.5},//標(biāo)題背景樣式,(isHasTitleBar = true 前提下啟用)
titleBar_height :40 - > 標(biāo)題背景高度。[默認(rèn):40]
titleBar_bgColor:"#000000" - > 標(biāo)題背景顏色。[默認(rèn):#000000]
titleBar_alpha:0.5 -> 標(biāo)題背景透明度,取值【0~1】。[默認(rèn):0.5]
isHasTitleFont:true, //是否顯示標(biāo)題文字 可選值:【 true | false 】[默認(rèn)為true]
titleFont:{TitleFont_size:12,TitleFont_color:"#FFFFFF",TitleFont_family:"Verdana",TitleFont_weight:"bold"}, //標(biāo)題文字樣式,(isHasTitleFont = true 前提下啟用)
TitleFont_size - > 標(biāo)題文字大小 單位像素。[默認(rèn):12]
TitleFont_color:"#FFFFFF" - > 標(biāo)題文字顏色。[默認(rèn):#000000]
TitleFont_family:"Verdana" -> 標(biāo)題文字字體。[默認(rèn):Verdana]
TitleFont_weight:"bold" -> 標(biāo)題文字粗細(xì)??蛇x值:【 bold | normal 】[默認(rèn):"bold"] ,normal 正常 不加粗。
isHasBtn:true, //是否顯示按鈕
btn:{btn_bgColor:"#666666",btn_bgHoverColor:"#CC0000",
btn_fontColor:"#CCCCCC",btn_fontHoverColor:"#000000",btn_fontFamily:"Verdana",
btn_borderColor:"#999999",btn_borderHoverColor:"#FF0000",
btn_borderWidth:1,btn_bgAlpha:0.7} //按鈕樣式設(shè)置,(isHasBtn = true 前提下啟用)
btn_bgColor:"#666666" -> 按鈕背景顏色 [默認(rèn):"#666666"]。
btn_bgHoverColor:"#CC0000" -> 按鈕滑過/點(diǎn)擊 背景顏色 [默認(rèn):"#CC0000"]。
btn_fontColor:"#CCCCCC" -> 按鈕文字顏色 [默認(rèn):"#CCCCCC"]。
btn_fontHoverColor:"#000000" -> 按鈕滑過/點(diǎn)擊 按鈕文字顏色 [默認(rèn):"#000000"]。
btn_fontFamily:"Verdana", -> 按鈕文字字體 [默認(rèn):"Verdana"]。
btn_borderColor:"#999999" -> 按鈕邊框顏色 [默認(rèn):"#999999"]。
btn_borderHoverColor:"#FF0000" -> 按鈕滑過/點(diǎn)擊 按鈕邊框顏色 [默認(rèn):"#FF0000"]。
btn_borderWidth:1 -> 按鈕邊框?qū)挾?,單位像?不能超過3 [默認(rèn):1]。
btn_bgAlpha:0.7 -> 按鈕透明度 ,取值【0~1】 [默認(rèn):0.7]。
希望本文所述對(duì)大家的Jquery特效設(shè)計(jì)有所幫助。
- jquery實(shí)現(xiàn)點(diǎn)擊左右按鈕切換圖片
- 使用jQuery實(shí)現(xiàn)鼠標(biāo)點(diǎn)擊左右按鈕滑動(dòng)切換
- 基于jquery實(shí)現(xiàn)左右按鈕點(diǎn)擊的圖片切換效果
- jquery帶有索引按鈕且自動(dòng)輪播切換特效代碼分享
- jQuery幻燈片特效代碼分享 鼠標(biāo)滑過按鈕時(shí)切換(2)
- 基于jquery插件制作左右按鈕與標(biāo)題文字圖片切換效果
- jquery實(shí)現(xiàn)隱藏與顯示動(dòng)畫效果/輸入框字符動(dòng)態(tài)遞減/導(dǎo)航按鈕切換
- jquery仿QQ商城帶左右按鈕控制焦點(diǎn)圖片切換滾動(dòng)效果
- jQuery實(shí)現(xiàn)簡(jiǎn)單的按鈕顏色變化
相關(guān)文章
Jquery阻止事件冒泡 event.stopPropagation
幫朋友寫了一個(gè)小效果,單擊標(biāo)簽后標(biāo)簽變色并添加一個(gè)叉的圖片,點(diǎn)擊叉標(biāo)簽恢復(fù)原樣,具體效果請(qǐng)點(diǎn)擊下面的result2011-12-12
jquery animate動(dòng)畫持續(xù)運(yùn)動(dòng)的實(shí)例
下面小編就為大家分享一篇jquery animate動(dòng)畫持續(xù)運(yùn)動(dòng)的實(shí)例,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧2017-11-11
JQuery判斷radio(單選框)是否選中和獲取選中值方法總結(jié)
這篇文章主要介紹了JQuery判斷radio(單選框)是否選中和獲取選中值方法總結(jié),本文講解了利用獲取選中值判斷選中、使用checked屬性判斷選中、jquery獲取radio單選按鈕的值、獲取一組radio被選中項(xiàng)的值、設(shè)置單選按鈕被選中等內(nèi)容,需要的朋友可以參考下2015-04-04

