Slides.js挺好用的啊,把示例中的Demo调试通了。首先把css、img、js文件夹下的内容全部拷贝到Vs网站项目下的Scripts文件夹下。

代码主要修改了一些图片路径和网址链接。

 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Slides, A Slideshow Plugin for jQuery</title>
<link rel="stylesheet" href="Scripts/css/global.css" />
<script src="Scripts/js/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="Scripts/js/slides.min.jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#slides').slides({
preload: true,
preloadImage: 'Scripts/img/loading.gif',
play: ,
pause: ,
hoverPause: true,
animationStart: function (current) {
$('.caption').animate({
bottom: -
}, );
if (window.console && console.log) {
// example return of current slide number
console.log('animationStart on slide: ', current);
};
},
animationComplete: function (current) {
$('.caption').animate({
bottom:
}, );
if (window.console && console.log) {
// example return of current slide number
console.log('animationComplete on slide: ', current);
};
},
slidesLoaded: function () {
$('.caption').animate({
bottom:
}, );
}
});
});
</script>
</head>
<body>
<div id="container">
<div id="example">
<img src="Scripts/img/new-ribbon.png" width="" height="" alt="New Ribbon" id="ribbon"/>
<div id="slides">
<div class="slides_container">
<div class="slide">
<a href="http://www.cnblogs.com/yhlx125/" title="145.365 - Happy Bokeh Thursday! | Flickr - Photo Sharing!"
target="_blank">
<img src="Scripts/img/slide-1.jpg" width="" height="" alt="Slide 1"/></a>
<div class="caption" style="bottom: 0">
<p>
Happy Bokeh Thursday!</p>
</div>
</div>
<div class="slide">
<a href="http://www.cnblogs.com/yhlx125/" title="Taxi | Flickr - Photo Sharing!"
target="_blank">
<img src="Scripts/img/slide-2.jpg" width="" height="" alt="Slide 2"/></a>
<div class="caption">
<p>
Taxi</p>
</div>
</div>
<div class="slide">
<a href="http://www.cnblogs.com/yhlx125/" title="Happy Bokeh raining Day | Flickr - Photo Sharing!"
target="_blank">
<img src="Scripts/img/slide-3.jpg" width="" height="" alt="Slide 3"/></a>
<div class="caption">
<p>
Happy Bokeh raining Day</p>
</div>
</div>
<div class="slide">
<a href="http://www.cnblogs.com/yhlx125/" title="We Eat Light | Flickr - Photo Sharing!"
target="_blank">
<img src="Scripts/img/slide-4.jpg" width="" height="" alt="Slide 4"/></a>
<div class="caption">
<p>
We Eat Light</p>
</div>
</div>
<div class="slide">
<a href="http://www.cnblogs.com/yhlx125/" title="&ldquo;I must go down to the sea again, to the lonely sea and the sky; and all I ask is a tall ship and a star to steer her by.&rdquo; | Flickr - Photo Sharing!"
target="_blank">
<img src="Scripts/img/slide-5.jpg" width="" height="" alt="Slide 5"/></a>
<div class="caption">
<p>
&ldquo;I must go down to the sea again, to the lonely sea and the sky...&rdquo;</p>
</div>
</div>
<div class="slide">
<a href="http://www.cnblogs.com/yhlx125/" title="twelve.inch | Flickr - Photo Sharing!"
target="_blank">
<img src="Scripts/img/slide-6.jpg" width="" height="" alt="Slide 6"/></a>
<div class="caption">
<p>
twelve.inch</p>
</div>
</div>
<div class="slide">
<a href="http://www.cnblogs.com/yhlx125/" title="Save my love for loneliness | Flickr - Photo Sharing!"
target="_blank">
<img src="Scripts/img/slide-7.jpg" width="" height="" alt="Slide 7"/></a>
<div class="caption">
<p>
Save my love for loneliness</p>
</div>
</div>
</div>
<a href="#" class="prev">
<img src="Scripts/img/arrow-prev.png" width="" height="" alt="Arrow Prev"/></a>
<a href="#" class="next">
<img src="Scripts/img/arrow-next.png" width="" height="" alt="Arrow Next"/></a>
</div>
<img src="Scripts/img/example-frame.png" width="" height="" alt="Example Frame" id="frame"/>
</div>
<div id="footer">
<p>
For full instructions go to <a href="http://slidesjs.com" target="_blank">http://slidesjs.com</a>.</p>
<p>
Slider design by Orman Clark at <a href="http://www.premiumpixels.com/" target="_blank">
Premium Pixels</a>. You can donwload the source PSD at <a href="http://www.premiumpixels.com/clean-simple-image-slider-psd/"
target="_blank">Premium Pixels</a></p>
<p>
&copy; <a href="http://nathansearles.com" target="_blank">Nathan Searles</a>.
All rights reserved. Slides is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0"
target="_blank">Apache license</a>.</p>
</div>
</div>
</body>
</html>

运行效果如下:

最新文章

  1. [No000076]用Eclipse编写python(配置PyDev插件)
  2. Spark使用总结与分享
  3. Redis安装以及基本数据类型
  4. Dubbo源码分析系列---扩展点加载
  5. .Net中集合排序的一种高级玩法
  6. 【转】Servlet 生命周期、工作原理
  7. Xcode 中的IOS工程模板
  8. 创建自定义graphql-binding
  9. SSH笔记一
  10. ThinkPHP项目笔记之RBAC(权限)下篇
  11. oracle修改用户密码
  12. linux 网络编程 1---(基本概念)
  13. 如何严格设置php中session过期时间 (转)
  14. mysql数据库优化课程---12、mysql嵌套和链接查询
  15. Qt基于model/view数据库编程3
  16. 光标定位 + commonAncestor
  17. 【转】CSS制作图形速查表-存档
  18. 在MVC中加载view(点开链接)的方式
  19. fabric优先级,进程管理
  20. mysql 授权新的root用户

热门文章

  1. Linux网桥设置
  2. HTML5 :b/strong加粗,i/em倾斜区别
  3. AC之路开始了~
  4. the computer spends over 96% of its time waiting for I/O devices to finish transferring data
  5. 【转】JavaScript中的this关键字使用的四种调用模式
  6. JAVA Exchanger
  7. ::after,::before使用
  8. github中国版本coding.net 的部署和使用
  9. Linux下开发Windows平台运行的程序 - MinGW
  10. 探讨mvc下linq多表查询使用viewModel的问题