0

I have a problem with lightbox 2. For some reason it doesn't work on my website when I open it in internet explorer 9. When you click on a picture the overlay is greyish and you can't close or navigate. The website is online so you can see the problem: one of my test albums. The reason it has to work on ie9 is because we need to present it at school, and the only browser there is ie9, so if it doesn't work people wouldn't be able to test it. Thanks in advance.

4

1 回答 1

2

我有 IE 8 所以我无法复制您的问题,但是当我打开您的网站时,我发现了 2 个错误。

1)。支架未正确关闭。这是更正后的代码

jQuery(document).ready(function ($) {
     //ipad and iphone fix
     if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
        $(".drop li ul").click(function(){
      });
     }
    }); // added 

2)。语法错误

Error: SyntaxError: function statement requires a name
Source File: http://tintopix.com/js/lightbox.js
Line: 351, Column: 25
Source Code:
updateImageList: function() { 

我认为灯箱的第二个错误由于第一个错误而无法正常工作,所以请更正第一个错误然后检查。我认为它会起作用。

于 2013-05-27T14:29:19.707 回答