Показать сообщение отдельно
  #9 (permalink)  
Старый 03.10.2018, 22:21
Аватар для рони
Профессор
Отправить личное сообщение для рони Посмотреть профиль Найти все сообщения от рони
 
Регистрация: 27.05.2010
Сообщений: 33,068

DEVIL,
примерно так ...
<script>
  if ($("#pagesBlock1").find(".swchItem:contains('»')").text() == '»') {
  $("#pagesBlock1").after('<div id="nextCont" class="input_submit alt"><div class="u_pos"></div></div>');
  };
var more = true;
$(window).scroll(function() {
if(more) return;
if($('.u_pos').position().top-$(window).scrollTop() < 1000) {
Conte.to()
}
});

  Conte = {
  to:function(){
  $("#nextCont").html('<div align="center"><img src="/.s/img/icon/ajsml.gif" border="0" /></div>');
  nextik = $("#pagesBlock1").find(".swchItem:contains('»')").attr('onclick').toString();
  num = nextik.match(/\d/);
  $.get('/news/'+num, function(next){
  $("#conter").append( $("#conter", next).html() );
  $("#pagesBlock1").html( $("#pagesBlock1", next).html() );
  $("#nextCont").html('<div class="u_pos"></div>');
  if ($("#pagesBlock1", next).find(".swchItem:contains('»')").html() == null) { $("#nextCont").fadeOut(); };
  });
  }
  }
$("#loader1").click(function() {
more = false;
$(this).hide();
Conte.to()
});
/*by Вовчик*/
  </script>
Ответить с цитированием