# Input Text to navigate a Gallery?

**URL:** <https://forum.kirupa.com/t/input-text-to-navigate-a-gallery/232678>\
**Category:** flash\
**Created:** [July 16, 2007, 9:09pm UTC](https://forum.kirupa.com/t/input-text-to-navigate-a-gallery/232678 "2007-07-16T21:09:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artriste](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@artriste](https://forum.kirupa.com/u/artriste)\
**Post date:** [July 16, 2007, 9:09pm UTC](https://forum.kirupa.com/t/input-text-to-navigate-a-gallery/232678/1 "2007-07-16T21:09:09Z")

</div>

hello,

I am working on a gallery that is functioning greatly. Right now, the only way to navigate is to click next or previous. The images load dynamically from a XML file, and they all have a corresponding number.

For easier navigation, I would like to add an Input Text for people to enter the image number they wish to see:

Go to image # \_\_\_\_ GO

Then they would click GO or just press enter.  
A little bit like when you browse search engine and you can to to page X, or stock photo websites. However I am not sure I can achieve it in an efficient way.

Could anybody shed some light on how to use the typed number as a value, so it leads the user to that image number?

The only solution I seem to think of is:

if (input text = 9)  
go to image 9

But it would mean I have to create an IF statement for each picture!  
I have never worked with input text before. A better solution would be much appreciate.

Thanks
