Skip to content

кликабельный фон ip.board 3.4.7

Не могу сделать задний фон кликабельный.

Код перекрывает форум, куда не нажмешь, перекидает на страницу рекламодателя, и так в 2х вариантах.

 

Вариант 1

 

Добавляю

В css

#_link {
height:280px;
margin-top:40px;
position:absolute;
text-indent:-9999px;
width:75%;
z-index:1;
}

 

после body

 

<a href="ваша ссылка" id="_link" target="_blank"></a>

 

Вариант 2

 

<a id="_click" target="_blank" style="position: absolute; display: block; left: 0px; top: 0px; width: 100%; height: 100%;" href=""></a>

Featured Replies

Хм, может, проблема в слое #ipbwrapper (смотря какой стиль Вы используете. А так этот слой тоже растянут на весь экран, поэтому и перекрывает. Тут надо в верстке покопаться).

 

Вариант: попробовать реализовать на Jquery, что-то вроде:

$('body').click(function(e){
   if (e.target === this) {
       window.location = "link.html"
   }
});

  • Author

Уже разобрался, спасибо.

Create an account or sign in to comment

Account

Navigation

Search

Search

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.