<div id=leftdiv class=header-body style="position:absolute; overflow-y:scroll; padding-left:10px; left:0px; right:295px; top:45px; bottom:65px; border:1px gray solid;"> ... <div id=privatdiv class=header-body style="position:absolute; overflow-y:scroll; height:70px; left:0px; right:295px; bottom:65px; display:none; padding-left:10px; border:1px gray solid;"> ... заменил на <div id=leftdiv> </div> <div id=privatdiv> </div>
#leftdiv {position:absolute; overflow-y:scroll; padding-left:10px; left:6px; right:302px; top:55px; bottom:55px; border:1px gray solid;} #privatdiv {position:absolute; overflow-y:scroll; height:50px; left:6px; right:302px; bottom:55px; display:none; padding-left:10px; border:1px gray solid;}
obj1.style.bottom=(parseInt(obj1.style.bottom)+parseInt(obj2.style.height))+5+"px";
<script>//GET viriables var href=location.search.substr(1); var abcr = new Array("А","Б","В","Г","Д","Е","Ё","Ж","З","И","Й","К","Л","М","Н","О","П","Р","С","Т","У","Ф","Х","Ц","Ч","Ш","Щ","Ъ","Ы","Ь","Э","Ю","Я","а","б","в","г","д","е","ё","ж","з","и","й","к","л","м","н","о","п","р","с","т","у","ф","х","ц","ч","ш","щ","ъ","ы","ь","э","ю","я"); var abci = new Array("%C0","%C1","%C2","%C3","%C4","%C5","%A8","%C6","%C7","%C8","%C9","%CA","%CB","%CC","%CD","%CE","%CF","%D0","%D1","%D2","%D3","%D4","%D5","%D6","%D7","%D8","%D9","%DA","%DB","%DC","%DD","%DE","%DF","%E0","%E1","%E2","%E3","%E4","%E5","%B8","%E6","%E7","%E8","%E9","%EA","%EB","%EC","%ED","%EE","%EF","%F0","%F1","%F2","%F3","%F4","%F5","%F6","%F7","%F8","%F9","%FA","%FB","%FC","%FD","%FE","%FF"); for (i=0; i<abci.length; i++) { while (href.split(abci[i]).length>1) href = href.replace(abci[i], abcr[i] )}; var query=unescape(href); var badstr=new Array('<','>','"',"'",'`','%','#','\\'); for(i=0;i<badstr.length;i++) query=query.split(badstr[i]).join(); var get=new Array(); var a=query.split("&"); for(var i=0; i<a.length;i++) {var j=a[i].split("="); get[j[0]]=j[1];} var chat=get['chat']; var nick=get['nick']; var id=get['id']; var act=get['act']; var timeout=get['timeout']; var grund=unescape(get['grund']);</script>
<!-- PRIVAT FRAME --> <div id=privatdiv class=header-body style="position:absolute; overflow-y:scroll; height:70px; left:0px; right:295px; bottom:65px; display:none; padding-left:10px; border:1px gray solid;"> </div> <script><!-- /* Показываем фрейм привата если включен */ if(privatok==1) { var obj1=document.getElementById("leftdiv"); var obj2=document.getElementById("privatdiv"); obj1.style.bottom=(parseInt(obj1.style.bottom)+parseInt(obj2.style.height))+5+"px"; obj2.style.display="block"; } // --></script>
/* Приват в отдельном фрейме: 0 - выкл, 1 - вкл (необходимо настроить фреймовую систему) */ var privatok=1;
if(cmd==1 && privatok==1) {var obj=document.getElementById("privatdiv"); obj.innerHTML+="<div>"+towr+"</div>";obj.scrollTop=1000000;} else
/* Подготовка фрейма привата */ if(parent.privatok==1) {document.getElementById("privatdiv").innerHTML='';}
<style type=text/css>...</style>
<p>Тут текст ▪ (& #9642;) - числовой символ</p>