Thanks for your suggestions jscheuer1.
I'm not sure what I'm doing wrong, but I tried adding the oninit function, and kept the script in the "head" of the html:
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [800, 363], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["pic1.jpg"],["pic2.jpg"],["pic3.jpg"],["pic4.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "",
oninit: function(){
jQuery('#' + this.setting.wrapperid + ' .gallerylayer img').attr('usemap', '#1');
}
})
</script>
and then renamed my html image map '1', and kept it in the "body" of the html:
Code:
<map name="1">
<area shape="rect" coords="132,333,0,362" href="index.html">
<area shape="rect" coords="266,333,134,362" href="page2.html">
<area shape="rect" coords="399,333,268,362" href="page3.html">
<area shape="rect" coords="530,333,401,362" href="page4.html">
<area shape="rect" coords="665,333,533,362" href="page5.html">
<area shape="rect" coords="799,333,667,362" href="page6.html">
</map>
I know the map works on its own because I tested it with this:
Code:
<img src="pic1.jpg" usemap="#1" border="0">
But adding that extra line (the oninit function) in the Ultimate Fade-In SlideShow didn't seem to make it use the map. Did I miss something?
I don't mind using another code, but I don't really need a lot of options, and I've already gone through the ultimate fade-in script to disable all the random options it came with, and I don't know much about javascript. I just need a relatively simple thing that fades smoothly from one image to the next automatically, where I can set how long it stays on each image and how long it takes to fade, and where it doesn't pause for any reason (ie mouseovers) or show buttons or captions or anything.
Bookmarks