在页面中引入jquery、circle.js和circle.css文件。
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script> <script src="js/circle.js"></script> <link rel="stylesheet" href="css/circle.css">
HTML结构
该jQuery圆形轮播图的HTML结构如下。
<div> <div> <span data-tab="1"> Item 1 <span ></span> </span> <span data-tab="2"> Item 2 <span ></span> </span> <span data-tab="3"> Item 3 <span ></span> </span> <span data-tab="4"> Item 4 <span ></span> </span> <span data-tab="5"> Item 5 <span ></span> </span> ... </div> <div> <div> TEXT SAMPLE FOR ITEM 1 </div> <div> TEXT SAMPLE FOR ITEM 2 </div> <div> TEXT SAMPLE FOR ITEM 3 </div> <div> TEXT SAMPLE FOR ITEM 4 </div> <div> TEXT SAMPLE FOR ITEM 5 </div> </div> </div>