Yes you are asking alot.
The javascript posted works fine for me . Quite excellent in fact. If its not working for you make sure the image paths are all correct
Yes if you have that many images to deal with you would want to generate a page like the one posted for each set of images or an array of images read from a database. That way you can build ONE page that can be built to handle searches or navigation through the many images.
A database table with all the image paths\names in it would work fine. Then you would read, loop through and write out a given set of images into a dynamic page of the one posted above. Changing the number of images shown at once to whatever you desire.
If you want a link to the full image then just have a link open a new window when they click on the main image that points directly to the image itself, rather then a html page, or asp page. (Like link directly to http://www.mysite.com/images/imagename.jpg )
yes after looking closely at the code i didn't realise i needed to put the image name in both
<td><a href="javascript
:doPic
('img2.jpg');"><img src="img2.jpg" width=90 height=60 border=0></a></td>
and
<td><a href="javascript
:doPic('img2.jpg');"><img src
="img2.jpg" width=90 height=60 border=0></a></td>
quite how i managed to decide that it didn't need to go in both i don't know
The original idea was going to have the pictures open up larger in a seperate window - but i wanted to avoid navigating the person away from the website if at all possible. That's why i wanted the picture to open up in another html page that was linked into the photo album. But i migh tre-think that and add it in if i have time
at the moment we are using SQL database elsewhere on the site for other things so hopefully I can use this to help the user select different albums
@ idsanjeev
the reason i don't want to use the java window or a fader/slideshow feature is because each album is potentially 100+ photos, so I wanted to minimise caching and loading times
thanks for all your help :)