spook_man
09-24-2010, 07:05 PM
1) Script Title: Ultimate Fade-in slideshow (v2.4)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem:
I'm using this to rotate all the same images in three different fadeSlideShows; they're small images (60x27). So I end up having three new fadeSlideShows with different wrapperid's, all pointing to the same images. Since there are roughly 300 images, this adds a lot of code to my page.
Is there a way to set the imagearray for the different wrapperids to point to an xml file or something to get the list of images?
Thanks.. -Jeff
E.g.
<script type="text/javascript">
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["PicturesList.xml"]
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["PicturesList.xml"]
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow3", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["PicturesList.xml"]
Instead of current:
<script type="text/javascript">
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/1.jpg"],
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/2.jpg"],
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/1.jpg"],
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/2.jpg"],
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow3", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/1.jpg"],
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/2.jpg"],
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem:
I'm using this to rotate all the same images in three different fadeSlideShows; they're small images (60x27). So I end up having three new fadeSlideShows with different wrapperid's, all pointing to the same images. Since there are roughly 300 images, this adds a lot of code to my page.
Is there a way to set the imagearray for the different wrapperids to point to an xml file or something to get the list of images?
Thanks.. -Jeff
E.g.
<script type="text/javascript">
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["PicturesList.xml"]
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["PicturesList.xml"]
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow3", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["PicturesList.xml"]
Instead of current:
<script type="text/javascript">
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/1.jpg"],
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/2.jpg"],
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/1.jpg"],
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/2.jpg"],
...yadda-yadda-yadda...
var mygallery = new fadeSlideShow({
wrapperid: "fadeshow3", //ID of blank DIV on page to house Slideshow
dimensions: [60, 27], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/1.jpg"],
["<%=PortalSettings.ActiveTab.SkinPath%>/images/headerrandomimages/2.jpg"],