【html】【20】高级篇--轮播图[聚焦]
2024-09-28 11:00:17
下载: http://sc.chinaz.com/jiaoben/151204445580.htm
效果:
html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery焦点图插件PicCarousel</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/PicCarousel.js"></script>
</head>
<body>
<div class="container">
<div class="poster-main A_Demo">
<div class="poster-btn poster-prev-btn"></div>
<ul class="poster-list">
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
</ul>
<div class="poster-btn poster-next-btn"></div>
</div>
<div class="poster-main B_Demo" style="margin-top:100px">
<div class="poster-btn poster-prev-btn"></div>
<ul class="poster-list">
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
<li class="poster-item"><a href="http://sc.chinaz.com"><img src="img/1.jpg" width="100%" ></a></li>
</ul>
<div class="poster-btn poster-next-btn"></div>
</div>
<script>
$(".A_Demo").PicCarousel("init"); //静态
$(".B_Demo").PicCarousel({ //轮播动态
"width":1000,
"height":300,
"posterWidth":520,
"posterHeight":300,
"scale":0.9,
"speed":500,
"autoPlay":true,
"delay":1000,
"verticalAlign":"top"
});
</script>
</div>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
</div>
</body>
</html>
css js 见下载
ok
最新文章
- temp
- C#由变量捕获引起对闭包的思考
- C# 系统错误日志处理类
- matlab norm的使用
- 关于AS3里的Matrix3D中的appendXXX和prependXXX
- 通过 ANE(Adobe Native Extension) 启动Andriod服务 推送消息(四)
- ARM 之FIQ(快速中断) IRQ(中断)
- phpcms自定义分页
- gnome3 no launcher
- BZOJ 1226: [SDOI2009]学校食堂Dining [DP 状压]
- 做自己的软件的Gallery(一)
- ECharts将折线变平滑和去掉点的属性
- 老男孩python学习自修【第三天】列表用法
- 【转】嵌入式系统 Boot Loader 技术内幕,带你完全了解Boot Loader
- arcengine实现右键菜单打开/关闭所有图层
- caffe中在某一层获得迭代次数的方法以及caffe编译时报错 error: &#39;to_string&#39; is not a member of &#39;std&#39;解决方法
- ssm后台开发及发布
- python基础笔记之注释三种方法
- js文件命名冲突理解
- Linux TCP/IP 连接查看和问题解决
热门文章
- Oracle-12541:TNS:无监听程序 .
- 一步一步学android控件(之十五) —— DegitalClock &; AnalogClock
- VS项目重命名工具
- JQuery上传插件Uploadify API详解
- hbase多用户入库,regionserver下线问题
- [AngularJS] Best Practise - Resolve promises in router, defer controllers
- cocos2d 小游戏
- 基于cocos2d-x的游戏框架设计——李成
- 明天参加GDG devfest
- 自定义请求头信息及cookie信息