DFdou's Blog Life is short,Be yourself.

2306/091

jQuery-Slider Plugins

来自http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider
Learned from http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider
本地Demo地址:http://nwhy.org/nwhy/jsdemo/slider.html
使用很简单,HTML部分代码如下:

<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/easySlider.js"></script>
$(document).ready(function(){
	$("#slider").easySlider();
});
<div id="slider">
	<ul>

	<li>content here...</li>
	<li>content here...</li>
	<li>content here...</li>
	...
	</ul>
</div>


再来点CSS:

#slider ul, #slider li{
	margin:0;
	padding:0;
	list-style:none;
	}
#slider, #slider li{
	width:500px;
	height:200px;
	overflow:hidden;
	}
span#prevBtn{}
span#nextBtn{}

还有就是按钮:

<span id="prevId"><a href="javascript:void(0);">Previous</a></span>
<span id="nextBtn"><a href="javascript:void(0);">Next</a></span>

本地Demo中写了个背景图,这个反正自由更改~
OK,这个插件就是这样简单,里边的内容可以是div,也可以是li,or 其他你想放的标签,使用愉快,bye~

Some Related Posts

Comments (1) Trackbacks (0)
  1. Pretty nice post. I just found your site and wanted to say
    that I have really enjoyed browsing your blog posts. Any way
    I’ll be subscribing to your blog and I hope you post again soon!

    [Reply]


Leave a comment

:zhuang :xizao :wuwu :wenhao :wc :touxiang :shuaya :shuajian :shengtian :paopao :no :meinv :maonv :loveu :leilei :kua :jrjr :dahan :chi :chaocai :byebye


CommentLuv Enabled

No trackbacks yet.