The idea behind making JavaScript accessible is to start with a whole, usable HTML document. In your case, have the entire slideshow displayed on the page, then use JavaScript to change the class names of certain HTML tags. Then, using the class names, create CSS styles to make only one slide appear at once. Numerous times I've heard the most accurate way to describe the relationship between an image and it's cutline is using a definition list:
HTML Code:
<dl class="slideshow" id="someName">
<dt class="slideImage" id="someNameImg1"><img /></dt>
<dd class="slideCaption" id="someNameCap1">Text</dl>
<dt class="slideImage" id="someNameImg2"><img /></dt>
<dd class="slideCaption" id="someNameCap2">Text</dl>
<dt class="slideImage" id="someNameImg3"><img /></dt>
<dd class="slideCaption" id="someNameCap3">Text</dl>
</dl>
Then use javascript to change the class names for the DT tags to slideImageOff and the DD tags to slideCaptionOff. Set the first slide's DT tag's class name to slideImageOn and the first slide's DD tag's class name to slideCaptionOn. Apply the right CSS and you've got the beginnings of a slideshow.
Bookmarks