PDA

View Full Version : Trying to put the Fade-In Slideshow in a separate JS file



T0bster
11-25-2007, 10:09 AM
1) Script Title: Ultimate Fade-In Slideshow

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

3) Describe problem:

In order for my page to validate I have attempted to place the code for the slide show in a separate JavaScript file. However I must have done something wrong because the slide show is appearing in the wrong position on the page, and I'm getting some random code showing up where the slide show is meant to be:-

http://www.jokersfuncasinos.co.uk/dev/

In the header and I have...



<script src="slideshow.js" type="text/javascript">
/***********************************************
* Ultimate Fade-In Slideshow (v1.5): Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
</script>


And in the body I have...


<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 380, 252, 0, 3000, 0, "R")
</script>


Any help would be really appreciated.

Cheers,
Toby

ddadmin
11-25-2007, 10:19 AM
The .js file is corrupt somehow. I tried repasting the original code into your .js file, and things seem fine now. Try the below version.

T0bster
11-25-2007, 12:19 PM
Thanks for the reply ddadmin. That has fixed the problem...

http://www.jokersfuncasinos.co.uk/dev/

Muchos appreciatos! :-)

Toby