轮播(冲突可用iframe引入)
来源:互联网 发布:浮生知星辰txt百度云 编辑:程序博客网 时间:2024/06/06 14:13
<script src="js/TouchSlide.1.1.js"></script>
<style type="text/css">
/* 本例子css -------------------------------------- */
.objfocus{ width:380px; height:180px; margin:0 auto; position:relative; overflow:hidden; }
.objfocus .hd{ width:100%; height:11px; position:absolute; z-index:1; bottom:5px; text-align:center; }
.objfocus .hd ul{ display:inline-block; height:5px; padding:3px 5px; background-color:rgba(255,255,255,0.7);
-webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; font-size:0; vertical-align:top;
}
.objfocus .hd ul li{ display:inline-block; width:5px; height:5px; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; background:#8C8C8C; margin:0 5px; vertical-align:top; overflow:hidden; }
.objfocus .hd ul .on{ background:#FE6C9C; }
.objfocus .bd{ position:relative; z-index:0; }
.objfocus .bd li img{ width:100%; height:140px; background:url(images/loading.gif) center center no-repeat; }
.objfocus .bd li a{ -webkit-tap-highlight-color:rgba(0, 0, 0, 0); /* 取消链接高亮 */ }
</style>
<!-- 本例主要代码 Start ================================ -->
<div id="objfocus" class="objfocus">
<div class="hd">
<ul></ul>
</div>
<div class="bd">
<ul>
<li><a href="#"><img _src="images/m1.jpg" src="images/blank.png" /></a></li>
<li><a href="#"><img _src="images/m2.jpg" src="images/blank.png"/></a></li>
<li><a href="#"><img _src="images/m3.jpg" src="images/blank.png"/></a></li>
</ul>
</div>
</div>
<script type="text/javascript">
TouchSlide({
slideCell:"#objfocus",
titCell:".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
mainCell:".bd ul",
effect:"left",
autoPlay:true,//自动播放
autoPage:true, //自动分页
switchLoad:"_src" //切换加载,真实图片路径为"_src"
});
</script>
<style type="text/css">
/* 本例子css -------------------------------------- */
.objfocus{ width:380px; height:180px; margin:0 auto; position:relative; overflow:hidden; }
.objfocus .hd{ width:100%; height:11px; position:absolute; z-index:1; bottom:5px; text-align:center; }
.objfocus .hd ul{ display:inline-block; height:5px; padding:3px 5px; background-color:rgba(255,255,255,0.7);
-webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; font-size:0; vertical-align:top;
}
.objfocus .hd ul li{ display:inline-block; width:5px; height:5px; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; background:#8C8C8C; margin:0 5px; vertical-align:top; overflow:hidden; }
.objfocus .hd ul .on{ background:#FE6C9C; }
.objfocus .bd{ position:relative; z-index:0; }
.objfocus .bd li img{ width:100%; height:140px; background:url(images/loading.gif) center center no-repeat; }
.objfocus .bd li a{ -webkit-tap-highlight-color:rgba(0, 0, 0, 0); /* 取消链接高亮 */ }
</style>
<!-- 本例主要代码 Start ================================ -->
<div id="objfocus" class="objfocus">
<div class="hd">
<ul></ul>
</div>
<div class="bd">
<ul>
<li><a href="#"><img _src="images/m1.jpg" src="images/blank.png" /></a></li>
<li><a href="#"><img _src="images/m2.jpg" src="images/blank.png"/></a></li>
<li><a href="#"><img _src="images/m3.jpg" src="images/blank.png"/></a></li>
</ul>
</div>
</div>
<script type="text/javascript">
TouchSlide({
slideCell:"#objfocus",
titCell:".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
mainCell:".bd ul",
effect:"left",
autoPlay:true,//自动播放
autoPage:true, //自动分页
switchLoad:"_src" //切换加载,真实图片路径为"_src"
});
</script>
0 0
- 轮播(冲突可用iframe引入)
- 引入公共html(非iframe)
- Drawable Animation 可用来自定义进度条(轮播Drawable资源)
- 引入多个库,$冲突问题
- 项目引入冲突问题
- Jquery EasyUI 弹出div对话框引入其他页面(iframe)
- Android Viewpager与WebView轮播滑动冲突的解决方案
- SwipeToLoadLayout+轮播+listView出现显示不全,滑动冲突
- FancyMoves,一款精美的图片轮播插件,可用键盘左右键进行轮播
- 公告栏轮播,也可用于商品个性垂直轮播展示
- UIScrollView实现自动轮播,可用于广告图片轮播
- Safari恶性bug(iframe与onload,alert的冲突)
- 下拉刷新和图片轮播控件事件冲突之解决办法(达到和淘宝京东同样的效果)
- ARP请求过程(可用于ip冲突检测)
- iframe引入百度地图显示企业位置
- html页面动态引入iframe广告
- iframe引入百度地图显示企业位置
- 页面引入选择include or iframe?
- Query常用的元素查找方法总结
- 面向服务与微服务架构
- 使用AJAX 加 iframe 实现表单无刷新提交并上传文件
- HDU 1856 More is better (并查集合并)
- C# 调用delphi生成Dll的相关问题
- 轮播(冲突可用iframe引入)
- android 签名命令
- 安装程序无法创建新的系统分区,也无法定位现有系统分区
- ZDB5202烧成控制器方法
- 获取设备电池电量及状态
- JAVA 多线程和并发基础面试问答
- spring MVC层处理方式的汇总
- 阿里巴巴矢量项目图标制作流程
- 用Gradle 构建你的android程序