PDA

View Full Version : slide show on multiple pages - links not working



mjp
03-11-2008, 05:50 PM
1) Script Title: Ultimate Fadein Slideshow

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

3) Describe problem: I created two external javascript files to handle the javascript from the <head> and from the image location in the <body>. I would like to use the same script on multiple pages of the site. The slides 'do their thing' on the home page, however, it does not work on other pages in the site. I checked all links and the javascript files are linked correctly on the other pages.

Here is the home page:
<head>
<title>Welcome....</title>
<link rel="stylesheet" type="text/css" href="home/CSS/core.css">

<script type="text/javascript" src="./home/cgi-bin/slideshow.js"></script>

<!-- /***********************************************
* Ultimate Fade-In Slideshow (v1.51): 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.
***********************************************/-->
</head>
<body> link for where the slide show appears.
<div id="headergraphic">
<script type="text/javascript" src="./home/cgi-bin/slidecontrol.js"></script>
</div>
</body>

The above works on the home page of the site.

Here is Careers - the only thing different is the paths.

<head>
<title>Career Opportunities</title>
<link rel="stylesheet" type="text/css" href="../home/CSS/core.css">

<script type="text/javascript" src="../home/cgi-bin/slideshow.js"></script>

<!-- /***********************************************
* Ultimate Fade-In Slideshow (v1.51): 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.
***********************************************/-->
</head>
Same as above for the <body> script, except the ../ in the path. This one does not work.

The CSS files work, so I know the links between the pages work.

Thanks