Не работает скрипт, ни в одном из ie.
Здраствуйте, есть скрипт, медленно крутящий картинку, работает в хроме,фаерфоксе, сафари, но напрачь не хочет работать ни в одной версии ie.
$(document).ready(function(){ var imagesrc = 'panorama.jpg'; var probeimage = $('<img src="'+ imagesrc +'" />'); probeimage.load( function() { var imagewidth = this.width; /* imgcount - amount of images we need to rotate. */ /* instead of (+2) we could use (+1 + (screen.width % imagewidth)), but that's too complex */ /* so, one will be hiding in the left side, another would cover the empty space in the right */ var imgcount = ((screen.width - (screen.width % imagewidth)) / imagewidth) + 2; var contwidth = imgcount * imagewidth; /* since #cont is absolutely positioned, the #contrap's height would be 0. Let's set the height */ $('#contwrap').css({'height':this.height}); $('#cont').css({'width':contwidth}); $('#cont').append(probeimage); /* -1 because we have probeimage */ for (i = 0; i < imgcount - 1; i++) { $('#cont').append($('<img src="'+ imagesrc +'" />')); } function eternalmotion() { $('#cont IMG').first().animate({ marginLeft: -imagewidth }, 100000, 'linear', function() { $('#cont IMG:first').css({'marginLeft': '0'}).appendTo('#cont'); eternalmotion(); } ); } eternalmotion(); } ); //probeimage.load }); Что именно здесь не понимает ie? |
echoinsane, а что говорит отладчик?
|
Отладчик, ничего не говорит. Ну или я незнаю, что именно надо проверить и как)
|
Часовой пояс GMT +3, время: 22:10. |