Среда, 24.04.2024, 04:53
Приветствую Вас, Гость | RSS
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Ucoz » Другие скриты » Мини-чат =)
Мини-чат =)
AHDRYXAДата: Пятница, 17.06.2011, 22:26 | Сообщение # 1
Сообщений: 153
Репутация: 0
Offline
это в вид материалов :
Code
<div style="white-space:normal">   
<script type="text/javascript" src="/js/mchat.js"></script>   
<div class="Mchat" style="padding:0 4px 5px 2px;margin-bottom:3px;">   
<table width="100%"><tr><td><?if($USERNAME$)?><?if($CUSTOM1$)?><img alt="" src="$CUSTOM1$" border="0" style="vertical-align:-2px"/><?else?><img src="http://plan.clan.su/img/ico_chat/profile.png" width="13" border="0" style="vertical-align:-2px"/><?endif?> <?endif?> <span style='cursor: pointer;' onclick='show_bar(event, $USER_ID$)'><b><?if($USER_ID$='1')?><font color=#006CFF><font size="1.5" face="Visitor_Rus">$NAME$</font></font><?else?><font size="1.5" face="Visitor_Rus">$NAME$</font><?endif?></b></span></td>   
<td align="right" title="$DATE$"><span style="font-size:8px"><font size="1.5" face="Visitor_Rus">$TIME$</font></span></td></tr></table>   
<div align="center" style="display:none" id="hide2"></div>   
<table id="win_$USER_ID$" onclick='hide_bar(860)' style='background: #333333; position:absolute; visibility:hidden; filter:alpha(opacity=85); opacity: 0.85; width: 110px; border: 1px solid #000000;'>   
<tbody>   
<tr><td onmouseover="this.bgColor='#222222';" onmouseout="this.bgColor='#333333';" style="padding: 5px; border: 1px solid #000000;"><a href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus();parent.window.document.getElementById('mchatMsgF').value+='[b]$USERNAME$[/b], ';return false;"><font color="#006CFF"><font size="1.5" face="Visitor_Rus">Ответить</font></font></a></td></tr>   
<tr><td onmouseover="this.bgColor='#222222';" onmouseout="this.bgColor='#333333';" style="padding: 5px; border: 1px solid #000000;"><a href="/index/14-$USER_ID$-0-1" target="self" ><font color="#006CFF"><font size="1.5" face="Visitor_Rus">Отправить ЛС</font></font></a></td></tr>   
<tr><td onmouseover="this.bgColor='#222222';" onmouseout="this.bgColor='#333333';" style="padding: 5px; border: 1px solid #000000;"><a href="/index/8-$USER_ID$" target="blank" ><font color="#006CFF"><font size="1.5" face="Visitor_Rus">Профиль</font></font></a></td></tr>   
<tr><td style="text-align: left;"><img onclick="hide_bar($USER_ID$)" src="/images/close.png" alt="Закрыть" border="0"></td></tr>   
</tbody></table>   
<font size="1.5" face="Visitor_Rus">$MESSAGE$</font></div>

Это в форму добавления сообщений:
Code
<?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%">

<td width="70" align="right">
   <form style="margin:0;padding:0;" id="MCaddFrm" onsubmit="sbtFrmMC991();return false;">   
<br>   
<span>   
<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="Вставить код" 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="URL" onclick="tag_url1('mchatMsgF','')" class="codeButtons" style="direction: ltr; width: 30px;" id="url" type="button"></span>   
<script src="/js/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>   
<br>   
<table border="0" cellpadding="1" cellspacing="1" width="100%">   
<td width="10%" align="left">   
<div align="center">   
<span style="padding-right:   
0px;" id="bc18"><input title="Правила мини-чата"   
   value="Правила чата" href="javascript://" onclick="openLayerB('Rules_Mchat',0,'/xml/rules_mchat.xml','Правила мини-чата',400,200,'1','','',0,'justify'); return false;"   
class="codeButtons" style="width: 80px;" id="code"   
type="button"></span></div></td>   
<td width="70%" align="right">   
<a href="javascript://" rel="nofollow" onclick="document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();return false;" title="Обновить"><img border="0" align="absmiddle" src="http://s32.ucoz.net/img/icon/tf.png"></a>   
<a href="javascript://" rel="nofollow" onclick="new _uWnd('Sml',' ',-250,-350,{autosize:0,closeonesc:1,resize:0},{url:'/index/35-0-2'});return false;" title="Вставить смайл"><img border="0" align="absmiddle" src="http://s32.ucoz.net/img/icon/s.png"></a>   
<a href="javascript://" rel="nofollow" onclick="window.open('/index/17','cbbcodes','scrollbars=1,width=550,height=450,left=0,top=0');return false;" title="BB-Коды"><img border="0" align="absmiddle" src="http://s32.ucoz.net/.s/img/icon/mc.png"></a>   
<?if($MSGCTRL_URI$)?> <a href="$MSGCTRL_URI$" title="Управление сообщениями"><img alt="" border="0" align="absmiddle" src="http://s107.ucoz.net/img/fr/mcm.gif" width="15" height="15"></a><?endif?>   
</td></tr></table>   
<center><LEGEND><B><STRONG><div style="width:177px;background:url('http://plan.clan.su/images/90.png'); border: #000000 1px solid;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius: 2px;"><center><a onclick="$('#Icons').toggle('slow');" href="javascript://"><SPAN style="font-size: 10pt" color="5d5d5d"><font size="1"><span style="color:red">Иконки</span></font></span></a></center></div></STRONG></B></LEGEND> <div id="Icons" style="display:none;">
<div align="left">
   <div align="center" style="border: 1px solid #000000;background:url('http://plan.clan.su/images/90.png')">   
<img title="Выбрать иконку сообщения" src="/img/ico_chat/1.png" style="cursor: pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/2.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/3.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/7.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/8.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/9.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/14.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/15.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/16.png" style="cursor: pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/18.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/19.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/21.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/52.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/60.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/62.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/90.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/101.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/108.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/109.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/delete.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/shark.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />   
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/vodka.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
   <img title="Выбрать иконку сообщения" src="/img/ico_chat/pl.png" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" /> </div>
</div></div></center>
   <table border="0" cellpadding="0" cellspacing="0" width="100%">   
   <tr><td width="50%"><input type="text" maxlength="60" name="custom1" class="mchat" id="mchatC1F" value="Other 1" title="Other 1" onfocus="if(this.value==$(this).attr('title')){this.value='';}" style="width:100%;"></td><td></td></tr>   
   </table>   
   <script type="text/javascript">$('#mchatC1F').hide();</script>
</td></tr></table>
<?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_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?>

Форум » Ucoz » Другие скриты » Мини-чат =)
  • Страница 1 из 1
  • 1
Поиск: