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.

Как сделать стрелку в верх

Featured Replies

Posted

Скажите пожалуйста, как сделать такое.
post-24080-0-75658300-1416701491_thumb.p

Edited by Boar

Та кнопка не работает.. ошибка какая-то 

 

index.php:254 Uncaught ReferenceError: jQuery is not defined
index.php:606 Uncaught TypeError: Cannot set property 'modPerms' of undefined
 
<script type="text/javascript">
   jQuery(document).ready(function(){
  jQuery('body').append("<div class='scrolltotop'><div class='scrolltotop__side'></div><div class='scrolltotop__arrow'></div></div>");
 
 

Absurd
В globalTeaple (Шаблоны) перед тегом </head> вставить код 

<script type="text/javascript">
   jQuery(document).ready(function(){
			   jQuery('body').append("<div class='scrolltotop'><div class='scrolltotop__side'></div><div class='scrolltotop__arrow'></div></div>");
          jQuery(window).scroll(function(){
            if (jQuery(this).scrollTop() > 350) {
                   jQuery('.scrolltotop').fadeIn();
            } else {
                   jQuery('.scrolltotop').fadeOut();
            }
        });
           jQuery('.scrolltotop').click(function(){
              jQuery("html, body").animate({ scrollTop: 0 }, 600);
            return false;
        });
    });0
</script>



Потом я вставил в (CSS) ipb_styles.css, в самый низ - этот код

.scrolltotop {
	display:none;
	position:fixed;
	width:3%;
	top:0;
	left:0;
	height:100%
	;z-index:9000;
	cursor:pointer
}

.scrolltotop__side {
	position:fixed;
	width:3%;
	height:100%;
	top:0;
	left:0;
	background: black;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter:alpha(opacity=0.2);
	-moz-opacity:0.1;
	-khtml-opacity:0.1;
	opacity:0.1
}

.scrolltotop__arrow {
	position:fixed;
	width:3%;
	height:100%;
	top:50px;
	left:0;
	background:url(__typicall-cs.ru/totop.png) top no-repeat;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0.4)";
	filter:alpha(opacity=0.4);
	-moz-opacity:0.4;
	-khtml-opacity:0.4;
	opacity:0.4
}


После этого вставил код в IncludeJS (Шаблоны) в самый низ

<script type="text/javascript" src='__code.jquery.com/jquery-1.10.1.min.js'></script>
<script type="text/javascript">
  $.noConflict();
</script>

Edited by Zyablik

  • 3 месяца спустя...

Как сделать что бы фон был белый? под стрелочкой.

Найти

.scrolltotop__side {
	position:fixed;
	width:3%;
	height:100%;
	top:0;
	left:0;
	background: black;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter:alpha(opacity=0.2);
	-moz-opacity:0.1;
	-khtml-opacity:0.1;
	opacity:0.1
}
Заменить на

.scrolltotop__side {
	position:fixed;
	width:3%;
	height:100%;
	top:0;
	left:0;
	background: white;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter:alpha(opacity=0.2);
	-moz-opacity:0.1;
	-khtml-opacity:0.1;
	
}
Итог:

post-2770-0-62443100-1425811443_thumb.pn

  • 2 years later...
В 23.11.2014 в 13:27, Zyablik сказал:

Absurd
В globalTeaple (Шаблоны) перед тегом </head> вставить код 

 

Скрытый контент



Потом я вставил в (CSS) ipb_styles.css, в самый низ - этот код

 

Скрытый контент


После этого вставил код в IncludeJS (Шаблоны) в самый низ

 

Скрытый контент

 

Сделал все четко по инструкции не появилось ничего!... кеш обновлял и чистил! кто поможет?

  • 2 месяца спустя...

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.