开发者

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

开发者 https://www.devze.com 2023-01-20 13:31 出处:网络
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

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

精彩评论

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

关注公众号