jQuery插件MovingBoxes實現(xiàn)左右滑動中間放大圖片效果
更新時間:2017年02月28日 14:31:54 作者:285267128
本篇文章主要介紹jQuery中MovingBoxes左右滑動放大圖片插件示例,實現(xiàn)左右滑動和放大效果,有興趣的可以了解一下。
MovingBoxes左右滑動放大圖片插件在產(chǎ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>MovingBoxes滑動放大圖片插件</title> <link type="text/css" href="/api/jq/5733e358c8829/css/style.css" rel="external nofollow" rel="stylesheet"> <script type="text/javascript" src="/api/jq/5733e358c8829/js/jquery.js"></script> <script type="text/javascript" src="/api/jq/5733e358c8829/js/jquery.movingboxes.js"></script> <script type="text/javascript"> $(function() { $('#focus').movingBoxes({ startPanel: 1, // 從第一個li開始 reducedSize: .5, // 縮小到原圖50%的尺寸 wrap: true, // 是否無縫循環(huán) buildNav: false, // 是否顯示分頁 navFormatter: function() { return "●";// 返回分頁格式 } }); }); </script> </head> <body> <!-- 代碼開始 --> <ul id="focus"> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img01.jpg"></a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img02.jpg"></a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img03.jpg"></a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img04.jpg"></a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="/api/jq/5733e358c8829/images/img05.jpg"></a></li> </ul> <!-- 代碼結(jié)束 --> </body> </html>
以上就是本文的全部內(nèi)容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
jQuery UI Datepicker length為空或不是對象錯誤的解決方法
jQuery UI Datepicker length為空或不是對象錯誤的解決方法,需要的朋友可以參考下。2010-12-12jQuery實現(xiàn)文本顯示一段時間后隱藏的方法分析
這篇文章主要介紹了jQuery實現(xiàn)文本顯示一段時間后隱藏的方法,結(jié)合實例形式分析了jQuery事件響應(yīng)及頁面元素屬性動態(tài)操作相關(guān)實現(xiàn)技巧,需要的朋友可以參考下2019-06-06jQuery分頁插件jquery.pagination.js使用方法解析
這篇文章主要為大家詳細解析了jQuery分頁插件jquery.pagination使用方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-02-02jQuery實現(xiàn)表單input中提示文字value隨鼠標焦點移進移出而顯示或隱藏的代碼
表單input中提示文字value隨鼠標焦點移進移出而顯示或隱藏的jQuery代碼2010-03-03jQuery easyui datagird編輯行刪除行功能的實現(xiàn)代碼
這篇文章主要介紹了jQuery easyui datagird編輯行刪除行功能的實現(xiàn)代碼,需要的朋友可以參考下2018-09-09jQuery中bind與live的用法及區(qū)別小結(jié)
本篇文章主要是對jQuery中bind與live的用法以及區(qū)別進行了介紹,需要的朋友可以過來參考下,希望對大家有所幫助2014-01-01jQuery prototype沖突的2種解決方法(附demo示例下載)
這篇文章主要介紹了jQuery prototype沖突的2種解決方法,分析了針對jQuery中添加代碼與沖突位置添加代碼2種情況,并附帶demo示例供讀者下載參考,需要的朋友可以參考下2016-01-01