jQuery右側(cè)選項(xiàng)卡焦點(diǎn)圖片輪播特效代碼分享
本文實(shí)例講述了jQuery右側(cè)選項(xiàng)卡焦點(diǎn)圖片輪播特效代碼。分享給大家供大家參考。具體如下:
jQuery實(shí)現(xiàn)的右側(cè)選項(xiàng)卡焦點(diǎn)圖片輪播動畫特效源碼,是一段清新可愛的焦點(diǎn)圖輪播代碼,支持自動輪播與手動點(diǎn)擊。
運(yùn)行效果圖:
----------------------查看效果-源碼下載----------------------
小提示:瀏覽器中如果不能正常運(yùn)行,可以嘗試切換瀏覽模式。
為大家分享的jQuery右側(cè)選項(xiàng)卡焦點(diǎn)圖片輪播特效代碼如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery右側(cè)選項(xiàng)卡焦點(diǎn)圖片輪播代碼</title> </head> <body> <link rel="stylesheet" type="text/css" href="css/style.css"/> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript"> $(function(){ var oFocus=$('#focus'), oRight=oFocus.find('.right'), oLeft=oFocus.find('.left'), aRLi=oRight.find('li'), aLLi=oLeft.find('li'), index=0, timer = null; aRLi.click(function(){ index=$(this).index() $(this).addClass('active').siblings().removeClass(); aLLi.eq(index).addClass('active').siblings().removeClass(); aLLi.eq(index).stop().animate({'opacity':1},300).siblings().stop().animate({'opacity':0},300); stopFoucs(); }) oLeft.mouseenter(function(){ stopFoucs(); }).mouseleave(function(){ startFocus(); }); timer = setInterval(function(){ startFocus(); },5000); function startFocus(){ index++; index = index > aRLi.size()-1 ? 0 :index; aLLi.eq(index).addClass('active').siblings().removeClass(); aLLi.eq(index).stop().animate({'opacity':1},300).siblings().stop().animate({'opacity':0},300); aRLi.eq(index).addClass('active').siblings().removeClass(); } function stopFoucs(){ clearInterval(timer); } }) </script> <div class="focus" id="focus"> <div class="left"> <ul> <li class="active" style="opacity:1; filter:alpha(opacity=100);"><p>圖一</p><img src="images/1.jpg"/></li> <li><p>圖二</p><img src="images/2.jpg"/></li> <li><p>圖三</p><img src="images/3.jpg"/></li> <li><p>圖四</p><img src="images/4.jpg"/></li> </ul> </div> <div class="right"> <ul> <li class="active"><i class="i1"></i>圖一</li> <li><i class="i2"></i>圖二</li> <li><i class="i3"></i>圖三</li> <li><i class="i4"></i>圖四</li> </ul> </div> </div> <div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';"> <p>適用瀏覽器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. </p> <p>來源:<a href="http://www.dbjr.com.cn/" target="_blank">腳本之家</a></p> </div> </body> </html>
更多精彩內(nèi)容大家還可以參考《jQuery焦點(diǎn)圖特效匯總》進(jìn)行學(xué)習(xí),希望大家喜歡。
以上就是為大家分享的jQuery右側(cè)選項(xiàng)卡焦點(diǎn)圖片輪播代碼,希望大家可以喜歡。
- jQuery焦點(diǎn)圖輪播效果實(shí)現(xiàn)方法
- jQuery焦點(diǎn)圖輪播插件KinSlideshow用法分析
- 基于jquery實(shí)現(xiàn)輪播焦點(diǎn)圖插件
- 輕量級jQuery插件slideBox實(shí)現(xiàn)帶底欄輪播(焦點(diǎn)圖)代碼
- 基于JQuery實(shí)現(xiàn)圖片輪播效果(焦點(diǎn)圖)
- jQuery插件實(shí)現(xiàn)帶圓點(diǎn)的焦點(diǎn)圖片輪播切換
- jQuery焦點(diǎn)圖輪播特效代碼分享(3款)
- 基于JQuery的實(shí)現(xiàn)圖片輪播效果(焦點(diǎn)圖)
- jquery實(shí)現(xiàn)焦點(diǎn)輪播效果
相關(guān)文章
jquery拖動層效果插件用法實(shí)例分析(附demo源碼)
這篇文章主要介紹了jquery拖動層效果插件用法,結(jié)合實(shí)例形式分析了jquery-ui-1.7.2.custom.min.js插件的具體使用技巧,并附帶完整demo源碼供讀者下載參考,需要的朋友可以參考下2016-04-04JQuery Study Notes 學(xué)習(xí)筆記(一)
jquery是當(dāng)前比較流行的js類庫,學(xué)習(xí)它可以實(shí)現(xiàn)很多功能。2010-08-08jQuery動態(tài)星級評分效果實(shí)現(xiàn)方法
這篇文章主要介紹了jQuery動態(tài)星級評分效果實(shí)現(xiàn)方法,涉及jquery動態(tài)操作頁面元素樣式的相關(guān)技巧,效果華麗大氣,是一款非常優(yōu)秀的特效源碼,需要的朋友可以參考下2015-08-08(jQuery,mootools,dojo)使用適合自己的編程別名命名
我們經(jīng)常用一些別名方法來使用自己喜歡的js 庫。學(xué)習(xí)javascript的朋友可以參考下。2010-09-09