简体   繁体   English

jQuery Lightbox插件在上传到服务器时无法正常工作

[英]jquery Lightbox plugin not working when uploaded to server

I really hope someone can help me as I'm having trouble with Lightbox. 我真的希望有人能帮到我,因为我在使用Lightbox时遇到了麻烦。 It works perfectly locally but now that I have uploaded it to my server the images just open in a new window. 它在本地完美运行,但是现在我已将图像上传到服务器,只是在新窗口中打开了图像。 I installed Firebug to try to find out what was going on and it comes up with this error $(".portfolio-item a").lightBox is not a function I have also tried changing permissions but to no avail. 我安装了Firebug,试图找出正在发生的事情,并且出现了此错误$(“。portfolio-item a”)。lightBox不是我也尝试过更改权限但无济于事的功能。

My site is http://www.peppermintdesign.com.au/portfolio.html 我的网站是http://www.peppermintdesign.com.au/portfolio.html

Any help would be greatly appreciated!! 任何帮助将不胜感激!!

Thanks! 谢谢!

It's in the wrong place :). 在错误的地方:)。 The error is 错误是

"NetworkError: 404 Not Found - http://www.peppermintdesign.com.au/js/jquery.lightBox-0.5.min.js " “找不到NetworkError:404- http ://www.peppermintdesign.com.au/js/jquery.lightBox-0.5.min.js”

So the lightbox javascript file is missing on the server side. 因此,服务器端缺少lightbox javascript文件。

Install that Firebug and use the javascript console. 安装该Firebug并使用javascript控制台。 That will help you big time developing frontends ;). 那将帮助您大量时间开发前端;)。

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /js/jquery.lightBox-0.5.min.js was not found on this server.</p>
</body></html>

upload again jquery.lightBox-0.5.min.js to your js folder 再次将jquery.lightBox-0.5.min.js上传到您的js文件夹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM