Красочный мини-чат для ucoz
Код
<div style="margin:1px;padding:0px;background:url('/new_design/bBlock2.png');border:1px solid #000000;"><div style="margin:1px;padding:4px;background:url('/new_design/bBlock2.png');border:1px solid #000000;">
<div style="float:right;font-size:8px;" title="$DATE$"><span style='font-family: "Visitor_Rus"; color: #cccccc'>$TIME$</span></div>
<div style="text-align:left;">
<a href="$PROFILE_URL$" title="$USERNAME$" rel="nofollow"><img src="/new_design/strelka1.gif" height="10" 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+='$NAME$, ';return false;"><span style="font-weight: 700; color: #ff0000">$NAME$</span></a>
<a href="$EMAIL_JS$" title="$STR_EMAIL$">E</a>
<a rel="nofollow" href="$SITE$" target="_blank" title="$STR_URL$">W</a>
</div></div>
<div style="margin:1px;padding:4px;background:url('/new_design/bBlock2.png');border:1px solid #000000;">
<div class="cMessage" style="text-align:left;"><span style='font-family: "Visitor_Rus"'>$MESSAGE$</span></div>
<br>$STR_CUSTOM2$: $CUSTOM2$
</div></div><br>
Форма добавления сообщений:
Код
<div class="bBlok2">
<?if(!$CAN_ADD$)?><div align="center"><?if($LOGIN_LINK$)?><a href="$LOGIN_LINK$">Для добавления необходима авторизация</a><?else?>Доступ запрещен<?endif?></div><?else?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td>$FLD_AUTOUPD$</td>
<td width="70%" align="right">
<a href="$RELOAD_URI$" title="Обновить"><img border="0" align="absmiddle" src="/MINI-CHAT/obnovit.png" width="13" height="15"></a>
<?if($SMILES_URI$)?> <a href="$SMILES_URI$" title="Вставить смайл"><img border="0" align="absmiddle" src="/MINI-CHAT/vstavit_smajl.png" width="13" height="15"></a><?endif?>
<?if($BBCODES_URI$)?> <a href="$BBCODES_URI$" title="BB-Коды"><img border="0" align="absmiddle" src="/MINI-CHAT/bb-kody.png" width="13" height="15"></a><?endif?>
<?if($MSGCTRL_URI$)?> <a href="$MSGCTRL_URI$" title="Управление сообщениями"><img border="0" align="absmiddle" src="http://fifagamers.ru/MINI-CHAT/redaktirovat.png" width="15" height="15"></a><?endif?>
</td></tr></table>
<span
style="padding-right: 1px;" id="bc9"><input title="Вставить картинку"
value="img" onclick="tag_image1('mchatMsgF','')"
class="codeButtons" style="width: 25px;" id="img"
type="button"></span>
<span style="padding-right: ;
1px;" id="bc18"><input title="Code"
value="code" onclick="simpletag1('code','','','mchatMsgF','')"
class="codeButtons" style="width: 30px;" id="code"
type="button"></span>
<span style="padding-right: ;
1px;" id="bc7"><input title="Вставить ссылку" value="http://" onclick="tag_url1('mchatMsgF','')" class="codeButtons"
style="direction: ltr; width: 45px;" id="url"
type="button"></span>
<script src="/MINI-CHAT/bbmchat.js" type="text/javascript"></script> <span style="padding-right: ;
1px;" id="bc1"><input title="Bold" value="b" onclick="simpletag1('b','','','mchatMsgF','')" class="codeButtons"
id="b" style="width: 20px; font-weight: bold;"
type="button"></span>
<span style="padding-right: ;
1px;" id="bc2"><input title="Italic" value="i" onclick="simpletag1('i','','','mchatMsgF','')" class="codeButtons"
id="i" style="width: 20px; font-style: italic;"
type="button"></span>
<span style="padding-right: ;
1px;" id="bc3"><input title="Underline" value="u" onclick="simpletag1('u','','','mchatMsgF','')" class="codeButtons"
id="u" style="width: 15px; text-decoration: underline;"
type="button"></span>
<?if(!$USER_LOGGED_IN$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td colspan="2">$FLD_NAME$</td></tr>
<tr><td width="50%">$FLD_EMAIL$</td><td>$FLD_URL$</td></tr>
</table>
<?endif?>
<?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="50%"><select size="1" name="custom1"><option value="0" selected="selected" > Цвет вашего сообщения </option><option value="#0000FF" >Синий</option><option value="#FFFFFF" >Белый</option><option value="#FF0000" >Красный</option><option value="#FFFF00" >Желтый</option><option value="#CD6600" >Оранжевый</option><option value="#6699FF" >Голубой</option><option value="#00FF00" >Зелёный</option</select></td><td>$FLD_CUSTOM2$</td></tr>
</table>
<?endif?>
<?if($FLD_SECURE$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="50%">$FLD_SECURE$</td><td align="right">$IMG_SECURE$</td></tr>
</table>
<?endif?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="95%" rowspan="2">$FLD_MESSAGE$</td>
<td align="center" valign="top"><div style="font-size:10px;">$LENGTH_COUNTER$</div></td>
</tr><tr><td align="center" valign="bottom">$SUBMIT$</td></tr></table>
<?endif?>
</div>