jquery外掛程式orbit.js實現圖片摺疊輪換特效
使用方法:
1、head地區引用檔案 jquery.min.js,chuxz.css
2、在檔案中加入<!-- 代碼 開始 --><!-- 代碼 結束 -->地區代碼
3、在頁面底部引用jq.orbit.js.js, orbit.js
4、複製images檔案夾裡的圖片到相應的路徑
| 1 2 3 4 5 6 7 8 9 10 11 |
<div class="orbit-wrapper"> <div id="featured" class="orbit"> <a href="http://www.phplearn.cn/"><img src="images/1.jpg" width="185" alt="《Just Married》" title="《Just Married》"></a> <a href="http://www.phplearn.cn/"><img src="images/2.jpg" width="185" alt="《佩加索斯》" title="《佩加索斯》"></a> <a href="http://www.phplearn.cn/"><img src="images/3.jpg" width="185" alt="《太廟的一場偶遇》" title="《太廟的一場偶遇》"></a> <a href="http://www.phplearn.cn/"><img src="images/4.jpg" width="185" alt="《為愛癡狂》" title="《為愛癡狂》"></a> <a href="http://www.phplearn.cn/"><img src="images/5.jpg" width="185" alt="《遊走,在北京的每一條街》" title="《遊走,在北京的每一條街》"></a> </div> </div> <script type="text/javascript" src="js/jq.orbit.js"></script> <script type="text/javascript" src="js/orbit.js"></script> |
示範圖: