# Gallery Tut: End of Gallery, making NEXT button disabled

**URL:** <https://forum.kirupa.com/t/gallery-tut-end-of-gallery-making-next-button-disabled/133327>\
**Category:** Uncategorized\
**Created:** [January 7, 2005, 1:56pm UTC](https://forum.kirupa.com/t/gallery-tut-end-of-gallery-making-next-button-disabled/133327 "2005-01-07T13:56:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)\
**Post date:** [January 7, 2005, 1:56pm UTC](https://forum.kirupa.com/t/gallery-tut-end-of-gallery-making-next-button-disabled/133327/1 "2005-01-07T13:56:39Z")

</div>

Hi all,

i’ve been looking at the XML photogallery tutorial and was thinking, is there a way to set the PREVIOUS and NEXT buttons to be disabled/invisible on the FIRST and LAST images in the gallery respectively?

This would be fantastic if I could do it, but I can’t, so I’m crying for some help now!
