[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Готовые скрипты для uCoz » Форум » Чат на форум
Чат на форум

Дата: Вторник, 03.03.2009, 08:46 | Сообщение # 1
-$$-DIKARb-$$-

K.o.D~>^Dmitry M.^[Tm.Lider]
Группа: Администраторы
Сообщений: 140
« 1 »
Статус:
Награды: 3
Заходим в Шаблон Мини-чат --->>> Вид материалов и пишем код:

Code
<div class="cBlock$PARITY$" style="padding:0 4px 5px 2px;margin-bottom:3px;">
<div style="float:right;font-size:8px;" title="$DATE$">$TIME$</div>
<a href="javascript:mChatCode('[b]$NAME$[/b],');"><img border="0" src="http://src.ucoz.net/img/fr/wp.gif" title="Вставить Имя данного пользователя в поле 'Сообщение'"></a>
<?if($USERNAME$='Admin' or $USERNAME$='ppo2')?><a href="javascript://" onclick="window.open('http://xtreme.ws/index/8-$USER_ID$','upp','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350') || alert('Отключите блокировку всплывающих (Pop-up) окон!'); return false;" title="$USERNAME$" rel="nofollow" title="$USERNAME$" style="color:red;" rel="nofollow"><b>$NAME$</b></a><?else?><?if($USERNAME$)?><a href="javascript://" onclick="window.open('http://xtreme.ws/index/8-$USER_ID$','upp','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350') || alert('Отключите блокировку всплывающих (Pop-up) окон!'); return false;" title="$USERNAME$" rel="nofollow"><b>$NAME$</b></a>
<?if($EMAIL$)?> <a href="$EMAIL_JS$" title="$STR_EMAIL$"><img border="0" align="absmiddle" src="http://src.ucoz.net/t/000/e.gif"></a><?endif?>
<?if($SITE$)?> <a rel="nofollow" href="$SITE$" target="_blank" title="$STR_URL$"><img border="0" align="absmiddle" src="http://src.ucoz.net/t/000/h.gif"></a><?endif?>
<?else?>
<?if($SITE$)?><a rel="nofollow" href="$SITE$" target="_blank"><b>$NAME$</b></a>
<?if($EMAIL$)?> <a href="$EMAIL_JS$" title="$STR_EMAIL$" rel="nofollow"><img border="0" align="absmiddle" src="http://src.ucoz.net/t/996/e.gif"></a><?endif?>
<?else?>
<?if($EMAIL$)?><a href="$EMAIL_JS$" rel="nofollow"><b>$NAME$</b></a>
<?else?><b>$NAME$</b><?endif?>
<?endif?>
<?endif?>
<?endif?>
<div class="cMessage">$MESSAGE$</div>
<?if($CUSTOM1$)?><br>$STR_CUSTOM1$: $CUSTOM1$<?endif?>
<?if($CUSTOM2$)?><br>$STR_CUSTOM2$: $CUSTOM2$<?endif?>
</div>

Мини-чат --->>> Форма добавления сообщений

Code
<style type="text/css" media="all">
@import url(http://xtreme.ws/css/forum.css);
</style>
<script type="text/javascript" src="http://xtreme.ws/script/mchat.js"></script>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="3">
<tr>
<td align="center">
<div style="display:none"><input type="text" maxlength="60" name="uname" size="8" class="mchat" id="mchatNmF" value="" onfocus="ffoc(this,0)" onblur="fblur(this,0)" title="$STR_NAME$" style="width:48%;margin:1;padding:1px;border:1px solid black;height:20px"></div>
<div style="display:none"><?if(($FIELDS_MASK$&3))?><input type="text" maxlength="60" name="email" size="9" class="mchat" id="mchatEmF" value="" onfocus="ffoc(this,1)" onblur="fblur(this,1)" title="$STR_EMAIL$" style="width:48%;margin:1;padding:1px;border:1px solid black;height:20px"><?endif?></div>
<?if(($FIELDS_MASK$&4))?><input type="text" maxlength="60" name="custom1" size="9" class="mchat" id="mchatC1F" value="" onfocus="ffoc(this,3)" onblur="fblur(this,3)" title="$STR_CUSTOM1$" style="width:48%;margin:1;padding:1px;border:1px solid black;height:20px"><?endif?>
<?if(($FIELDS_MASK$&8))?><input type="text" maxlength="60" name="custom2" size="9" class="mchat" id="mchatC2F" value="" onfocus="ffoc(this,4)" onblur="fblur(this,4)" title="$STR_CUSTOM2$" style="width:58%;margin:1;padding:1px;border:1px solid black;height:20px"><?endif?>
</td>
</tr>
<tr>
<td align="center">
<textarea maxlength="$MAX_MESSAGE_LEN$" name="message" size="22" class="mchat" id="mchatMsgF" onfocus="ffoc(this,2)" title="$STR_MESSAGE$" style="width:99%;margin:4;padding:2px;border:1px solid black;height:60px" cols="80" rows="10"></textarea>
<a href="javascript:mChatCode(':3:');"><img border="0" src="http://xtreme.ws/smiles/3.gif" title="Ммм... Класс"></a>
<a href="javascript:mChatCode(':5:');"><img border="0" src="http://xtreme.ws/smiles/5.gif" title="Удивлён"></a>
<a href="javascript:mChatCode(':tongue:');"><img border="0" src="http://xtreme.ws/smiles/tongue.gif" title="Дразнится"></a>
<a href="javascript:mChatCode(':yes:');"><img border="0" src="http://xtreme.ws/smiles/yes.gif" title="Да"></a>
<a href="javascript:mChatCode(':12:');"><img border="0" src="http://xtreme.ws/smiles/12.gif" title="Подмигивает"></a>
<a href="javascript:mChatCode(':9:');"><img border="0" src="http://xtreme.ws/smiles/9.gif" title="Очень доволен"></a>
<a href="javascript:mChatCode(':sad:');"><img border="0" src="http://xtreme.ws/smiles/sad.gif" title="sad"></a>
<a href="javascript:mChatCode(':prof:');"><img border="0" src="http://xtreme.ws/smiles/prof.gif" title="prof"></a>
<a href="javascript:mChatCode(':hello:');"><img border="0" src="http://xtreme.ws/smiles/hello.gif" title="hello"></a>
<a href="javascript:mChatCode(':2:');"><img border="0" src="http://xtreme.ws/smiles/2.gif" title="В шоке"></a>
<a href="javascript:mChatCode(':16:');"><img border="0" src="http://xtreme.ws/smiles/16.gif" title="Смеётся"></a>
<a href="javascript:mChatCode(':angry:');"><img border="0" src="http://xtreme.ws/smiles/angry.gif" title="angry"></a>
<a href="javascript:mChatCode(':14:');"><img border="0" src="http://xtreme.ws/smiles/14.gif" title="Неа"></a>
<a href="javascript:mChatCode(':sm10:');"><img border="0" src="http://xtreme.ws/f_smiles/sm10.gif" title="Fuck"></a>
<br>

<?if($SMILES_URI$)?><input title="Все смайлы" value=":)" onclick="ffoc(document.forms.addform.message,2);wasclk[2]=2;window.open('http://xtreme.ws/AJAX/Smilie.htm','csmiles','scrollbars=1,width=350,height=295,left=0,top=0');  return false;" class="mchat" style="cursor:pointer;" type="button"><?endif?>
<?if($BBCODES_URI$)?><input title="BB-Коды" value="BB" onclick="window.open('$BBCODES_URI$','cbbcodes','scrollbars=1,width=600,height=450,left=0,top=0');  return false;" class="mchat" style="cursor:pointer;" type="button"><?endif?>
<input title="Перевести в кириллицу" value=".::." onclick="javascript:t.go(0)" class="mchat" style="cursor:pointer;" type="button">
<input value="hr" onclick="mChatCode('[hr]');return false;" class="mchat" style="cursor:pointer;" title="Линия" name="hr" type="button">
<input value="©" onclick="mChatCode('(c)');return false;" class="mchat" style="cursor:pointer;" title="Знак авторского права!" name="(c)" type="button">
<input value="™" onclick="mChatCode('(tm)');return false;" class="mchat" style="cursor:pointer;" title="Торговая марка" name="(tm)" type="button">
<input value="®" onclick="mChatCode('(r)');return false;" class="mchat" style="cursor:pointer;" title="Зарегистрирован" name="(r)" type="button">
<input value="*" onclick="mChatCode('[*]');return false;" class="mchat" style="cursor:pointer;" title="Пункт" name="*" type="button">
<input title="Управление сообщениями" value="MC" onclick="window.open('$MSGCTRL_URI$','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0');  return false;" class="mchat" style="cursor:pointer;" type="button">
<br>
<input type="submit" value="Послать сообщение!" class="mchat" id="mchatBtn" style="cursor:pointer;margin:10;" onclick="return checkform(this.form);">
<input type="submit" value="Обновить чат" class="mchat" id="mchatBtn" style="cursor:pointer;margin:10;" onclick="window.location.reload();return false;">
<br>
Автообновление: <select id="mchatRSel" onchange="setT(this);" class="mchat" size="1"><option value="0">Вык<option value="15">15сек<option value="30">30сек<option value="60">1мин<option value="120">2мин</select></td>

</tr>
</table>

источник


..:: Русские матом не ругаются - они на нем разговаривают ::..
Форум » Готовые скрипты для uCoz » Форум » Чат на форум
  • Страница 1 из 1
  • 1
Поиск:
Реклама