无限滚动的砌体在ie8中不起作用

时间:2012-08-23 18:29:46

标签: jquery wordpress internet-explorer-8 wordpress-theming

当在ie8上查看页面时,它会给出以下错误:任何解决方案??

网页错误详情

用户代理:Mozilla / 4.0(兼容; MSIE 7.0; Windows NT 5.1; InfoPath.2; BRI / 2; BOIE8; ENUS) 时间戳:星期四,2012年8月23日18:18:49 UTC

消息:预期的标识符,字符串或数字 行:357 Char:4 代码:0

$(function(){

var $container = $('.two-thirds-cloumn');
$('.widgets-cout').masonry({ singleMode: true });

$container.imagesLoaded(function(){
  $container.masonry({
    itemSelector: '.brick',
    columnWidth: 485
  });
});

$container.infinitescroll({
  navSelector  : '.nav-previous',    // selector for the paged navigation 
  nextSelector : '.nav-previous a',  // selector for the NEXT link (to page 2)
  itemSelector : '.brick',     // selector for all items you'll retrieve
  loading: {
      finishedMsg: 'No more pages to load.',
      img: 'http://i.imgur.com/6RMhx.gif'
    },
  behavior: 'twitter',
  },

  // trigger Masonry as a callback
  function( newElements ) {
    // hide new items while they are loading
    var $newElems = $( newElements ).css({ opacity: 0 });
    // ensure that images load before adding to masonry layout
    $newElems.imagesLoaded(function(){
      // show elems now they're ready
      $newElems.animate({ opacity: 1 });
      $container.masonry( 'appended', $newElems, true ); 
    });
  }
);


});

0 个答案:

没有答案