# Simple info/image swap \[link to files included\]

**URL:** <https://forum.kirupa.com/t/simple-info-image-swap-link-to-files-included/213711>\
**Category:** programming\
**Created:** [January 22, 2007, 6:42pm UTC](https://forum.kirupa.com/t/simple-info-image-swap-link-to-files-included/213711 "2007-01-22T18:42:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)\
**Post date:** [January 22, 2007, 6:42pm UTC](https://forum.kirupa.com/t/simple-info-image-swap-link-to-files-included/213711/1 "2007-01-22T18:42:08Z")

</div>

Here are all the files:  
[http://www.marazita.com/web/eyegixsample.zip](http://www.marazita.com/web/eyegixsample.zip)

I’m just creating a simple art gallery and I like how this site just swaps out the images:  
[www.eyegix.com](http://www.eyegix.com)

For example:  
This is the code that’s on the prev/next buttons.

\<a href=“javascript:swap\_tf(4)”\>Prev\</a\>, \<a  
href=“javascript:swap\_tf(2)”\>Next\</a\>

* * *

This is a sample of the code on the core.js that’s calling another .js file  
called ahah-lib.js

function swap\_tf(tf) {  
callAHAH('testform.php?content= '+tf, ‘testform’, ‘loading…’, ‘Error!’);  
}

* * *

So technically it’s calling the address:  
[http://www.eyegix.com/testform.php?content=2](http://www.eyegix.com/testform.php?content=2)

Which from what I can gather is simple html info from a php page called testform.php. I just need to know how to set up that php page as a list for each separate section [ex. swap\_tf(2), (3), (4), etc.] with the simple html info. As you can tell I know nothing about PHP for the most part. I just wish I could access the php page on that site so I could see how it’s set up, but of course php won’t let me do it.

Thanks in advance.  
-Justin-
