PaulNLondon
11-13-2011, 04:19 PM
I have used and am delighted with the Ultimate Fade-in Slideshow.
I am now trying to use it to create the effect whereby images in several locations on the page fade in and out of the background colour (what I'm actually aiming for is to have a number of stars that will seem to twinkle).
So far, I've done this by putting in the image matrix one star image jpg and two further images which are just a single pixel of the background colour and used the randomize option.
The fact that the script creates a div is now my issue since I understand that a div should only be used once on a page.
I've used the code to create two divs and prove I can get two stars to 'twinkle' (I set the pause and the transition times to different values).
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [30, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/blank1.jpg"],
["images/star.jpg"],
["images/blank2.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:1000, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 200, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [30, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/blank1.jpg"],
["images/star.jpg"],
["images/blank2.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:1500, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 350, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
I guess it isn't the greatest idea to replicate this to create the twelve or more stars I want so I'd like some ideas and suggestions, please.
Thanks
Paul
I am now trying to use it to create the effect whereby images in several locations on the page fade in and out of the background colour (what I'm actually aiming for is to have a number of stars that will seem to twinkle).
So far, I've done this by putting in the image matrix one star image jpg and two further images which are just a single pixel of the background colour and used the randomize option.
The fact that the script creates a div is now my issue since I understand that a div should only be used once on a page.
I've used the code to create two divs and prove I can get two stars to 'twinkle' (I set the pause and the transition times to different values).
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [30, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/blank1.jpg"],
["images/star.jpg"],
["images/blank2.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:1000, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 200, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [30, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/blank1.jpg"],
["images/star.jpg"],
["images/blank2.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:1500, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 350, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
I guess it isn't the greatest idea to replicate this to create the twelve or more stars I want so I'd like some ideas and suggestions, please.
Thanks
Paul