效果預覽 實例代碼 <!DOCTYPE html> <html lang="zh" class="no-js"> <head> <meta charset="UTF-8" /> <title>catslider簡單的多商品分類滑動</title> <meta http-equiv="X-UA-Com ...
實例代碼
<!DOCTYPE html> <html lang="zh" class="no-js"> <head> <meta charset="UTF-8" /> <title>catslider簡單的多商品分類滑動</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="/api/jq/catslider/css/style.css" /> <script src="/api/jq/catslider/js/modernizr.custom.63321.js"></script> </head> <body> <div class="container"> <header class="clearfix"> <h1>簡單的多商品分類滑動</h1> </header> <div class="main"> <div id="mi-slider" class="mi-slider"> <ul> <li><a href="#"><img src="/api/jq/catslider/images/10.jpg" alt="img10" /></a><h4><a></a><a href="#">jQuery仿蜜淘線上客服</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/3.jpg" alt="img03" /></a><h4><a></a><a href="#">jQuery+turn.js翻書、文檔和雜誌</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/6.jpg" alt="img06" /></a><h4><a></a><a href="#">jCarousel演示7種不同的滾動切換</a></h4></li> </ul> <ul> <li><a href="#"><img src="/api/jq/catslider/images/12.jpg" alt="img12" /></a><h4><a></a><a href="#">php通用截取字元串</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/5.jpg" alt="img05" /></a><h4><a></a><a href="#">PHP簡單的上傳圖片</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/11.jpg" alt="img11" /></a><h4><a></a><a href="#">PHP+Ajax+bootstrap+dataTables無刷新分頁表格插件</a></h4></li> </ul> <ul> <li><a href="#"><img src="/api/jq/catslider/images/7.jpg" alt="img07" /></a><h4><a></a><a href="#">PHP+Ajax實現線上聊天長輪詢</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/12.jpg" alt="img12" /></a><h4><a></a><a href="#">Nivoslider多種焦點圖切換效果</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/6.jpg" alt="img06" /></a><h4><a></a><a href="#">Mapkey非常好用的鍵盤插件</a></h4></li> </ul> <ul> <li><a href="#"><img src="/api/jq/catslider/images/10.jpg" alt="img10" /></a><h4><a></a><a href="#">PHP遞歸無限分類</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/14.jpg" alt="img14" /></a><h4><a></a><a href="#">PHP+MySQL來實現線上測試quiz功能</a></h4></li> <li><a href="#"><img src="/api/jq/catslider/images/9.jpg" alt="img09" /></a><h4><a></a><a href="#">簡潔右側欄客服代碼</a></h4></li> </ul> <nav> <a href="#">首頁</a> <a href="#">jQuery</a> <a href="#">PHP</a> <a href="#">模板</a> </nav> </div> </div> </div> <!-- /container --> <script src="http://apps.bdimg.com/libs/jquery/1.7.2/jquery.min.js"></script> <script src="/api/jq/catslider/js/jquery.catslider.js"></script> <script> $(function() { $('#mi-slider').catslider(); }); </script> </body> </html>