Мне нужна помощь с сообщением об ошибке, которое я получаю в IE6 +.Обратите внимание, что код работает нормально.
Сообщение: ожидается объектЛиния: 38Чар: 4Код: 0URI: http://localhost/dropbox/panorama/index.php?lang=gr
На самом деле в строке 38 есть следующее:
<script type="text/javascript">
$(document).ready(function(){
slideShow();
});
</script>
В строке 38 я вызываю функцию «slideShow ()» Обратите внимание, что эти функции хранятся во внешнем файле.
Содержимое внешнего файла:
$(function slideShow() {
//Set the opacity of all images to 0
$('#gallery li').css({opacity: 0.0});
//Get the first image and display it (set it to full opacity)
$('#gallery li:first').css({opacity: 1.0});
//Call the gallery imgGallery to run the slideshow, 5000: 5 seconds interval
setInterval('imgGallery()',4000);
});
$(function imgGallery() {
//Get the first image
var current = ($('#gallery li.show')? $('#gallery li.show') : $('#gallery li:first'));
//Get next image, if reached last image, start over from the first image
var next = ((current.next().length) ? (current.next()) : $('#gallery li:first'));
//Set the fade in effect for the next image
next.css({opacity: 0.0})
.addClass('show')
.animate({opacity: 1.0}, 1000);
//Hide current image
current.animate({opacity: 0.0}, 1000)
.removeClass('show');
});
Любые рекомендации?