Мини-чат
User Name Password


Регистрация на www.osrg-portal.ru поможет Вам тем что Вы сможете полноценно пользоваться большинством функция данного портала, которые запрещены обычным гостям с Рунэта. Вы так же сможете скачивать файлы не с удаленного сервера а напрямую на большой скорости с сайта, сможете предоставлять свои услуги, обмениваться информацией.
https://osrg-portal.ru
Открыть форму входа

Реклама на портале


  • Страница 1 из 1
  • 1
Эффект для рекламы 125x125
WOOOKAAA Дата: Четверг, 16.02.2023, 16:14 | Сообщение # 1
Награды
/MEgAJIu/zapomosh.png За 20 постов За 50 Постов За 60 Постов За 30 постов За 40 постов За 65 постов За 80 постов За 95 постов
Сообщений: 126
Подключаем jQuery в HEAD сайта где будут находиться баннера.

Код
<script src="https://osrg-portal.ru/Script/4/jquery-1.3.1.min.js"></script>  
<script src="https://osrg-portal.ru/Script/4/jquery.easing.1.3.js"></script>


Если данные библиотеки уже подключены их дважды подключать не нужно.

Далее сам код JS который отвечает за эффект


Код
<script>  
$(document).ready(function() {
  var style_in = 'easeOutBounce';
  var style_out = 'jswing';
  var speed_in = 1000;
  var speed_out = 300;  
  var neg = Math.round($('.qitem').width() / 2) * (-1);  
  var pos = neg * (-1);  
  var out = pos * 2;
  $('.qitem').each(function () {
  url = $(this).find('a').attr('href');
  img = $(this).find('img').attr('src');
  alt = $(this).find('img').attr('img');
  $('img', this).remove();
  $(this).append('<div class="topLeft"></div><div class="topRight"></div><div class="bottomLeft"></div><div class="bottomRight"></div>');
  $(this).children('div').css('background-image','url('+ img + ')');
  $(this).find('div.topLeft').css({top:0, left:0, width:pos , height:pos});  
  $(this).find('div.topRight').css({top:0, left:pos, width:pos , height:pos});  
  $(this).find('div.bottomLeft').css({bottom:0, left:0, width:pos , height:pos});  
  $(this).find('div.bottomRight').css({bottom:0, left:pos, width:pos , height:pos});  
  }).hover(function () {
  $(this).find('div.topLeft').stop(false, true).animate({top:neg, left:neg}, {duration:speed_out, easing:style_out});  
  $(this).find('div.topRight').stop(false, true).animate({top:neg, left:out}, {duration:speed_out, easing:style_out});  
  $(this).find('div.bottomLeft').stop(false, true).animate({bottom:neg, left:neg}, {duration:speed_out, easing:style_out});  
  $(this).find('div.bottomRight').stop(false, true).animate({bottom:neg, left:out}, {duration:speed_out, easing:style_out});  
  },
  function () {
  $(this).find('div.topLeft').stop(false, true).animate({top:0, left:0}, {duration:speed_in, easing:style_in});  
  $(this).find('div.topRight').stop(false, true).animate({top:0, left:pos}, {duration:speed_in, easing:style_in});  
  $(this).find('div.bottomLeft').stop(false, true).animate({bottom:0, left:0}, {duration:speed_in, easing:style_in});  
  $(this).find('div.bottomRight').stop(false, true).animate({bottom:0, left:pos}, {duration:speed_in, easing:style_in});  
  }).click (function () {
  window.location = $(this).find('a').attr('href');  
  });
});
</script>


Это в Ваш CSS :

Код
.qitem {width:125px;height:125px;border:4px solid #222;margin:2;background: url('https://osrg-portal.ru/Script/4/bg.gif') no-repeat;overflow:hidden;cursor:hand;position:relative;float:left;cursor:pointer;}
.qitem img {border:0;position:absolute;z-index:200;}
.qitem .caption {position:absolute;z-index:0;color:#ccc;display:block;}
.qitem .caption h4 {font-size:14px;padding:10px 5px 0 8px;margin:0;color:#CCD718;}
.qitem .caption p {font-size:12px;padding:3px 5px 0 8px;margin:0;}
.topLeft, .topRight, .bottomLeft, .bottomRight {position:absolute;background-repeat: no-repeat;float:left;}
.topLeft {background-position: top left;}  
.topRight {background-position: top right;}  
.bottomLeft {background-position: bottom left;}  
.bottomRight {background-position: bottom right;}


Сам код для баннера :

Код
<div class="qitem">  
<a href="/"><img src="https://osrg-portal.ru/images/MecTo_CBo6ogHo.png" width="125" height="125"/></a>  
<span class="caption"><h4>Up-Rise.Ru</h4><p>Макет и Верстка, разработка сайтов, только для uCoz конструктора.</p></span>  
</div>  
   
<div class="qitem">  
<a href="/"><img src="https://osrg-portal.ru/images/MecTo_CBo6ogHo.png" width="125" height="125"/></a>  
<span class="caption"><h4>Up-Script.Ru</h4><p>Только новые, и только уникальные скрипты для uCoz системы.</p></span>  
</div>
  • Страница 1 из 1
  • 1
Поиск:


Статистика Форума
Лучшие пользователи
Уважаемые пользователи
Популярные темы
Недавно обновленные темы
WOOOKAAA Постов [ 126 ]
REDANGEL Постов [ 18 ]
cdriper Постов [ 0 ]
MikhailRS Постов [ 0 ]
cdriper Репутация [ 0 ]
MikhailRS Репутация [ 0 ]
WOOOKAAA Репутация [ 0 ]
REDANGEL Репутация [ 0 ]
Наш сайт! [ 0 ]
Повышение, понижение ... [ 0 ]
Уведомление о ЛС + ав... [ 0 ]
Плавное увеличении ка... [ 0 ]
Гостевая книга-комнат... [ 0 ]
BBCODE НА ФОРУМ [ 0 ]
Мини-чат для uCoz v.1 [ 0 ]
Навигация на форум [ 0 ]
СКРИПТ МИНИ-ЧАТ НА ФО... [ 0 ]
Простой скрипт которы... [ 0 ]
Наш сайт! [ 0 ]
Повышение, понижение ... [ 0 ]
Уведомление о ЛС + ав... [ 0 ]
Плавное увеличении ка... [ 0 ]
Гостевая книга-комнат... [ 0 ]
BBCODE НА ФОРУМ [ 0 ]
Мини-чат для uCoz v.1 [ 0 ]
Навигация на форум [ 0 ]
СКРИПТ МИНИ-ЧАТ НА ФО... [ 0 ]
Простой скрипт которы... [ 0 ]

uCoz
Администрация не несёт ответственности за содержащиеся файлы на данном портале.
Все материалы на сайте, принадлежат, исключительно их владельцам!
Дизайн полностью принадлежит "Up-Rise.Ru",Видоизменение шаблона "WOOOKAAA".
Banners of ModDB