mb94
01-26-2009, 02:42 PM
1) Script Title: Simply Controls galleries
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
3) Describe problem: I can have on gallery working fine on a page (except an error does appear, saying it can't find the div it should, but it does find the div, so I don't think thats part of the problem). When I try and add a second, a black box appears where the second gallery should be. I had a little bit of a hard time understanding the instructions on how to make multiple, so could someone please help out?
thanks. here is the script I'm using now:
<script type="text/javascript">
var mygallery=new simpleGallery({
wrapperid: "bombardier-f18", //ID of main gallery container,
dimensions: [222, 135], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["youtube/b/f18-1.png", "", ""],
["youtube/b/f18-2.png", "", ""],
["youtube/b/f18-3.png", "", ""],
],
autoplay: true,
persist: false,
pause: 2500, //pause between slides (milliseconds)
fadeduration: 500, //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)
}
})
</script>
<script type="text/javascript">
var mygallery2=new simpleGallery({
wrapperid: "bombardier-crj", //ID of main gallery container,
dimensions: [222, 135], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["youtube/b/crj-1.png", "", ""],
["youtube/b/crj-2.png", "", ""],
["youtube/b/crj3.png", "", ""],
],
autoplay: true,
persist: false,
pause: 2500, //pause between slides (milliseconds)
fadeduration: 500, //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)
}
})
</script>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
3) Describe problem: I can have on gallery working fine on a page (except an error does appear, saying it can't find the div it should, but it does find the div, so I don't think thats part of the problem). When I try and add a second, a black box appears where the second gallery should be. I had a little bit of a hard time understanding the instructions on how to make multiple, so could someone please help out?
thanks. here is the script I'm using now:
<script type="text/javascript">
var mygallery=new simpleGallery({
wrapperid: "bombardier-f18", //ID of main gallery container,
dimensions: [222, 135], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["youtube/b/f18-1.png", "", ""],
["youtube/b/f18-2.png", "", ""],
["youtube/b/f18-3.png", "", ""],
],
autoplay: true,
persist: false,
pause: 2500, //pause between slides (milliseconds)
fadeduration: 500, //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)
}
})
</script>
<script type="text/javascript">
var mygallery2=new simpleGallery({
wrapperid: "bombardier-crj", //ID of main gallery container,
dimensions: [222, 135], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["youtube/b/crj-1.png", "", ""],
["youtube/b/crj-2.png", "", ""],
["youtube/b/crj3.png", "", ""],
],
autoplay: true,
persist: false,
pause: 2500, //pause between slides (milliseconds)
fadeduration: 500, //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)
}
})
</script>