0 ) { slide_count = 0; } else { playSlide(); } } //-------------------------------------------------------- // SLIDE MENU JUMPER // Go to arbitrary slide from menu selection function goSlide () { // Update the slide counter based upon the menu item selected slide_count = document.control.gomenu.selectedIndex; if (slide_count == 0) { // First menu item resets the show setUp() } else { // Play the selected slide playSlide(); } } //-------------------------------------------------------- // SLIDE PLAYER // Called from several functions to set up the requested // slide. Finds the appropriate image file, caption file function playSlide () { // Check if we tried to go before the first slide if (slide_count == 0) { slide_count = 1; alert ('This is the very first slide!'); } else { // Check if we went past the last slide if (slide_count == slides.length) { slide_count = slides.length - 1; alert ('This is the very last slide!'); } else { // Set state of "loading..." ready_state(0); // Set left button image if (slide_count == 1) { if (document.images) { document.images.leftb.src = leftb_off.src; } } else { if (document.images) { document.images.leftb.src = leftb_on.src; } } // Set right button image if (slide_count == slides.length - 1) { if (document.images) { document.images.rightb.src = rightb_off.src; } } else { if (document.images) { document.images.rightb.src = rightb_on.src; } } // Re-write screen new content parent.frames[0].document.clear(); // Use appropriate background colors if (light_mode) { parent.frames[0].document.write('
'); } else { parent.frames[0].document.write(''); } // store the caption in a var my_cap = '' + cap[slide_count] + ''; parent.frames[0].document.write('' + my_cap + ' | ||
' + my_cap + ' | '); } // insert the current image here parent.frames[0].document.write('' + my_cap + ' | '); } if (cap_align == 4) { parent.frames[0].document.write( '|
' + my_cap + ' |
'); } else { parent.frames[0].document.write('
'); parent.frames[0].document.write(''); } parent.frames[0].document.write('' + showTitle + '
');
parent.frames[0].document.write('');
parent.frames[0].document.write(showCredits);
parent.frames[0].document.write('
' + (slides.length - 1) + ' images to see!');
parent.frames[0].document.write('