How do you remove play/stop button? On playing and stopping slideshow

298 views
Skip to first unread message

Grant McLean

unread,
May 22, 2013, 1:02:26 PM5/22/13
to slid...@googlegroups.com
Hi there, can someone please help me to remove the play and stop button on the slideshow?

I have tried a few things on CSS but cant seem to remove it. Any help is much appreciated.

Mark Bubel

unread,
May 22, 2013, 3:14:07 PM5/22/13
to slid...@googlegroups.com
Hi Grant, by default, the slides.js code does not display the play/pause button (unless you're using one of the examples that do). 

Anyway, look for the script in your HTML doc that you need to include to start the slideshow; something like: 

<script>
    $(function() {
      $('#slides').slidesjs({
        play: {
          active: true
        },
        width: 940,
        height: 528,
        navigation: false
      });
    });
  </script>

Set active to false. That will remove the play buttons. If you don't see 'play' propery name in your code, then the play button should not be generated. Hope this helps!

Grant McLean

unread,
May 27, 2013, 6:17:30 AM5/27/13
to slid...@googlegroups.com
Hi Mark,

Thanks, works perfect.

Grant

Shawn Nolan Jr

unread,
Apr 23, 2014, 11:57:28 PM4/23/14
to slid...@googlegroups.com
This doesn't seem to be working with version 3.0.4, any ideas why the play/pause still shows. Even with "display:none;" in the css it still shows.

Shawn Nolan Jr

unread,
Apr 24, 2014, 12:01:00 AM4/24/14
to slid...@googlegroups.com
nvm, figured it out, play: {active: true} should be play { active: false;}


On Wednesday, May 22, 2013 12:14:07 PM UTC-7, Mark Bubel wrote:
Reply all
Reply to author
Forward
0 new messages