PDA

View Full Version : Fade-in image slideshow



sytech
06-06-2005, 01:17 PM
Ok, I'm new at this so I new I'd have some problems.
so here's my question: My images that I want displayed doesn't show up. Why?
I'm just tinkering with it but I can't figure out why I can't get the images to come up. Does it have to be in a specific folder? I've tried all combinations.

need help fast.

:confused:
here's what i have in HTML:

var slideshow_width='140px' //SET IMAGE WIDTH
var slideshow_height='225px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages=new Array()
//SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
fadeimages[0]=["1-45.jpg", "", ""] //plain image syntax
fadeimages[1]=["2-45.jpg", "http://www.google.com", ""] //image with link syntax
fadeimages[2]=["3-45.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

mwinter
06-06-2005, 04:32 PM
My images that I want displayed doesn't show up. Why? [...] Does it have to be in a specific folder?The URLs you use for the images will be resolved against the HTML document. In English :D, the address

  1-45.jpg

points a file with that name in the same directory as the HTML file. If the images exist in a different directory, you'll either have to move the images (not necessarily a good idea) or change the URL.

Hope that helps,
Mike

sytech
06-06-2005, 05:34 PM
Excellent! I've done it. Thank you very much.

Now I have another question: How can I center it on my webpage? It's on the left side and I need it centered on my page. :D

jscheuer1
06-06-2005, 06:14 PM
Simplest:

<center>
code for 'where you want the script to appear' here
</center>

Better:

In the head of the page:

<style type="text/css">
.centre {
text-align:center;
margin:0 auto;
}
</style>

In the body:

<div class="centre">
code for 'where you want the script to appear' here
</div>