I've attempted to use this bxslider.com javascript slider. I've followed the directions to change the options but I can't seem to get random start and an auto start. What am I missing?
http://www.northtexasnerd.com/mockups/cindys/
| SitePoint Sponsor |
I've attempted to use this bxslider.com javascript slider. I've followed the directions to change the options but I can't seem to get random start and an auto start. What am I missing?
http://www.northtexasnerd.com/mockups/cindys/
Choosing a random start slide and have the slides go on their own both seem to be configurable options with bxSlider.
I was a little confused about how one goes about configuring them, but I found it on the bxSlider examples page: Pass an object with your options to the "bxSlider" function in your code.
I'm the web overlord for Graphic Business Systems
You have the following JS near the top of your page:
Code JavaScript:$(document).ready(function(){ $('#slider1').bxSlider(); });
All you have to do is pass an object to that "bxSlider" function, with your config options. For example:
Code JavaScript:$(document).ready(function(){ $('#slider1').bxSlider({ auto: true, randomStart: true }); });
I'm the web overlord for Graphic Business Systems
Wow. Who knew it was that easy?! Thank you so much!


For future reference, a look at any of their examples shows how the object of config options is passed to bxSlider function.
http://bxslider.com/examples
Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Bookmarks