bxslider

bx slider start/stop function

此生再无相见时 提交于 2019-12-07 08:49:29
问题 I'm using the bxslider plugin, and have created some external controls for the previous and next function, although I cant seem to figure out how to do the same with the start/stop control. Basically I want to use this as a play/pause function for the slider. Does anyone have any experience with this plugin? Here's what I have so far, without the start/stop function working: http://jsfiddle.net/WaWLN/1/ Also, I want the slider to "auto" play, as well a having this external controls. I just

bxSlider touch enabled - disable vertical touch events so only horizontal touch events work

梦想的初衷 提交于 2019-12-07 02:32:18
问题 I'm using probably one of my favourite jquery slider plugins: bxSlider http://bxslider.com/options#touchEnabled Recently they've updated with some touch enabling for devices. This allows you to scroll your sliders via swiping. But on my current project, I have a slideshow that takes up the entire width of my website, and when viewing on a device, as I scroll down with my finger, when I reach the the slideshow, I am unable to scroll down the page, and instead the slideshow scrolls left to

Horizontal swipe gesture and vertical page scroll

ぐ巨炮叔叔 提交于 2019-12-07 02:31:49
问题 I am building a mobile site and I have a slide show of images that allows sliding through images horizontally. The javascript library I'm using is bxslider. However, if one touches the slide show and wants to scroll the page up/down, the slide show blocks vertical scrolling and hence another section of the site must be touched. Could someone please tell me how I could keep vertical scroll enabled (i.e, not allow the slideshow to block the normal scroll?) Thanks! 回答1: Try this, Change the

bxslider not working in IE9

限于喜欢 提交于 2019-12-06 13:32:15
I have a bxslider plugin working on a site I am making for somebody and it works in all browsers except IE9 (possibly earlier versions of IE also but all I have to test it on is 9) I'm wondering where I'm going wrong in my code. I'll mention it's running alongside the scrolldeck parallax plugin Here is the related code from my header (calling the bxslider and scrolldeck parallax): <link href="style.css" rel="stylesheet" type="text/css" /> <link href="tipTip.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min

Public methods bxslider on multiple slideshows

可紊 提交于 2019-12-06 08:52:45
I have multiple slideshows and im using this code: var demo = $('.demo').bxSlider({ mode: 'horizontal', captions: false, touchEnabled: true, controls: false, pager:false }); $('.slider-next').click(function(){ demo.goToNextSlide(); return false; }); $('.slider-prev').click(function(){ demo.goToPrevSlide(); return false; }); but it does not working... any one have a idea why is that? Thanks! I had the same problem with multiple sliders on one page: public functions for controling the slides didn't work (the same way you do in your example). The solution is to set controls=true and create unique

How to fix problem with clicking event on bxSlider item in Chrome 73?

醉酒当歌 提交于 2019-12-05 20:16:26
问题 A bxSlider's inner item click event doesn't fire after Chrome has updated to version 73. How can I fire .on('click') event for elements in new Chrome? It fires in Chrome when slides are moving. Everyting is fine in FireFox <div class="slider-pager"> <div class="slider-pager__item"><img src="1.jpg" alt=""></div> <div class="slider-pager__item"><img src="2.jpg" alt=""></div> </div> <script> carouselProduct = $('.slider-pager').bxSlider({ maxSlides: 3, minSlides: 3, slideWidth: 90, infiniteLoop:

bx slider start/stop function

谁说胖子不能爱 提交于 2019-12-05 17:26:19
I'm using the bxslider plugin, and have created some external controls for the previous and next function, although I cant seem to figure out how to do the same with the start/stop control. Basically I want to use this as a play/pause function for the slider. Does anyone have any experience with this plugin? Here's what I have so far, without the start/stop function working: http://jsfiddle.net/WaWLN/1/ Also, I want the slider to "auto" play, as well a having this external controls. I just noticed that clicking on any of my links seems to disable the auto play, and I have to refresh the page

Horizontal swipe gesture and vertical page scroll

限于喜欢 提交于 2019-12-05 08:03:01
I am building a mobile site and I have a slide show of images that allows sliding through images horizontally. The javascript library I'm using is bxslider. However, if one touches the slide show and wants to scroll the page up/down, the slide show blocks vertical scrolling and hence another section of the site must be touched. Could someone please tell me how I could keep vertical scroll enabled (i.e, not allow the slideshow to block the normal scroll?) Thanks! Try this, Change the onTouchMove fn in the bxslider library to this var onTouchMove = function (e) { if (slider.settings.mode !=

bxslider images with different widths

孤街醉人 提交于 2019-12-05 06:43:44
问题 I'm trying to use the bxslider with images of different sizes that I'd like to be the same height and different widths. I'd like to have a carousel like the examples on http://bxslider.com/examples/carousel-demystified. These examples work fine, however, I have images that are 300, 400, and 500 pixels wide, each with different heights that are scaled to the same height of 400px. I do not want to resize the width of the image so they are the same or crop it. How do I use bxslider with images

bxslider directive throwing error `Uncaught TypeError: Cannot read property 'indexOf' of undefined`

白昼怎懂夜的黑 提交于 2019-12-05 06:28:35
I am using angularjs in my application where I have created a directive for bxslider. Below is code of directive: angular.module('sbAdminApp') .directive('bxSlider', function(){ return{ restrict: "A", require: "ngModel", link: function(scope, element, attrs, ctrl){ element.ready(function(){ $($(element[0])).bxSlider({ maxSlides:1, auto:true, controls:false, pager:true }); }) } } }) Above I am using like this $($(element[0])).bxSlider({ after ready function as I search for a problem where bxslider should work with ng-repeat and found this solution after which bxslider is working but sometimes