PDA

View Full Version : Ultimate Fade-in slideshow (v1.5) External Javascript file?



lejt21
08-09-2006, 12:17 PM
1) Script Title: Ultimate Fade-in slideshow (v1.5)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem:

I want to put this script into an external .js file and call it into a large number of html pages. I've done this with other scripts successfully, but am baffled with this one as there's two parts to the script. What should I do with the section that goes in the body?

Hope someone can help!

Thanks,

Lois.

mburt
08-09-2006, 12:43 PM
This is what I'd think it would be:


onload=function() {
delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
}

lejt21
08-09-2006, 01:14 PM
Hi mburt, thanks for the quick reply :)


This is what I'd think it would be:


onload=function() {
delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
}

Should that go in the body where I want the fadeout to appear, like this?


<script src="fadeimage.js">

onload=function() {
delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
}
</script>


Or am I misunderstanding....?