Показать сообщение отдельно
  #5 (permalink)  
Старый 14.05.2016, 10:43
Интересующийся
Отправить личное сообщение для Николай_777 Посмотреть профиль Найти все сообщения от Николай_777
 
Регистрация: 28.11.2015
Сообщений: 13

<script type="text/javascript">
		jQuery(document).ready(function () {
			
			if (typeof (not_blocked) == 'undefined' || !not_blocked) {
				var content_w = 1000;
				var side_width = (window.innerWidth - content_w) / 2;
				width = width > 0 ? width : 0;
				/* Брендирование */
				jQuery('body').css({
					'background': "url('http:// Фон сайта') no-repeat scroll center top #000",
					'padding-top': "150px"
				});
				// добавим ссылки
				jQuery('body').prepend(
					'<a id="ar_t12" style="cursor: pointer; z-index: 1; position: absolute; top: 0px; left: 0px; width: 100%; height: 150px;" href="http://ссылки кудато" target="_blank"><img src="http://ссылки кудато" width="1" height="1" /></a>'
				);
				jQuery('body').prepend(
					'<a id="ar_r12" style="cursor: pointer; z-index: 1; position: absolute; top: 0px; right: 0px; left: auto; width: ' + side_width + 'px; height: 850px;" href="http://ссылки кудато" target="_blank"></a>'
				);
				jQuery('body').prepend(
					'<a id="ar_l12" style="cursor: pointer; z-index: 1; position: absolute; top: 0px; left: 0px; width: ' + side_width + 'px; height: 850px;" href="http://ссылки кудато" target="_blank"></a>'
				);

	
				jQuery(window).resize(function () {
					var side_width = (window.innerWidth - content_w) / 2;
					side_width = side_width > 0 ? side_width : 0;
					jQuery('#ar_r12, #ar_l12').css('width', side_width);
				});
			}
		});
	</script>
Ответить с цитированием