# Photo gallery modifications

**URL:** <https://forum.kirupa.com/t/photo-gallery-modifications/35768>\
**Category:** Uncategorized\
**Created:** [November 17, 2003, 10:06pm UTC](https://forum.kirupa.com/t/photo-gallery-modifications/35768 "2003-11-17T22:06:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smeg](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@smeg](https://forum.kirupa.com/u/smeg)\
**Post date:** [November 17, 2003, 10:06pm UTC](https://forum.kirupa.com/t/photo-gallery-modifications/35768/1 "2003-11-17T22:06:49Z")

</div>

That Photogallery is fantastic.

I was wondering if someone might be able to tell me how i would go about implementing it in a timebased manner, rather than waiting for a keypress on the users end.

i tried changing the keypress function to

this.onEnterframe= changePhoto (1)

but that only gives me one fade in fade out.

ideally, i’d love to set this up with a time variable i.e. each fadein/out lasts for 4 seconds.

and when it gets to the last image in the array, it just loops back.

could someone provide me with some guidance?

thanks
