2011-02-01 33 views

回答

1

这里的问题:

/res/javascript/lightbox/jquery.lightbox-0.5.js
Failed to load resource: the server responded with a status of 404 (Not Found)

/res/javascript/jquery/jquery-1.4.2.min.js
Failed to load resource: the server responded with a status of 404 (Not Found)

网页试图检索定义的jQuery(因此$),但是JavaScript文件中服务器i回复404错误。无论是它的请求的网址有误,或该文件已被从可能的jQuery的新版本替换服务器—删除(1.4.2在这一点上是很老了,我们到1.5)。

这些消息的顺序也预示着你(试图)jQuery的脚本之前加载灯箱脚本。 这是不好的juju。 Lightbox取决于jQuery,因此您必须先加载jQuery。

+0

同为`/ RES/JavaScript的/收藏/ jquery.lightbox-0.5.js`了。 – Scoobler 2011-02-01 17:25:10

+0

@Scoobler:谢谢,我已经编辑了我的答案,包括两个404s。 – 2011-02-01 17:27:23

0

安东尼奥,它看起来并不像任何脚本都正常加载。尝试直接链接(而不是相对链接)或只是仔细检查你现有的链接。