MickeK
01-19-2015, 04:08 PM
1) Script title: Fade-in slideshow (v2.6)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem:
Hi everyone,
This script was what I looked for. It works fine from the demo page but do not work when I've adapted an edited version to my server (a LINUX if it has any relevance). BTW, I've tested with latest versions of IE, Chrome and Firefox.
I've followed all instructions and downloaded both js-files. I've edited the script to three pics on my server. I've stripped the script below to reflect the straightforward slideshow only just to reduce code (the toggle one behaves exactly the same).
This is my test page http://www.imatri.se/testss.html
As you can see it displays a placeholder for the slideshow but no pics.
This is the edited script (stripped from comments):
<!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=utf-8" />
<title>Untitled Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery.touchSwipe.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js"></script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [535, 300], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
['images/sspics/pic01.jpg'],
['images/sspics/pic02.jpg'],
['images/sspics/pic03.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: "always",
togglerid: ""
})
</script>
</head>
<body>
<div id="fadeshow1"></div>
</body>
</html>
I'm no java script wizard but quite used to other scripting. I interpret the first tree lines as connections to three necessary scripts. The first (not included as downlaod) from an extrenal URL and the other two i saved in the same URL as the test page. A bit strange to me that my page will rely on an external pages and not downloaded and saved on my server as well.
The only editing of the script is:
dimensions: [535, 300] (to reflect size of my pics) and
imagearray: [ ['images/sspics/pic01.jpg'],
['images/sspics/pic02.jpg'],
['images/sspics/pic03.jpg'] ],
This looks totally correct to me, still no pics are displayed.
In addition I first of all reda the postings about Fade-in slideshow and couldn't find any postings solving my problem. I also experminted with different paths to both pics and js-files. I also copied the external js-file to my server and adjusted the path in the script.
I'm stucked. I really would like to use this elegant solution to a simple slideshow I have on a page. Even if I'm not as said a javascript wiz evernything seems to be right and I can't solve it by myself.
Really hope someone can see what the problem is.
My best
Micke
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem:
Hi everyone,
This script was what I looked for. It works fine from the demo page but do not work when I've adapted an edited version to my server (a LINUX if it has any relevance). BTW, I've tested with latest versions of IE, Chrome and Firefox.
I've followed all instructions and downloaded both js-files. I've edited the script to three pics on my server. I've stripped the script below to reflect the straightforward slideshow only just to reduce code (the toggle one behaves exactly the same).
This is my test page http://www.imatri.se/testss.html
As you can see it displays a placeholder for the slideshow but no pics.
This is the edited script (stripped from comments):
<!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=utf-8" />
<title>Untitled Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery.touchSwipe.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js"></script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [535, 300], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
['images/sspics/pic01.jpg'],
['images/sspics/pic02.jpg'],
['images/sspics/pic03.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: "always",
togglerid: ""
})
</script>
</head>
<body>
<div id="fadeshow1"></div>
</body>
</html>
I'm no java script wizard but quite used to other scripting. I interpret the first tree lines as connections to three necessary scripts. The first (not included as downlaod) from an extrenal URL and the other two i saved in the same URL as the test page. A bit strange to me that my page will rely on an external pages and not downloaded and saved on my server as well.
The only editing of the script is:
dimensions: [535, 300] (to reflect size of my pics) and
imagearray: [ ['images/sspics/pic01.jpg'],
['images/sspics/pic02.jpg'],
['images/sspics/pic03.jpg'] ],
This looks totally correct to me, still no pics are displayed.
In addition I first of all reda the postings about Fade-in slideshow and couldn't find any postings solving my problem. I also experminted with different paths to both pics and js-files. I also copied the external js-file to my server and adjusted the path in the script.
I'm stucked. I really would like to use this elegant solution to a simple slideshow I have on a page. Even if I'm not as said a javascript wiz evernything seems to be right and I can't solve it by myself.
Really hope someone can see what the problem is.
My best
Micke