2013-05-27 55 views
0

我對燈箱2有問題。 由於某種原因,當我在Internet Explorer 9中打開它時,它無法在我的網站上工作。 當您單擊圖片時,疊加層變灰,您無法關閉或導航。 該網站在線,所以你可以看到問題:one of my test albums。 它必須在ie9上工作的原因是因爲我們需要在學校展示它,並且唯一的瀏覽器是ie9,所以如果它不起作用,人們將無法測試它。 在此先感謝。在Internet Explorer 9中的燈箱2

+0

由它的外觀你有一些缺少')'。請檢查您的控制檯是否存在錯誤並首先解決它們。 – Spokey

回答

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() { 

我覺得第二個錯誤的燈箱不工作,因爲第一個錯誤,所以請糾正第一個錯誤,然後檢查。我認爲它會奏效。

+0

它的工作,謝謝! –