Well the script that you are talking about has optional captions (text) for under the enlarged image, I was wondering if you were using those. It would be easier if you were not but, not that big of a deal either way. Also, it would be good to know if you want the larger image linked or not.
Now, using PHP you could pass a query or perhaps even a post value to your page telling it which image to load. I don't know the syntax with PHP but for sending a value it would be (for a query):
HTML Code:
<a href="gallery.php?photo=image1">Gallery</a>
That would send a query string to the gallery.php page. Using it is what I am not real clear on, it would be something like so:
HTML Code:
<div id="loadarea" style="width: 500px">
<img src="<? get photo ?>.jpg" border="0">
</div>
This would make image1.jpg be the src for the image tag. From what I understand, you can also send the value post which means that it would not appear in the URL but, I have no idea how to do that.
If you are using PHP and especially if you are already passing post or query values, this would be the way to go. If this is too much for you (it is for me though help can probably be found in the PHP forum), a javascript method is available but it requires the query in the URL and if you are already doing any of that in PHP, care will need to be taken so as not to conflict with that. I'll work up the details of the javascript method for you if you want to go that route. It would help me to know about the captions and links for the larger images though.
Bookmarks