我不知道爲什麼,但IE6,IE7在我嘗試網站時發現錯誤「未定義爲空或不是對象」。 網站:http:http://eco-impulse.com.ua/「未定義爲空或不是對象」在IE中
jQuery代碼(代碼begining):
$(document).ready(function() {
var oldObjId = '';
$('.slide-nav a').bind("click", function (e) {
$(".slide-nav a").removeClass('active-n');
$(this).addClass('active-n');
var ObjId = $(this).attr('id');
ObjId = parseInt(ObjId, 10);
if (oldObjId != ObjId) {
if (ObjId == 2) {
$("img.slide-img-1").animate({
marginLeft: "-100",
}, 500, function() {});
} else if (ObjId != 1) {...
全:http://eco-impulse.com.ua/general.js
只是一個黑暗的鏡頭:jquery 1.10不兼容IE6和7. – reporter
@reporter在jQuery 2.0中刪除了IE7支持。 1.x仍然支持它。 – Barmar
@Barmar好的,謝謝。 – reporter