开发者

jquery slideshow won't work because file attribution might be wrong

I recently launched some web pages using a jquery slideshow plugin which, of course, was working just fine on my hard drive. But now that the pages are on the server, I keep seeing an error code that the 'mygallery' file is undefined. I fixed this by pointing to the public folder location where the f开发者_开发技巧iles are located but the script still does not work. This is my first live testing. This is one of many problems. My question is whether or not I have set my attributions incorrectly?.

Update.

I pointed the program at my local directory containing the necessary images. I all worked out. Thank you for the help.


Looks like your calls for the slideshow scripts are wrong:

<script type="text/javascript">Homepage_files/imagefader.min.js</script> <script type="text/javascript">Homepage_files/fadeslideshow.js</script>

your missing the src="" and closing the script tags too early. it should be like

<script type="text/javascript" src="Homepage_files/imagefader.min.js"></script> <script type="text/javascript" src="Homepage_files/fadeslideshow.js"></script>


Can't understand why your imagearray options are defined as an array inside an array:

imagearray: [["image1.jpg"],]"image2.jpg"]]

This would be more logical:

imagearray: ["image1.jpg","image2.jpg"]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜