wiggy298
10-16-2009, 12:20 AM
First thank you for this very simple script. I am not that html savvy and I have been searching for something like this that did not require flash.Was very glad I came across this script.
On to my question. I am using the following code below. Is there a way to set a static image before this script kicks in? What I mean is that when I load my homepage I have this blank space where the script loads the image. The script does kick in, but just wondering what I could do to either make the script load faster or have a flat image in it's place before hand.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.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: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [512, 444], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.mydomain.com/images/main_homepage2.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "FREE SHIPPING STORE WIDE"],
["http://www.mydomain.com/images/main_homepage1.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "Reading Message Number 2"],
["http://www.mydomain.com/images/main_homepage2.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "Reading Message Number 3"],
["http://www.mydomain.com/images/main_homepage1.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "Reading Message Number 3"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<div id="fadeshow1"></div>
Thank you in advance
On to my question. I am using the following code below. Is there a way to set a static image before this script kicks in? What I mean is that when I load my homepage I have this blank space where the script loads the image. The script does kick in, but just wondering what I could do to either make the script load faster or have a flat image in it's place before hand.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.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: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [512, 444], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.mydomain.com/images/main_homepage2.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "FREE SHIPPING STORE WIDE"],
["http://www.mydomain.com/images/main_homepage1.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "Reading Message Number 2"],
["http://www.mydomain.com/images/main_homepage2.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "Reading Message Number 3"],
["http://www.mydomain.com/images/main_homepage1.gif", "http://www.mydomain.com/c-440-lighting-electrical.aspx","_self", "Reading Message Number 3"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<div id="fadeshow1"></div>
Thank you in advance