# Adding pause/play buttons to the Photo XML gallery

**URL:** <https://forum.kirupa.com/t/adding-pause-play-buttons-to-the-photo-xml-gallery/86139>\
**Category:** Uncategorized\
**Created:** [April 10, 2005, 4:23pm UTC](https://forum.kirupa.com/t/adding-pause-play-buttons-to-the-photo-xml-gallery/86139 "2005-04-10T16:23:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leira](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leira](https://forum.kirupa.com/u/leira)\
**Post date:** [April 10, 2005, 4:23pm UTC](https://forum.kirupa.com/t/adding-pause-play-buttons-to-the-photo-xml-gallery/86139/1 "2005-04-10T16:23:12Z")

</div>

I am using the code provided from this tutorial: [http://www.kirupa.com/developer/mx2004/xml\_slideshow3.htm](http://www.kirupa.com/developer/mx2004/xml_slideshow3.htm)

Since this is an auto-play slideshow, I would also like to put pause/play buttons so that the slideshow will stop when pause is hit and will continue when play is clicked. I figured that the play button will probably have to call the nextImage function to continue, but I have no clue how to pause/stop the slideshow. Any help is appreciated, thanks!
