diff options
author | 2013-01-01 18:18:05 +0700 | |
---|---|---|
committer | 2013-01-01 18:18:05 +0700 | |
commit | 84e5ac3a172e15f11b04203cf9e93c9d5c8174ed (patch) | |
tree | 31e0a38f4d494bfc0d9772714d3f17ab599305e7 /web | |
parent | d95df2184dbb9931db3a5eea0f4ea41a59ca4214 (diff) |
Yandex advertising
Diffstat (limited to 'web')
-rw-r--r-- | web/scripts3.js | 5 | ||||
-rw-r--r-- | web/style3.css | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/web/scripts3.js b/web/scripts3.js index 8a33351e..ca1fafa1 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -391,14 +391,19 @@ $(document).ready(function() { $(window).scroll(function() { var windowTop = $(window).scrollTop(); var column=$('#column'); + var rcol=$('#rcol'); if (stickyTop < windowTop) { if(column.hasClass('fix')==false) { column.removeClass('abs'); column.addClass('fix'); + rcol.removeClass('abs'); + rcol.addClass('fix'); } } else if(column.hasClass('fix')==true) { column.removeClass('fix'); column.addClass('abs'); + rcol.removeClass('fix'); + rcol.addClass('abs'); } }); } diff --git a/web/style3.css b/web/style3.css index 8e8e82e8..6f0b42bf 100644 --- a/web/style3.css +++ b/web/style3.css @@ -92,7 +92,7 @@ hr { height: 1px; background: #CCC; } /********/ -#rcol { float: left; margin-left: -200px; } +#rcol { width: 190px; top: 0; margin: 10px 0 0 810px; padding-top: 10px; overflow: hidden; font-size: smaller; } /********/ @@ -134,8 +134,10 @@ hr { height: 1px; background: #CCC; } .msg-header { margin-bottom: 6px; } .msg-ts { clear: both; float: none; margin: 0 0 4px 58px; } .msg-txt { clear: both; margin: 8px 0 0 0; } + .msg-media { overflow: scroll; } .msg-media,.msg-links,.msg-comment,.msg-comments,.msg-recomms { margin-left: 0px; } .fix,.abs { position: static; } - #column { clear: both; margin: 0 auto; width: 50%; } + #column { clear: both; margin: 0 3%; width: 44%; float: left; } + #rcol { float: left; width: 44%; margin: 20px 3% 0 3%; } }
\ No newline at end of file |