jenphoto
10-27-2009, 01:40 AM
1) Script Title: Ultimate fade-in slideshow
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: How do I centre the slideshow on my web page. The show works well except I need to centre it on the page.
I added a <centre> tag which has amost centred the show but not quite. I'm not really sure what I'm doing, so some help would be appreciated.
Thanks in advance.
Wasn't sure how to put this in [code]
<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>
<CENTER><script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [800, 600], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["1.jpg"],
["2.jpg"],
["3.jpg"],
["4.jpg"]
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:true},
persist: true, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<div id="fadeshow1"></div>
<br />
[code]
</head>
<body>
</body>
</html>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: How do I centre the slideshow on my web page. The show works well except I need to centre it on the page.
I added a <centre> tag which has amost centred the show but not quite. I'm not really sure what I'm doing, so some help would be appreciated.
Thanks in advance.
Wasn't sure how to put this in [code]
<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>
<CENTER><script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [800, 600], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["1.jpg"],
["2.jpg"],
["3.jpg"],
["4.jpg"]
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:true},
persist: true, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<div id="fadeshow1"></div>
<br />
[code]
</head>
<body>
</body>
</html>