---
title: "图片轮播插件slideBox"
author: "moonlight2010"
date: "2015-03-19T13:17:27Z"
tags: []
categories: ["Web前端"]
slug: "slidebox"
draft: false
lastmod: "2015-03-19T13:17:27Z"
id: 2193879
url: "https://moonlight2010.iteye.com/blog/2193879"
---

转载地址:[http://www.ido321.com/852.html](http://www.ido321.com/852.html)

 说明：兼容ie8,firfox,chrome

使用说明

1,引入js

&lt;script type="text/javascript" src="&lt;%=path%&gt;/assets/js/jquery-1.8.2.min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="&lt;%=path%&gt;/assets/js/jquery.slideBox.min.js"&gt;&lt;/script&gt;

2,css引入

&lt;link rel="stylesheet" type="text/css" href="&lt;%=path%&gt;/assets/css/jquery.slideBox.css" /&gt;

3,body中内容

&lt;div style="float:left;margin-top:0px;" class="slideBox" id="demo4"&gt;

 

  &lt;ul class="items"&gt;

    &lt;li&gt;&lt;a href="javascript:void(0)" title=""&gt;&lt;img src="&lt;%=path%&gt;/assets/images/picStore/first.png" width="480px" height="260px"&gt;&lt;/a&gt;&lt;/li&gt;

    &lt;li&gt;&lt;a href="javascript:void(0)" title=""&gt;&lt;img src="&lt;%=path%&gt;/assets/images/picStore/second.png" width="480px" height="260px"&gt;&lt;/a&gt;&lt;/li&gt;

    &lt;li&gt;&lt;a href="javascript:void(0)" title=""&gt;&lt;img src="&lt;%=path%&gt;/assets/images/picStore/three.png" width="480px" height="260px"&gt;&lt;/a&gt;&lt;/li&gt;

    &lt;li&gt;&lt;a href="javascript:void(0)" title=""&gt;&lt;img src="&lt;%=path%&gt;/assets/images/picStore/fourth.png" width="480px" height="260px"&gt;&lt;/a&gt;&lt;/li&gt;

  &lt;/ul&gt;

 

4，js

 

&lt;script type="text/javascript"&gt;

$(document).ready(function(){

//启动滚动图片

$('#demo4').slideBox({

hideBottomBar : false//隐藏底栏

});

});

 

效果地址:[http://slidebox.sinaapp.com/](http://slidebox.sinaapp.com/)