Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Скрипт для ipb перемотка страницы

Featured Replies

Posted

Всем привет и с наступающим новым годом!

Скажите пожалуйста почему у меня не работает скрипт кнопка перемотки страницы ?

У меня есть сайт на dle движке там все прекрасно работает, на ipb не хочет, чудеса какие то.

Сам скрипт вставлял в нижнюю часть страницы <body>Тут скрипт</body></html>

<script type="text/javascript">  
 jQuery(function(){  
  $("#Go_Top").hide().removeAttr("href");  
  if ($(window).scrollTop()>="250") $("#Go_Top").fadeIn("slow")  
  $(window).scroll(function(){  
  if ($(window).scrollTop()<="250") $("#Go_Top").fadeOut("slow")  
  else $("#Go_Top").fadeIn("slow")  
  });  

  $("#Go_Bottom").hide().removeAttr("href");  
  if ($(window).scrollTop()<=$(document).height()-"999") $("#Go_Bottom").fadeIn("slow")  
  $(window).scroll(function(){  
  if ($(window).scrollTop()>=$(document).height()-"999") $("#Go_Bottom").fadeOut("slow")  
  else $("#Go_Bottom").fadeIn("slow")  
  });  

  $("#Go_Top").click(function(){  
  $("html, body").animate({scrollTop:0},"slow")  
  })  
  $("#Go_Bottom").click(function(){  
  $("html, body").animate({scrollTop:$(document).height()},"slow")  
  })  
 });  
 </script>  

 <a style='position: fixed; bottom: 300px; right: 1px; cursor:pointer; display:none;'  
 href='#' id='Go_Top'>  
  <img src="__in.ucoz.org/images/icon_up.png" title="Вверх">  
 </a>  
 <a style='position: fixed; bottom: 250px; right: 1px; cursor:pointer; display:none;'  
 href='#' id='Go_Bottom'>  
  <img src="__in.ucoz.org/images/icon-down.png" title="Вниз">  
 </a>

post-10642-0-52151000-1417601313.jpg

Edited by Solovei

Ааа значит это та же проблема, ну пцц, почему ipb конфликтует, почему разработчик сразу все не предусмотрел.

Что он должен все предусматривать? Вы хотите, чтобы разработчики следили за всеми библиотеками и давали возможность подключить их без танцев с бубном? Оно никому не надо.

 

В ipb jquery используется только в АЦ + в IPContent. В остальных случаях, Вы сами должны подружить конфликтующих.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.