Атаман Posted February 25, 2015 Share Posted February 25, 2015 Не могу сделать задний фон кликабельный. Код перекрывает форум, куда не нажмешь, перекидает на страницу рекламодателя, и так в 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> Link to comment Share on other sites More sharing options...
Viktar83 Posted February 26, 2015 Share Posted February 26, 2015 Хм, может, проблема в слое #ipbwrapper (смотря какой стиль Вы используете. А так этот слой тоже растянут на весь экран, поэтому и перекрывает. Тут надо в верстке покопаться). Вариант: попробовать реализовать на Jquery, что-то вроде:$('body').click(function(e){ if (e.target === this) { window.location = "link.html" } }); 1 Link to comment Share on other sites More sharing options...
Атаман Posted February 26, 2015 Author Share Posted February 26, 2015 Уже разобрался, спасибо. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now