在Internet Explorer中出現問題......當然。 我在其中測試過的每一個瀏覽器都很棒... 我希望有人能幫助我 基本上,如果引用者不是我們顯示simplemodal彈出窗口。SimpleModal IE8問題
<!-- Init Age Verification Content -->
<div class="age" id="verify">
<div><img src="/image/white.png"></img></div>
<div id="noman">ARE YOU OVER 18?</div>
<div>
<p> If not, leave now and we wont tell your mom.
</br> By continuing you agree you are 18 or older.
</p>
</div>
<div id="YN">
<a href="javascript:window.location.href=window.location.href" id="old">Yes</a>
<a href="http://www.sendoff.com" rel="nofollow" id="young">No</a>
</div>
</div>
<!-- If previous page wasnt from us... Verify -->
<script>
if (document.referrer == null || document.referrer.indexOf(window.location.hostname) < 0) {
$("#verify").modal({opacity:85, position: ["20%",""], onOpen: function (dialog) {
dialog.overlay.fadeIn('slow', function() {
dialog.container.slideDown('slow', function() {
dialog.data.fadeIn('slow');
return false;
});
});
}});
}
</script>
但我不斷收到這個錯誤在IE8:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Tue, 16 Jul 2013 12:14:28 UTC
Message: Not implemented
Line: 454
Char: 7
Code: 0
URI: http://www.example.com/catalog/view/javascript/jquery/jquery.simplemodal-1.4.4.js
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://www.example.com/
感謝您的幫助提前傢伙!
你見過[這個錯誤報告]你的腳本(https://code.google.com/p/simplemodal/issues/detail?id = 7)?嘗試更改'ieQuirks = $ .browser.msie &&!$。boxModel;'爲'ieQuirks = jQuery.support.boxModel;'? – glomad