Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
Sorry, gotta do that. All that means is that here:
Code:
<script type="text/javascript" src="includes/templates/red_passion/jscript/jscript_YOURJAVASCRIPT.js"></script>
it should be:
Code:
<script type="text/javascript" src="includes/templates/red_passion/jscript/jscript_YOURJAVASCRIPT.js">
/***********************************************
* Ultimate Fade-In Slideshow (v1.51a): (c) 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>
That said, there are some problems with the external sctipt's code. Remove:
Code:
<script type="text/javascript">
from the beginning and:
from the end. These don't belong in an external script.
One other thing, it needs a fadebgcolor declared. That's the color behind the images in the show. It's usually never seen, except sometimes just as the show is loading. Put that here (highlighted):
Code:
/***********************************************
* Ultimate Fade-In Slideshow (v1.51a): (c) 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.
***********************************************/
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["includes/templates/red_passion/images/header_bg.jpg","http://www.ampmgraphics.com/", "_self"]
fadeimages[1]=["includes/templates/red_passion/images/header_bg2.jpg", "http://www.ampmgraphics.com/index.php?main_page=index&cPath=98", "_self"]
fadeimages[2]=["includes/templates/red_passion/images/header_bg3.jpg", "http://www.ampmgraphics.com/index.php?main_page=index&cPath=104", "_self"]
fadeimages[3]=["includes/templates/red_passion/images/header_bg4.jpg", "http://www.ampmgraphics.com/index.php?main_page=index&cPath=114", "_self"]
var fadebgcolor="white"
////NO need to edit beyond here/////////////
var fadearray=new Array() //arr . . .
I think white would be good for your page, but it can be any valid css color value.
Added Later:
Just get things working first, but I see that the division where the slideshow is has a background image of one of the banners. It's this we're seeing when the script isn't working. Once the script is working, it might look better to get rid of that style (from the includes/templates/red_passion/css/stylesheet.css file around line 1028):
Code:
#imagemap {
height:238px;
width: 842px;
background-image: url(../images/header_bg2.jpg);
background-repeat:no-repeat;
margin-top:0px;
}
But what about viewers without javascript? For that you could put a noscript tag on the page and show the actual image in that for non-javascript viewers (from the index.php file around line 61 - addition highlighted):
Code:
<div id="imagemap">
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 842, 238, 0, 9000, 1, "R")
//new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
</script>
<noscript>
<img src="includes/templates/red_passion/images/header_bg2.jpg" width="842" height="238" alt="original image" title="" />
</noscript>
Bookmarks