Копируйте шаблон и вставьте в копию сразу после строки
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
|
несколько строчек кода...
?>
<st yle>
.topscroll {
position: relative;
width: 100%;
height: 20px;
margin-bottom: 15px;
overflow-x: scroll;
}
.fake {
height: 1px;
}
</style>
<sc ript>
$(function(){
var container = $('#bx_visual_structure');
var content = $("#bx_str_level2_table");
var topscroll = $('.topscroll');
$('.fake').width(content.width());
$('.topscroll').width(container.width());
topscroll.scroll(function(e){
container.scrollLeft($(this).scrollLeft());
});
container.scroll(function(e){
topscroll.scrollLeft($(this).scrollLeft());
});
});
</sc ript>
<div class="topscroll">
<div class="fake"></div>
</div>
<?
|
Вуаля. Теперь есть скрол сверху, повторяющий нижний! Сколько было головняка...
Надеюсь включат в сборку следующую...хотя..