eoinjohn1981
03-07-2011, 06:43 PM
Need help guys! Not sure what I am doing wrong here, I'm an intermediate user of Dreamweaver and trying to get this slideshow effect to work. Initially, I want to use it on my template with the rest of my pages but doesnt seem to be working. As far as I can see, the code is as it should be and I have put the div id in the table I want it but nothing appears in the preview. My code is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [350, 550], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
[<img src="../Images/Christ_on_Corcovado_mountain.JPG" />],
[<img src="../Images/colosseum2.jpg" />],
[<img src="../Images/Greatwall.jpg" />],
[<img src="../Images/india.jpg" />] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<style type="text/css">
<!--
body {
background-attachment: scroll;
background-image: url(../Images/gradient.GIF);
background-repeat: repeat-x;
}
-->
</style>
</head>
<body>
<table width="693" height="749" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="352" height="65"><img src="../Images/TopLogo.gif" width="352" height="64" /></td>
<td width="390"> <div align="center"><span class="style1"> Anytime anywhere, We will get you the lowest fare</span> </div></td>
</tr>
<tr>
<td height="495"> </td>
<td colspan="2"><div id="fadeshow1"></div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td width="4"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
Its a possible image path issue but not 100% certain on that. They are in an images folder on my site. I downloaded the js. file along with the 3 images included so not really sure what to do on this. Have spent a few hours on this with no success.
Any help would be greatly appreciated!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [350, 550], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
[<img src="../Images/Christ_on_Corcovado_mountain.JPG" />],
[<img src="../Images/colosseum2.jpg" />],
[<img src="../Images/Greatwall.jpg" />],
[<img src="../Images/india.jpg" />] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<style type="text/css">
<!--
body {
background-attachment: scroll;
background-image: url(../Images/gradient.GIF);
background-repeat: repeat-x;
}
-->
</style>
</head>
<body>
<table width="693" height="749" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="352" height="65"><img src="../Images/TopLogo.gif" width="352" height="64" /></td>
<td width="390"> <div align="center"><span class="style1"> Anytime anywhere, We will get you the lowest fare</span> </div></td>
</tr>
<tr>
<td height="495"> </td>
<td colspan="2"><div id="fadeshow1"></div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td width="4"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
Its a possible image path issue but not 100% certain on that. They are in an images folder on my site. I downloaded the js. file along with the 3 images included so not really sure what to do on this. Have spent a few hours on this with no success.
Any help would be greatly appreciated!