轮播焦点图

script:

<script src="js/lubotu.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function() {
                $(".lubo").lubo({
                });
            })
        </script>

html:

<!--banner-->
        <div class="lubo">
            <ul class="lubo_box">
                <li style=" opacity: 1;filter:alpha(opacity=100);">
                    <a href="" style="background:url(images/banner.jpg) center top no-repeat"></a>
                </li>
                <li>
                    <a href="" style="background:url(images/banner1.jpg) center top no-repeat"></a>
                </li>
                <li>
                    <a href="" style="background:url(images/banner2.jpg) center top no-repeat"></a>
                </li>
                <li>
                    <a href="" style="background:url(images/banner3.jpg) center top no-repeat"></a>
                </li>
                <li>
                    <a href="" style="background:url(images/banner4.jpg) center top no-repeat"></a>
                </li>

</ul>
        </div>
        <!--/banner-->

css:

/*banner*/
  .lubo{ width: 100%; min-width:1000px;clear: both; position: relative; height:483px; margin-top:105px;}
  .lubo_box{ position: relative; width: 100%; height:483px; }
  .lubo_box li{ float: left;position: absolute; top: 0; left: 0; width: 100%; height:483px; opacity: 0;filter:alpha(opacity=0);}
  .lubo_box li a{ display: block;width: 100%;  height: 100%;}
  .lubo_box li img{ width: 100%; height: 368px;}
  /*圆点*/
  .cir_box{ overflow: hidden; position: absolute; z-index: 100;}
  .cir_box li{ float: left; border-radius: 50%; width: 15px; border:3px solid #fff; height: 15px; margin:0 5px; cursor: pointer;opacity: 0.8;filter:alpha(opacity=80);}
  .cir_on{background: #fff; }
  /*按钮*/
  .lubo_btn{ position: absolute; width: 100%; top: 180px;}
  .left_btn, .right_btn{background: #000;opacity: 0.8;filter:alpha(opacity=80); cursor: pointer; color: #fff; line-height: 80px; font-size: 40px; font-weight: normal; text-align: center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
  .left_btn{ float: left; background: url(../images/pre.jpg) left no-repeat; width: 56px;height: 100px;}
  .right_btn{float: right;background: url(../images/next.png) left no-repeat;width: 56px;height: 100px;}
  /*/banner*/

时间: 2024-08-11 09:47:28

轮播焦点图的相关文章

jquery全屏幻灯轮播焦点图

<!--banner s--> <div class="banner"> <div class="hd"> <ul></ul> </div> <div class="bd"> <ul> <li> <a target="_blank" href="" title="郑州除甲醛"

分享大麦UWP版本开发历程-01.响应式轮播顶部焦点图

话说有一天,临近下班无心工作,在网上看各种文章,阅读到了一篇名为<聊聊大麦网UWP版的首页顶部图片联动效果的实现方法>(传递:http://www.cnblogs.com/hippieZhou/p/4755290.html),看到别人评论自己做的产品,顿时来了兴趣,阅读过后,hippieZhou童鞋基本把这个自动轮播控件的原理精髓都讲到了,我就在这里,顺着Zhou同学的文章,接着分享一下更细节一点的东西. 今天要跟大家分享的,就是这个简单的控件,在响应式布局里面做的工作.其中有用过微软提供的X

超炫酷的jQuery轮播焦点图 底部带切换缩略图

详细内容请点击 前面我们刚刚分享过一款jQuery/HTML5响应式焦点图动画应用,效果非常炫酷.这次我们再来分享一款基于jQuery的图片轮播焦点图,这款jQuery焦点图的特点是整个图片播放器是宽屏的效果,并且在焦点图底部有一排可以滑动的缩略图,点击缩略图可以快速跳转到相应的图片.  在线演示源码下载 学习来源:http://www.html5tricks.com/jquery-cool-image-slider-thumb.html 更多html5内容请点击

Jquery制作--焦点图轮播

公司项目经常用到轮播焦点图,于是自己写了一个纯jq形式的横向轮播焦点图,可点击小圆点或者左右按钮进行切换,属于定宽类型.改成自适应宽度的也不难,将css里面的bannerCon宽度改为百分比,再在js里面将ul和li的宽度跟随父级容器的宽度变化即可,需要用到$(window).resize,目前公司暂时没用到,就先放这个定宽的出来啦. 兼容到IE6+以上浏览器,有轮播速度和切换间隔两个参数可以改.效果图如下: Html代码如下: <!doctype html> <html lang=&q

9种网页Flash焦点图和jQuery焦点图幻灯片

jQuery图标放大轮播焦点图 Flash图片焦点图滑动切换 Flash右侧焦点图上下滑动切换 左右按钮滑动切换的网页幻灯片 双图同时滑动切换的焦点图 含有上下按钮的双图同时滑动切换的焦点图 常见的jQuery网页焦点图幻灯片 css3 jQuery轮播焦点图幻灯片 html5网页图片左右滑动焦点图

原生js-焦点图轮播

首先是html实现页面结构及主程序 1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>基本动画-焦点图轮播</title> 6 <style type="text/css"> 7 #outer{ width:450px; height:230px; position:relative; marg

js-BOM之offset家族、移动函数的封装升级(轮播图)

Obj.style.width/obj.style.height与obj.offsetWidth/obj.offsetHeight的区别: <style> #div1{ height: 200px; background-color: red; } #div2{ width: 200px; height: 200px; background-color: green; } </style> </head> <body> <div style="

正益无线首页jQuery焦点图

分享一款正益无线首页jQuery焦点图,带索引按钮,自动轮播切换特效焦点图代码. 在线预览   源码下载 实现的代码. html代码: <div id="slideBox" class="slideBox"> <div class="hd"> <ul><li></li><li></li><li></li></ul> </d

安卓首页图片轮播效果(淘宝、京东首页广告效果)

直奔主题: 1.主要原理就是利用定时任务器定时切换ViewPager的页面. 2.里面用了一个读取网络图片的插件.做client使用本地图片轮播的也非常少. 先上个效果图: 项目代码结构截图: 自己定义View 的布局文件layout_slideshow.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.and