JQuery脚本冲突

时间:2011-02-09 05:51:15

标签: javascript jquery

我在一个带有jQuery幻灯片和菜单栏的页面上使用jQuery Lightbox作为图库,而菜单栏和幻灯片放映工作正常,Lightbox没有。

与LIGHTBOX发生冲突 见http://concertorestaurant.creativeconnect.com.au/functions_gallery.html

工作示例 - 带幻灯片的菜单 http://concertorestaurant.creativeconnect.com.au/home.html

感谢您的帮助!

2 个答案:

答案 0 :(得分:1)

我认为您的一个JavaScript文件和其他几个文件位置错误,Chrome出错:

style-projects-jquery.css: Failed to load resource: the server responded with a status of 404 (ERROR: The file requested could not be found.)
SpryMenuBarHorizontal.css: Failed to load resource: the server responded with a status of 404 (ERROR: The file requested could not be found.)
PLHIM1.js: Failed to load resource: the server responded with a status of 404 (ERROR: The file requested could not be found.)
functions_gallery.html:16: Uncaught TypeError: Object # has no method 'lightBox'
thumb_image2.jpg: Failed to load resource: the server responded with a status of 404 (ERROR: The file requested could not be found.)

特别查看第三和第四行。

答案 1 :(得分:0)

首先检查页面上的错误

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GIS IE 6.0 Build 20080321; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; MS-RTC LM 8; GIS IE 6.0 Build 20080321)
    Timestamp: Wed, 9 Feb 2011 05:53:39 UTC


    Message: Object doesn't support this property or method
    Line: 16
    Char: 9
    Code: 0
    URI: http://concertorestaurant.creativeconnect.com.au/functions_gallery.html