1) Создаем в файловом менеджере папку ajax_okna
2) Загружаем в нее документы из архива.
3) ПУ--Управление дизайном--Страницы сайта. И в head ставим это:
<!-- Чат -->
Code
<div style="position:absolute;position:fixed;bottom:1;right:1;">
<div id="chat" style="display: none;"><table border="0"
cellpadding="0" cellspacing="0" width="300" style="border: 1px solid
gray; background: #f6f6f6;">
<tr><td height="32"
background="http://k-o-t.net/images2/chat300.png"></td></tr><tr><td
style="background: #f6f6f6; text-align: center; border-top: 1px solid
gray;">
<iframe id="mchatIfm2"
style="width:100%;height:300px" frameborder="0" scrolling="auto"
hspace="0" vspace="0" allowtransparency="true"
src="/mchat/"></iframe>
<script type="text/javascript">
function
sbtFrmMC991(f){$('#mchatBtn').css({display:'none'});$('#mchatAjax').css({display:''});_uPostForm('MCaddFrm',{type:'POST',url:'/mchat/?422832935.310169'});}
function countMessLength(){var rst =
200-$('#mchatMsgF').val().length;if
(rst<0){rst=0;$('#mchatMsgF').val($('#mchatMsgF').val().substr(0,200));}$('#jeuwu28').html(rst);}
var tID7174=-1;var tAct7174=false;
function setT7174(s){var
v=parseInt(s.options[s.selectedIndex].value);document.cookie="mcrtd="+s.selectedIndex+";
path=/";if(tAct7174){clearInterval(tID7174);tAct7174=false;}if(v>0){tID7174=setInterval("document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();",v*1000);tAct7174=true;}}
function initSel7174() {var
res=document.cookie.match(/(\W|^)mcrtd=([0-9]+)/);if(res){s=$("#mchatRSel")[0];;s.selectedIndex=parseInt(res[2]);setT7174(s);}$("#mchatMsgF").bind("keydown",function(e){if(e.keyCode==13
&& e.ctrlKey &&
!e.shiftKey){e.preventDefault();sbtFrmMC991();}})}
</script>
<form style="margin:0;padding:0;" id="MCaddFrm" onsubmit="sbtFrmMC991();return false;">
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td>
<input type="text" maxlength="60" name="uname" size="8"
class="mchat" id="mchatNmF" value="Имя" title="Имя"
onfocus="if(this.value==$(this).attr('title')){this.value='';}"
style="width:100%;">
</td><td align="center">
<select id="mchatRSel" onchange="setT7174(this);" class="mchat"
size="1" title="Автообновление" style="font-size:7pt;"><option
value="0">--</option><option value="15">15
сек</option><option value="30">30
сек</option><option value="60">1
мин</option><option value="120">2
мин</option></select>
</td></tr><tr><td width="206">
<textarea name="mcmessage" class="mchat" id="mchatMsgF"
title="Сообщение" onkeyup="countMessLength();"
onfocus="countMessLength();"
style="height:40px;width:100%;resize:none;"></textarea></td><td
align="center" valign="top" width="60">
<table border="0" cellpadding="0" cellspacing="0" width="60">
<tr><td width="60" align="center" valign="top"><div
style="font-size:10px;"><b
id="jeuwu28">200</b></div></td></tr>
<tr><td width="60" align="center" valign="bottom"><input
value="Отправить" class="mchat" id="mchatBtn" type="submit"><img
style="display: none;" id="mchatAjax"
src="http://k-o-t.net/images2/10-0.gif" border="0" width="56"
height="21"></td></tr></table>
</td></tr></table>
<input type="hidden" name="numa" id="numa832" value="0"><input
type="hidden" name="a" value="18"><input type="hidden"
id="ajaxFlag" name="ajax" value="1" /></form>
<script type="text/javascript">initSel7174();</script>
</td></tr></table></div>
<div style="height: 22px; width: 298px; border: 1px solid gray; background: #f6f6f6; margin-top: 1px;">
<div style="float:right; height: 18px; width: 48px; border-left:
1px solid gray;text-align: center; padding-top:
4px;">23:09</div>
<div style="float: left;
padding-top: 3px;"><a href="javascript://" rel="nofollow"
onclick="document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();return
false;" title="Обновить"><img
src="http://k-o-t.net/images2/arrow-circle-double-135.png"
alt="Обновить" border="0" width="16" height="16" style="padding-left:
3px;"></a><a href="javascript://" rel="nofollow"
onclick="new _uWnd('Sml','
',-250,-350,{autosize:0,closeonesc:1,resize:0,icon:'http://k-o-t.net/images2/emoticon_smile.png'},{url:'/index/35-0-2'});return
false; "><img src="http://k-o-t.net/images2/emoticon_smile.png"
height="16" width="16" border="0" alt="Смайлы" style="padding-left:
3px;"></a><a href="javascript://" rel="nofollow"
onclick="new _uWnd('Cntrl','Управление
сообщениями',580,600,{autosize:0,resize:0,icon:'http://k-o-t.net/images2/advancedsettings.png'},{url:'/ajax_okna/mchatcontrol.html',
xml: false});return false; "><img
src="http://k-o-t.net/images2/advancedsettings.png" height="16"
width="16" border="0" alt="Управление мини-чатом" style="padding-left:
3px;"></a></div>
<div style="margin-top: 4px;
text-align:center;"><a href="javascript://"
onclick="$('#chat').slideToggle(2000)">МИНИ-ЧАТ</a></div>
</div></div>
<!-- End Чат -->
Комментарии: