Николай_777,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<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;
/* Брендирование */
var url = ['http://www.top-4f.ru/img/8975.jpg','http://www.top-4f.ru/_ld/0/s58345627.jpg'],
rgb = ['rgb(0, 0, 0)','rgb(242, 238, 226)'],
tt = ['http://','http://'], src = ['http://javascript.ru/forum/images/smilies/unsure.gif','http://javascript.ru/forum/images/smilies/dance3.gif'], ttext = ["aaaa","cccc"],
rr = ['http://','http://'], rtext = ["2222","kkkk"],
ll = ['http://','http://']; ltext = ["tttt","uuuuu"],
num = url.length * Math.random()|0;
url = url[num];
rgb = rgb[num];
tt = tt[num]; src = src[num]; ttext = ttext[num];
rr = rr[num]; rtext = rtext[num];
ll = ll[num]; ltext = ltext[num];
jQuery('body').css({
'background': "url('"+url+"') no-repeat scroll center top " + rgb,
'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="'+tt+'" target="_blank"><img src="'+src+'" width="70" height="70" />'+ttext+'</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="'+rr+'" target="_blank">'+rtext+'</a>'
);
jQuery('body').prepend(
'<a id="ar_l12" style="cursor: pointer; z-index: 1; position: absolute; top: 100px; left: 0px; width: ' + side_width + 'px; height: 850px;" href="'+ll+'" target="_blank">'+ltext+'</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>
</head>
<body>
</body>
</html>