В вид материалов:
Code
<div id="chat_mess" class="b_block">
<div class="cBlock$PARITY$" style="min-height:52px;"> <div style="float: left; width:48px; height:48px; padding: 1px 1px 1px 1px; margin-right:4px; margin-bottom:1px;">
<div class="cMessage" style="text-align:left;"><a href="$PROFILE_URL$" title="$USERNAME$" rel="nofollow"><img src="$AVATAR_URL$" width="50" border="0" ></a><img src="/profile/images/noavatar.png" width="50" border="0" /> </div></div> <a href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus();parent.window.document.getElementById('mchatMsgF').value+='$NAME$, ';return false;"><div class="cMessage" style="text-align:left;"><b>$NAME$</b></a><div style="float:right;font-size:8px;"> $TIME$</div> </div>
<div class="cMessage" style="text-align:justify;">$MESSAGE$</div>
</div>
</div>
и в форму добавления:
Code
<div id="chat_form">
<div id="chat_bb" class="b_block">
<div id="chat_bb_button"> <center><a href="javascript://" rel="nofollow" onclick="document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();return false;" title="Обновить"><img src="/images/icon-chat/fresh.png" width="40" height="18" /></a> <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="/images/icon-chat/sml.png" width="40" height="18" /> <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="/images/icon-chat/bbcod.png" width="40" height="18"" /></a> <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="/images/icon-chat/dlt.png" width="40" height="18" /></a> </div> </div></center> <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>
<div id="chat_form_button" class="b_block"><div><input type="submit" value="ОТПРАВИТЬ" class="mchat" id="mchatBtn" /></div>
<div align="center"><img alt="" style="display:none;" id="mchatAjax" src="http://s44.ucoz.net/img/fr/ajax3.gif" border="0" width="16" />
</div>
</div>
</div>
<div align="center" style="border: 1px dotted #444; font-size: 12px;">Для добавления сообщения необходима авторизация</div>
</div>