ellenjones6
09-28-2012, 07:26 PM
1) Script Title: Ultimate Fade-in slide show v2.4
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: I am replacing the Flash banner on my web site with a slideshow banner. By searching through previous forum posts, I was able to get the banner to do several things I wanted: loop once and stop at the last image; keep going even when the user hovers his/her mouse; fade from a white background color instead of black. What I was not able to do was to specify fade duration and pause for individual slides. What I want to do is to be able to change the pause time and the fade duration for the first slide so that the fade from white to the first image is very rapid. I found a helpful post on this topic (http://www.dynamicdrive.com/forums/showthread.php?63546-Effect-pause-time-for-individual-images-in-Ultimate-Slideshow&highlight=ultimate+fade+in+slideshow+mouse+over), but was not able to implement the solution.
Here is the page I am working on: http://adirondackvic.org/index-fall.html
Here, I think, is the relevant code:
<style type="text/css">
#fadeshow2 {
overflow: auto;
width: 960px;
height: 102px;
margin: 0 auto;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow2.js">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [960, 102], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://Adirondackvic.org/Images/Banner-Fall-Slide-1.jpg", "", "", 500, 10],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-2.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-3.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-4.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-5.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-6.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-7.jpg", "", "", ]//<--no trailing comma after very last image element!
],
titlesAndAlts: [
{title: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC", alt: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC"},
{title: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC", alt: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC"},
{title: "Ferns on the Boreal Life Trail at the Paul Smiths VIC", alt: "Ferns on the Boreal Life Trail at the Paul Smiths VIC"},
{title: "Adirondack Wetlands: Barnum Bog at the Paul Smiths VIC", alt: "Adirondack Wetlands: Barnum Bog at the Paul Smiths VIC"},
{title: "Trees of the Adirondacks: Red Maple at the Paul Smiths VIC", alt: "Trees of the Adirondacks: Red Maple at the Paul Smiths VIC"},
{title: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC", alt: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC"},
{title: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC", alt: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC"},
],
displaymode: {type:'auto', pause:1000, cycles:1, wraparound:true, randomize:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 2000, //transition duration (milliseconds)
descreveal: "always",
togglerid: "",
oninit: function(){
var sObj = this.setting;
sObj.$wrapperdiv.bind('mouseenter', function(){sObj.ismouseover = false;});
this.setting.dpause = this.setting.displaymode.pause;
this.setting.dfade = this.setting.fadeduration;
},
onslide: function(c, i){
this.setting.displaymode.pause = this.setting.imagearray[i][4] || this.setting.dpause;
this.setting.fadeduration = this.setting.imagearray[i][5] || this.setting.dfade;
}
})
</script>
<style type="text/css">
<!--
#fadeshow2, #fadeshow2 .gallerylayer {
background-color: white!important;
}
As you can see, I dialed the fade duration for the first image back to 10 milliseconds, but it doesn't seem to affect the time this image takes to appear. What am I doing wrong? Also, I am unclear as to how a specific image is affected by a change in fade duration. If I specify a short change duration for the first image, does that mean that this image will fade in more quickly or does it mean that the transition time to the next image will be shorter? I am confused.... Please help. Ellen
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: I am replacing the Flash banner on my web site with a slideshow banner. By searching through previous forum posts, I was able to get the banner to do several things I wanted: loop once and stop at the last image; keep going even when the user hovers his/her mouse; fade from a white background color instead of black. What I was not able to do was to specify fade duration and pause for individual slides. What I want to do is to be able to change the pause time and the fade duration for the first slide so that the fade from white to the first image is very rapid. I found a helpful post on this topic (http://www.dynamicdrive.com/forums/showthread.php?63546-Effect-pause-time-for-individual-images-in-Ultimate-Slideshow&highlight=ultimate+fade+in+slideshow+mouse+over), but was not able to implement the solution.
Here is the page I am working on: http://adirondackvic.org/index-fall.html
Here, I think, is the relevant code:
<style type="text/css">
#fadeshow2 {
overflow: auto;
width: 960px;
height: 102px;
margin: 0 auto;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow2.js">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [960, 102], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://Adirondackvic.org/Images/Banner-Fall-Slide-1.jpg", "", "", 500, 10],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-2.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-3.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-4.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-5.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-6.jpg", "", "", ],
["http://Adirondackvic.org/Images/Banner-Fall-Slide-7.jpg", "", "", ]//<--no trailing comma after very last image element!
],
titlesAndAlts: [
{title: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC", alt: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC"},
{title: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC", alt: "Adirondack Wetlands: Heron Marsh at the Paul Smiths VIC"},
{title: "Ferns on the Boreal Life Trail at the Paul Smiths VIC", alt: "Ferns on the Boreal Life Trail at the Paul Smiths VIC"},
{title: "Adirondack Wetlands: Barnum Bog at the Paul Smiths VIC", alt: "Adirondack Wetlands: Barnum Bog at the Paul Smiths VIC"},
{title: "Trees of the Adirondacks: Red Maple at the Paul Smiths VIC", alt: "Trees of the Adirondacks: Red Maple at the Paul Smiths VIC"},
{title: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC", alt: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC"},
{title: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC", alt: "Saint Regis Mountain from the Barnum Brook Trail at the Paul Smiths VIC"},
],
displaymode: {type:'auto', pause:1000, cycles:1, wraparound:true, randomize:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 2000, //transition duration (milliseconds)
descreveal: "always",
togglerid: "",
oninit: function(){
var sObj = this.setting;
sObj.$wrapperdiv.bind('mouseenter', function(){sObj.ismouseover = false;});
this.setting.dpause = this.setting.displaymode.pause;
this.setting.dfade = this.setting.fadeduration;
},
onslide: function(c, i){
this.setting.displaymode.pause = this.setting.imagearray[i][4] || this.setting.dpause;
this.setting.fadeduration = this.setting.imagearray[i][5] || this.setting.dfade;
}
})
</script>
<style type="text/css">
<!--
#fadeshow2, #fadeshow2 .gallerylayer {
background-color: white!important;
}
As you can see, I dialed the fade duration for the first image back to 10 milliseconds, but it doesn't seem to affect the time this image takes to appear. What am I doing wrong? Also, I am unclear as to how a specific image is affected by a change in fade duration. If I specify a short change duration for the first image, does that mean that this image will fade in more quickly or does it mean that the transition time to the next image will be shorter? I am confused.... Please help. Ellen