User Name Password


Регистрация на www.dolg-portal.ucoz.club поможет Вам тем что Вы сможете полноценно пользоваться большинством функция данного портала, которые запрещены обычным гостям с Рунэта. Вы так же сможете скачивать файлы не с удаленного сервера а напрямую на большой скорости с сайта, сможете предоставлять свои услуги, обмениваться информацией.
dolg-portal.ucoz.club
Открыть форму входа
С 14 мая 2025 года вход на сайт через логин и пароль!

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


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

Код
<script src="https://dolg-portal.ucoz.club/Script/4/jquery-1.3.1.min.js"></script>  
<script src="https://dolg-portal.ucoz.club/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://dolg-portal.ucoz.club/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://dolg-portal.ucoz.club/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://dolg-portal.ucoz.club/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 Постов [ 64 ]
Snake_019 Постов [ 5 ]
STALKER Постов [ 0 ]
Snake_019 Репутация [ 1 ]
WOOOKAAA Репутация [ 0 ]
STALKER Репутация [ 0 ]
Veller - Вступление в... [ 4 ]
Наша кнопка [ 3 ]
Новогодняя веточка с ... [ 1 ]
Мы в ТОП [ 1 ]
Проблеммы на сервере [ 0 ]
Mech Arena [ 0 ]
Порядок подачи заявле... [ 0 ]
Порядок подачи заявле... [ 0 ]
Скрипт Наша кнопка (б... [ 0 ]
Мини чат [ 0 ]
Проблеммы на сервере [ 0 ]
Mech Arena [ 0 ]
Порядок подачи заявле... [ 0 ]
Порядок подачи заявле... [ 0 ]
Наша кнопка [ 3 ]
Скрипт Наша кнопка (б... [ 0 ]
Мини чат [ 0 ]
Veller - Вступление в... [ 4 ]
График работы игровых... [ 0 ]
Наши игровые сервера! [ 0 ]

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