var mygallery=new simpleGallery({
wrapperid: "simplegallery", //ID of main gallery container,
dimensions: [310, 250], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["simplegallery/1.jpg", "", "", ""],
["simplegallery/1.jpg", "", "", ""],
["simplegallery/2.jpg", "", "", ""],
["simplegallery/2.jpg", "", "", ""],
["simplegallery/3.jpg", "", "", ""],
["simplegallery/4.jpg", "", "", ""],
["simplegallery/5.jpg", "", "", ""],
["simplegallery/6.jpg", "", "", ""]
],
autoplay: [true, 1500, 30], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
persist: true,
fadeduration: 1000, //transition duration (milliseconds)
oninit:function(){ //event that fires when gallery has initialized/ ready to run
},
onslide:function(curslide, i){ //event that fires after each slide is shown
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
}
})
