jquery 幻灯片无法工作,因为文件属性可能错误
我最近使用 jquery 幻灯片插件启动了一些网页,当然,它在我的硬盘上运行得很好。但现在页面位于服务器上,我不断看到错误代码,表明“mygallery”文件未定义。我通过指向文件所在的公用文件夹位置修复了此问题,但脚本仍然不起作用。这是我的第一次现场测试。这是众多问题之一。我的问题是我的归因设置是否错误?
更新。
我将程序指向包含必要图像的本地目录。我都锻炼了。谢谢你的帮助。
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 files 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来您对幻灯片脚本的调用是错误的:
<脚本类型=“text/javascript”>Homepage_files/fadeslideshow.js
您错过了 src="" 并过早关闭脚本标签。它应该像
<脚本类型=“text/javascript”src=“Homepage_files/fadeslideshow.js”>
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>
无法理解为什么你的 imagearray 选项被定义为数组内的数组:
imagearray: [["image1.jpg"],]"image2.jpg"]]
这会更合乎逻辑:
imagearray: ["image1.jpg" ,"image2.jpg"]
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"]