You have extra script code and styles that you are not using. Your script code could be:
Code:
<script type="text/javascript">
//If using image buttons as controls, Set image buttons' image preload here true
//(use false for no preloading and for when using no image buttons as controls):
var preload_ctrl_images=false;
var slides=[]; //FIRST SLIDESHOW
//configure the below images and descriptions to your own.
slides[0] = ["graphics/slide/AbstractStudy.jpg", "Abstract Study 24 x 24"];
slides[1] = ["graphics/slide/flowersin-magenta.jpg", "Flowers in Magenta 28 x 36"];
slides[2] = ["graphics/slide/daniel.jpg", "Daniel 12 x 12"];
slides[3] = ["graphics/slide/snow.jpg", "Snow 30 x 24"];
slides[4] = ["graphics/slide/floral.jpg", "Hyacinth 30 x 30"];
//above slide show uses only the defaults
</script>
<script src="swissarmy.js" type="text/javascript">
/***********************************************
* Swiss Army Image slide show script - © John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
***********************************************/
</script>
For the style, you need a container division for the slide show (from your source code, additions red):
Code:
<td colspan="2" valign="top"><p> </p>
<div id="show1">
<script type="text/javascript">
//Notes on Parameters: The only required parameter is the slides_array_name. If Width is used, so must Height.
//Interval is optional too. It is always last, either fourth after Width and Height or second after Slides_array_name.
//Usage: new inter_slide(Slides_array_name, Width, Height, Interval)
new inter_slide(slides)
</script>
</div>
</td>
This would allow you to use styles like so (replaces your existing on page stylesheet):
Code:
<style type="text/css">
/* All Styles Optional */
#show1 span{
font-family:comic sans ms;
font-size:10pt;
color:#ffffff;
}
body {
background-color: #8E80D5;
}
.navText {
font: 14px Arial, Helvetica, sans-serif;
color: #993300;
line-height:16px;
letter-spacing:.1em;
text-decoration: none;
font-weight: 500;
}
</style>
I left what you had that actually did anything useful, and added styles for the newly created container division. The #show1 span selector styles the descriptions. You can use whatever styles you like, these are just examples. The input button controls will then take care of themselves, but could be styled with a #show1 input selector.
Unrelated to your question, if you were to specify the width and height and the background color for the show in its configuration, you wouldn't need to 'mat' the narrower and the shorter images. You could do this like so (additions/changes red):
Code:
var slides=[]; //FIRST SLIDESHOW
//configure the below images and descriptions to your own.
slides[0] = ["graphics/slide/AbstractStudy.jpg", "Abstract Study 24 x 24"];
slides[1] = ["graphics/slide/flowersin-magenta.jpg", "Flowers in Magenta 28 x 36"];
slides[2] = ["graphics/slide/daniel.jpg", "Daniel 12 x 12"];
slides[3] = ["graphics/slide/snow.jpg", "Snow 30 x 24"];
slides[4] = ["graphics/slide/floral.jpg", "Hyacinth 30 x 30"];
//optional properties for these images:
slides.width=550; //use to set width of widest image if dimensions vary
slides.height=396; //use to set height of tallest image if dimensions vary
slides.fadecolor='#8E80D5'; // Set fading images' background color, defaults to white (string) - use color name or hex value with # prefix
Bookmarks