| 
 
				
			Новый Мини Чат для Dominion 
 Установка:
 В настройках модуля чата активируем Доп. поле 1
 Создаем новый блок в конструкторе, в блок ставим код:
 
 
 Code <div id="m_chat" class="b_block">$CHAT_BOX$</div>
 В вид материалов чата ставим:
 
 Code <link type="text/css" rel="StyleSheet" href="http://www.xa-kep.do.am/imgd/chat/css/style_mchat.css">   <div id="chat_mess" class="b_block">
 <div class="cBlock$PARITY$" style="min-height:62px;">
 <div style="float: left; width:58px; height:58px; padding: 1px 1px 1px 1px; margin-right:3px; margin-bottom:1px;">
 <div align="center">
 <?if($AVATAR_URL$)?>
 <img alt="" src="$AVATAR_URL$" border="0" width="58" height="58"/>
 <?else?>
 <img alt="" src="/profile/noavatar.gif" border="0" width="58" height="58"/>
 <?endif?>
 </div>
 </div>
 <div class="cMessage" style="text-align:left;">
 <div><a href="$PROFILE_URL$" title="$USERNAME$" rel="nofollow"><img alt="" src="http://s44.ucoz.net/img/icon/profile.png" width="13" border="0" style="vertical-align:-2px"/></a> <a href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus()
 ;parent.window.document.getElementById('mchatMsgF').value+='[i]$NAME$[/i], ';return false;">
 <b>$NAME$</b> [$TIME$]</b></a></div>
 <?if($CUSTOM1$)?><font color=$CUSTOM1$>$MESSAGE$</font><?else?>$MESSAGE$<?endif?></div>
 </div>
 </div>
 В форму добавления сообщения:
 
 
 Code <!-- Form message -->   <link type="text/css" rel="StyleSheet" href="http://www.xa-kep.do.am/imgd/chat/css/style_mchat.css">
 <div id="chat_form">
 <?if($USER_LOGGED_IN$)?>
 <div >
 <div id="chat_bb_button"> <a href="javascript://" rel="nofollow" onclick="document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();return false;" title="Обновить"><img src="http://www.xa-kep.do.am/imgd/chat/pict/ref.png" width="56" height="22" /></a> <img src="http://www.xa-kep.do.am/imgd/chat/pict/pl.png" width="3" height="25" /> <a href="javascript://" rel="nofollow" onclick="new _uWnd('Sml',' ',-250,-350,{autosize:0,closeonesc:1,resize:0},{url:'/index/35-23-2'});return false;" title="Смайлики"> <img src="http://www.xa-kep.do.am/imgd/chat/pict/smiles.png" width="56" height="22" /></a> <img src="http://www.xa-kep.do.am/imgd/chat/pict/pl.png" width="3" height="25" /> <a href="javascript://" rel="nofollow" onclick="window.open('/index/17','cbbcodes','scrollbars=1,width=550,height=450,left=0,top=0');return false;" title="ББ-коды"><img src="http://www.xa-kep.do.am/imgd/chat/pict/bbcodes.png" width="56" height="22" /></a> <img src="http://www.xa-kep.do.am/imgd/chat/pict/pl.png" width="3" height="25" /> <a href="javascript://" rel="nofollow" onclick="window.open('/mchat/0-1','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0');return false;" title="Модерация"><img src="http://www.xa-kep.do.am/imgd/chat/pict/moders.png" width="56" height="22" /></a>
 </div>
 </div>
 <div class="clear"></div>
 <div id="chat_form_mess">
 <textarea name="mcmessage" onkeyup="countMessLength();" onfocus="countMessLength();" rows="3" class="form_mess b_block" id="mchatMsgF"></textarea>
 </div>
 <div class="clear"></div>
 <?if($FLD_SECURE$)?>
 <div id="chat_secury" class="b_block">
 <div class="pole">$FLD_SECURE$</div>
 <div class="pict">$IMG_SECURE$</div>
 </div>
 <?endif?>
 </td>
 </table>
 <?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?><table border="0" cellpadding="1" cellspacing="1"><tr><td width="50%"><select size="-1" title="Цвет сообщения" class="mchat" name="custom1"><option value="0" selected="selected" > Цвет сообщения </option><option value="#0000FF" >Синий</option><option value="#FF0000" >Красный</option><option value="#FFFF00" >Желтый</option><option value="#CD6600" >Оранжевый</option><option value="#6699FF" >Голубой</option><option value="#00FF00" >Зелёный</option></select><select id="mchatRSel" onchange="setT7174(this);" class="mchat" size="-1" title="Автообновление" style="font-size:9pt;"><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><?endif?>
 <input style="width:85px" input class="mchat" type="submit" value="Ok"> </table>
 <?else?>
 <div align="center" style="border: 1px dotted #444;">Необхдима регистрация!</div>
 <?endif?>
 </div>
 <!-- /Form message -->
 
 
 
  Скачать Новый Мини Чат для Dominion
 Зеркало Новый Мини Чат для Dominion
 
 
 Источник: http://armp3.ru/
 |