JS滚动bxslider的使用

模板网 2014-10-24

1. 详细Demo:http://www.bxslider.com/examples

2、如何使用

在实际中如下引用:

<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript" src="js/jquery.bxslider.js"></script>

bxslider无缝滚动

<script type="text/javascript">

  $(function(){

    $('#marquee').bxSlider({

     mode:'vertical', //默认的是水平

     ticker: true,//自动滚动

     tickerSpeed:1000//tickerSpeed有逆影响速度。 因此,一个价值5000的滚动很慢,而价值50将滚动得很快。

    });

    }); 

</script>

bxslider滚动li

<script type=text/javascript>

$(function(){

  $('#marquee').bxSlider({

        mode:'vertical', //默认的是水平

        displaySlideQty:1,//显示li的个数

        moveSlideQty: 1,//移动li的个数  

        captions: true,//自动控制

        auto: true,

        controls: false//隐藏左右按钮

  });

}); 

</script>-->

3、关于bxSlideer的html结构

<div style="width:450px; height:296px; float:left; overflow:hidden; margin-left:200px;">

  <ul id="marquee">

            <li><img src="img/1.jpg" alt="banner_腋臭" style="width:450px; height:296px;"></li>

            <li><img src="img/2.jpg" alt="banner_腋臭" style="width:450px; height:296px;"></li>

     </ul>

</div>

4、关于bxSlideer的左右按钮的css样式

.bx-prev{ width:12px; height:26px; background:#f00;text-indent: -999999px;z-index: 999;  position: absolute; float:left; left:455px; top:110px;}

.bx-next{ width:12px; height:26px;  background:#f00; text-indent: -999999px;z-index: 999;  position: absolute; top:110px;left:-15px;}

相关文章

  1. 隐藏统计代码的LOGO文字

    网站上添加网站统计代码后,一些情况下会影响网站整体的美观性,我们可以通过以下代码来隐藏统计代码的LOGO或文字。 将各种统计代码放到以下div中即可: 复制代码 代码如下: !--统计代码开始-- div style=display:none; !--百度统计-- script type=text/java

  2. a标签点击过后出现虚线的解决方法

    问题:a标签点击过后出现虚线 解决方法:a{blr:expression(this.onFocus=this.blur());outline: none;}

  3. JS滚动bxslider的使用

    1. 详细Demo: http://www.bxslider.com/examples 2、如何使用 在实际中如下引用: script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.bxslider.js/script bxslider无缝滚动 script type=text/javascript $(f

  4. 仿站小工具 V6.0

    仿站小工具介绍: 仿站小工具是通过网址下载静态网页的工具。从输入的网址下载html代码,提取出JS、Css、Image、Picture、Flash等静态文件网址,再从下载完好的Css代码中提取出Image静态文件网址,通过网址下载静态文件,根据软件设置好的保存规则,自动修正

  5. 让position:fixed在IE6下可用!

    /*让position:fixed在IE6下可用!*/ .fixed-top/*头部固定*/{position:fixed;bottom:auto;top:0px;} .fixed-bottom/*底部固定*/{position:fixed;bottom:0px;top:auto;} .fixed-left/*左侧固定*/{position:fixed;right:auto;left:0px;} .fixed-right/*右侧固定

随机推荐

  1. 隐藏统计代码的LOGO文字

    网站上添加网站统计代码后,一些情况下会影响网站整体的美观性,我们可以通过以下代码来隐藏统计代码的LOGO或文字。 将各种统计代码放到以下div中即可: 复制代码 代码如下: !--统计代码开始-- div style=display:none; !--百度统计-- script type=text/java

  2. a标签点击过后出现虚线的解决方法

    问题:a标签点击过后出现虚线 解决方法:a{blr:expression(this.onFocus=this.blur());outline: none;}

  3. JS滚动bxslider的使用

    1. 详细Demo: http://www.bxslider.com/examples 2、如何使用 在实际中如下引用: script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.bxslider.js/script bxslider无缝滚动 script type=text/javascript $(f

  4. 仿站小工具 V6.0

    仿站小工具介绍: 仿站小工具是通过网址下载静态网页的工具。从输入的网址下载html代码,提取出JS、Css、Image、Picture、Flash等静态文件网址,再从下载完好的Css代码中提取出Image静态文件网址,通过网址下载静态文件,根据软件设置好的保存规则,自动修正

  5. 让position:fixed在IE6下可用!

    /*让position:fixed在IE6下可用!*/ .fixed-top/*头部固定*/{position:fixed;bottom:auto;top:0px;} .fixed-bottom/*底部固定*/{position:fixed;bottom:0px;top:auto;} .fixed-left/*左侧固定*/{position:fixed;right:auto;left:0px;} .fixed-right/*右侧固定