That's a job for innerHTML and getElementById.
where you have:
Code:
<div name="photoslider">
use:
Code:
<div id="photodesc">
then, each place this appears:
Code:
document.images.photoslider.src=photos[which]
follow it on the next line with:
Code:
document.getElementById('photodesc').innerHTML=desc[which]
This should all work because you have already created the array, desc[] which has the descriptions in it. If I've followed your code correctly, all you should have to mess with after doing the above is changing the actual descriptions' text.
Note: this solution has been corrected as per Kalina's astute observation.
Bookmarks