PDA

View Full Version : Ultimate Fade in Slideshow cant be seen



tauhui
03-01-2012, 08:54 AM
1) Script Title: Fade in Slide show

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

3) Describe problem: Hi, I have installed the slideshow successful, because when i test run on ff preview browser and it works? However, when i run on my php main web it dosent show.Is it because of the php links? :confused:

jscheuer1
03-01-2012, 10:15 AM
Perhaps. It might be a mismatch between the upper/lower case letters used in paths and/or filenames for the images. Case almost always matters on a server, not usually on the preview.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

tauhui
03-01-2012, 11:38 AM
It shouldn't be the picture problem i think.. Please help this is the script that i use.

I can't see the whole div. But when preview in firefox i can see... and it works.



<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script type="text/javascript" src="../../../../../themes/default/js/fadeslideshow.js"></script>

<script type="text/javascript">

var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.dynamicdrive.com/ddincludes/logo.gif", "http://en.wikipedia.org/wiki/Cave", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
["http://www.dynamicdrive.com/ddincludes/logo.gif"],
["http://www.dynamicdrive.com/ddincludes/logo.gif", "", "", "What a beautiful scene with everything changing colors."] //<--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>


<div id="footer">
SlideShow!
<div id="fadeshow1"></div>

</div>

jscheuer1
03-01-2012, 04:24 PM
If you've edited fadeslideshow.js it might have become corrupted. If you edited it in Dreamweaver or some other WYSIWYG editor, these sometimes automatically alter the paths assigned internally to src attributes such that they're all prefaced with a relative path expression related to the folder that the script is in or some other criteria that the editor deems significant. When that happens, none of the images can be found.

To test that theory you need to start with a fresh copy of fadeslideshow.js and edit it only in a text only editor like NotePad or SimpleText.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.