the script says to use
Code:
<script type="text/javascript">
//Define Image Array. Syntax: ["image_path", "url_destination", "url_target"]
var myimages=new Array()
myimages[0]=["photo1.jpg", "", ""]
myimages[1]=["photo2.jpg", "http://www.dynamicdrive.com", ""]
myimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"]
//Create new drop-in slideshow
//Syntax: new dropinslideshow(image_array, slideshow_width, slideshow_height, delay_before_rotation)
new dropinslideshow(myimages, 200, 250, 3000)
</script>
to create the actual slideshow... but we need to add an extra little bit piece and some CSS styles to achieve the centered look
Code:
<style type="text/css">
<!--
div#dropinslide {
margin: 0 auto;
width: ___px;
}
// -->
</style>
<div class="dropinslide">
<script type="text/javascript">
//Define Image Array. Syntax: ["image_path", "url_destination", "url_target"]
var myimages=new Array()
myimages[0]=["photo1.jpg", "", ""]
myimages[1]=["photo2.jpg", "http://www.dynamicdrive.com", ""]
myimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"]
//Create new drop-in slideshow
//Syntax: new dropinslideshow(image_array, slideshow_width, slideshow_height, delay_before_rotation)
new dropinslideshow(myimages, 200, 250, 3000)
</script>
</div>
[code]
note that what ever you put for the width of the dropshowin
...
you need to put that same number in your css styles
Bookmarks