简体   繁体   中英

jQuery slideshow not working, display:none;

Im trying to get my jquery slideshow working only for some reason its outputting to the browser as display:none!

Theres quite a bit of code so ive made a fiddle...

http://jsfiddle.net/uExdD/

Can anbybody see where im going wrong? Im using this plugin

http://basic-slider.com/

I call my plugin with the following...

 $('.slideshow').bjqs({
      'animation' : 'slide',
      'width' : 960,
      'height' : 335,
      'showMarkers': true
    });

As specified in the documentation, your <ul> tag needs a bjqs class.

<section class="slideshow">
  <ul class="bjqs home-slideshow">
    <!-- ... -->
  </ul>
</section>

This is wrong...

$slider         = $wrapper.find('ul.bjqs'),

Or rather, your markup should be...

<section class="slideshow">
        <ul class="bjqs">

You can either change the class in the markup or use your custom class in the script instead of .bjqs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM