modified initialisation
Code:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [700, 650], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg"],
["http://www.vicsjavascripts.org.uk/StdImages/Egypt6.jpg"]
//<--no trailing comma after very last image element!
],
imagemaps:[
'',
'map1'
],
displaymode: {type:'auto', pause:1000, cycles:1, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "none",
togglerid: ""
})
the map
Code:
<map name="map1" >
<area shape="rect" alt="" coords="0,0,100,100" onmouseover="alert();" />
</map>
find line and change
Code:
var fullhtml=fadeSlideShow.routines.getFullHTML(setting.imagearray,setting.imagemaps) //get full HTML of entire slideshow
change there functions
Code:
getSlideHTML:function(imgelement,map){
var layerHTML=(imgelement[1])? '<a href="'+imgelement[1]+'" target="'+imgelement[2]+'">\n' : '' //hyperlink slide?
layerHTML+='<img src="'+imgelement[0]+'" style="border-width:0;" usemap="#'+map+'" />\n'
layerHTML+=(imgelement[1])? '</a>\n' : ''
return layerHTML //return HTML for this layer
},
getFullHTML:function(imagearray,mapary){
var preloadhtml=''
for (var i=0; i<imagearray.length; i++)
preloadhtml+=this.getSlideHTML(imagearray[i],mapary[i])
return preloadhtml
},
Bookmarks