Мини-чат <

Сообщений 1 страница 3 из 3

1

Установка:
Панель управления >> Управление дизайном >> Мини-чат >> Вид материалов
Все стираете и вставляете:

Код:
<div style="float:right;font-size:8px;" title="$DATE$">$TIME$</div>    
<?if($USERNAME$)?><img src="http://dotahack.net/MINISHAT/announce_read.gif"><a href="$PROFILE_URL$" title="$USERNAME$" rel="nofollow"><b>$NAME$</b></a>    
<script type="text/javascript" src="http://dotahack.net/ws.js"></script><?if($EMAIL$)?> <a href="$EMAIL_JS$" title="$STR_EMAIL$"><img border="0" align="absmiddle" src="http://s24.ucoz.net/t/984/e.gif"></a><?endif?>    
<?if($SITE$)?> <a rel="nofollow" href="$SITE$" target="_blank" title="$STR_URL$"><img border="0" align="absmiddle" src="http://s24.ucoz.net/t/984/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://s24.ucoz.net/t/984/e.gif"></a><?endif?>    
<?else?>    
<?if($EMAIL$)?><a href="$EMAIL_JS$" rel="nofollow"><b>$NAME$</b></a>    
<?else?><b>$NAME$</b><?endif?>    
<?endif?>    
<?endif?>    
<div class="cMessage">$MESSAGE$</div>    
<?if($CUSTOM1$)?><br>$STR_CUSTOM1$: $CUSTOM1$<?endif?>    
<?if($CUSTOM2$)?><br>$STR_CUSTOM2$: $CUSTOM2$<?endif?>    
</div>

Панель управления >> Управление дизайном >> Мини-чат >> Форма добавления сообщения
Все стираете и вставляете:

Код:
<table border="0" cellpadding="2" cellspacing="1" width="100%">  
<tr><td><select id="mchatRSel" onchange="setT(this);" class="mchat" size="1" title="Автообновление" style="font-size:7pt;width:50px;margin:0;padding:0;border:1px solid black;height:18px"><option value="0">--<option value="15">15сек<option value="30">30сек<option value="60">1мин<option value="120">2мин</select></td>  
<td width="70%" align="right">  
<a class="noun" href="$ACTION_URL$" onclick="window.location.reload();return false;" title="Обновить"><img border="0" align="absmiddle" src="http://dotahack.net/MINISHAT/reload.gif" width="13" height="15"></a>  
<?if($SMILES_URI$)?> <a class="noun" href="javascript:void('smiles')" onclick="ffoc(document.forms.addform.message,2);wasclk[2]=2;window.open('$SMILES_URI$','csmiles','scrollbars=1,width=250,height=350,left=0,top=0');  return false;" title="Вставить смайл"><img border="0" align="absmiddle" src="http://dotahack.net/MINISHAT/scream.gif" width="13" height="15"></a><?endif?>  
<?if($BBCODES_URI$)?> <a class="noun" target="cbbcodes" href="javascript:void('BB-codes')" onclick="window.open('$BBCODES_URI$','cbbcodes','scrollbars=1,width=550,height=450,left=0,top=0');  return false;" title="BB-Коды"><img border="0" align="absmiddle" src="http://dotahack.net/MINISHAT/html.gif" width="13" height="15"></a><?endif?>  
     <a class="noun" href="javascript:void('Message control')" onclick="window.open('$MSGCTRL_URI$','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0');  return false;" title="Управление сообщениями"><img border="0" align="absmiddle" src="http://dotahack.net/MINISHAT/tools.gif" width="15" height="15"></a>  
</td></tr></table>  
<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:47%;margin:0;padding:1px;border:1px solid black;height:20px">  
<?if(($FIELDS_MASK$&3))?><input type="text" maxlength="60" name="email" size="8" class="mchat" id="mchatEmF" value="" onfocus="ffoc(this,1)" onblur="fblur(this,1)" title="$STR_EMAIL$" style="width:47%;margin:0;padding:1px;border:1px solid black;height:20px"><?endif?>  
<?if(($FIELDS_MASK$&4))?><input type="text" maxlength="60" name="custom1" size="8" class="mchat" id="mchatC1F" value="" onfocus="ffoc(this,3)" onblur="fblur(this,3)" title="$STR_CUSTOM1$" style="width:47%;margin:0;padding:1px;border:1px solid black;height:20px"><?endif?>  
<?if(($FIELDS_MASK$&8))?><input type="text" maxlength="60" name="custom2" size="8" class="mchat" id="mchatC2F" value="" onfocus="ffoc(this,4)" onblur="fblur(this,4)" title="$STR_CUSTOM2$" style="width:47%;margin:0;padding:1px;border:1px solid black;height:20px"><?endif?>  
<input type="text" maxlength="$MAX_MESSAGE_LEN$" name="message" size="9" class="mchat" id="mchatMsgF" value="" onfocus="ffoc(this,2)" onblur="fblur(this,2)" title="$STR_MESSAGE$" style="width:50%;margin:0;padding:1px;border:1px solid black;height:20px">  
<input type="submit" value="Пуск" class="mchat" id="mchatBtn" style="width:40px;height:20px;margin:0;border:2px solid black" onclick="return checkform(this.form);">

0

2

Вид материалов:

Код:
<div class="cName"><span style="color: green; margin-right: 6px; font-size: 10px; text-align: left;">$TIME$</span>  
<a class="subforum" href="$PROFILE_URL$"">$USERNAME$</a>:  
$MESSAGE$  
</div>  
<div class="cMessage" style="border-bottom: 1px dotted #dddddd; padding-bottom: 5px;"></div>

Форма добавления:

Код:
<style type="text/css">  
.postSubmit {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #6eb300;  
color: #ffffff;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  
.postSubmit:hover {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #83ca12;  
color: #f3f3f3;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  
.postReset {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #d82020;  
color: #ffffff;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  
.postReset:hover {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #e33939;  
color: #f3f3f3;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  
.postPreview {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #666666;  
color: #ffffff;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  
.postPreview:hover {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #888888;  
color: #f3f3f3;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  
.postReset {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #d82020;  
color: #ffffff;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  
.postReset:hover {  
border: 0px;  
padding: 5px;  
text-align: center;  
font-size: 10px;  
margin: 0px;  
width: auto;  
background: #e33939;  
color: #f3f3f3;  
cursor: pointer;  
letter-spacing: 0px;  
font-family: verdana;  
}  

</style>  

<input type="button" href="$ACTION_URL$" onclick="window.location.reload();return false;" title="Обновить" style="height: 24px;;width:30px;margin:0px" value="©" class="postReset">  

<input type="button" class="postPreview" onclick="window.open('/mchat/0-1','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0'); return false;" style="height: 24px;width:30px;margin:0px" value="mail">  

<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="display: none;height: 24px; color: #777777; font-family: Verdana; border: 1px solid #aaaaaa; background-color: #f1f1f1; background: url('ваше изoбражение'); background-repeat: repeat-x; background-position: left top;">  

<input type="text" maxlength="$MAX_MESSAGE_LEN$" name="message" size="22" class="mchat" id="mchatMsgF" value="" onfocus="ffoc(this,2)" onblur="fblur(this,2)" title="Сообщение" style="width: 68%; font-size: 7pt; padding: 5px; margin: 0px; font-family: Tahoma; height: 24px; color: #777777; font-family: Verdana; border: 1px solid #aaaaaa; background-color: #f1f1f1; background: url('ваше изoбражения'); background-repeat: repeat-x; background-position: left top;">  

<input type="submit" style="height: 24px;width:30px;margin:0px" value="»" class="postSubmit" id="mchatBtn" onclick="return checkform(this.form);">

0

3

White чат. Скрипт для UcoZ.

Вид материалов:

Код:
<div style="padding:0px 4px 0px 3px;"> 
<div style="float:right;font-size:9px;" title="$DATE$">$TIME$</div> 
<?if($USERNAME$)?><a class="m" href="javascript://" onclick="ffoc(document.forms.addform.message,2);document.forms.addform.message.value+='[b]$USERNAME$[/b], '" title="Цитировать $USERNAME$">  
<?if($USER_ID$=1)?><span style="color:#B22222;">$USERNAME$</span><?else?><span>$USERNAME$</span><?endif?> 
</a><?endif?> 
<div class="cMessage" style="margin:0px 0px 5px 0px;border-bottom: #e5e5e5 1px solid;">$MESSAGE$ 
<div style="padding:1px"></div> 
</div> 
</div>

Форма добавления сообщений:

Код:
<div style="margin:5px 0px 0px 0px;text-align:center;"> 
<nobr> 
<?if($BBCODES_URI$)?> 
<a class="m" href="javascript://" onclick="ffoc(document.forms.addform.message,2);document.forms.addform.message.value+='[b][/b]'" title="Жирный"> <img border="0" align="absmiddle" src="/images/chat/1.gif" width="16" height="16"></a>  
<a class="m" href="javascript://" onclick="ffoc(document.forms.addform.message,2);document.forms.addform.message.value+='[i][/i]'" title="Курсив"> <img border="0" align="absmiddle" src="/images/chat/2.gif" width="16" height="16"></a>  
<a class="m" href="javascript://" onclick="ffoc(document.forms.addform.message,2);document.forms.addform.message.value+='[u][/u]'" title="Подчеркнутый"> <img border="0" align="absmiddle" src="/images/chat/3.gif" width="16" height="16"></a>  
<a class="m" href="javascript://" onclick="ffoc(document.forms.addform.message,2);document.forms.addform.message.value+='[url][/url]'" title="Вставить ссылку"> <img border="0" align="absmiddle" src="/images/chat/4.gif" width="16" height="16"></a>  
<a class="m" href="javascript://" onclick="ffoc(document.forms.addform.message,2);document.forms.addform.message.value+='[quote][/quote]
'" title="Вставить цитату"> <img border="0" align="absmiddle" src="/images/chat/5.gif" width="16" height="16"></a>  
<?endif?> 
<?if($SMILES_URI$)?><a class="noun" href="javascript:void('smiles')" onclick="ffoc(document.forms.addform.message,2);wasclk[2]=2;window.open('$SMILES_URI$','csmiles','scrollbars=1,width=250,height=350,left=0,top=0'); return false;" title="Смайлики"><img border="0" align="absmiddle" src="/images/chat/6.gif" width="16" height="16"></a><?endif?> 
<?if($BBCODES_URI$)?><a class="noun" target="cbbcodes" href="javascript:void('BB-codes')" onclick="window.open('$BBCODES_URI$','cbbcodes','scrollbars=1,width=550,height=450,left=0,top=0'); return false;" title="BB-Коды"><img border="0" align="absmiddle" src="/images/chat/7.gif" width="16" height="16"></a><?endif?> 
<a class="noun" href="javascript:void('Message control')" onclick="window.open('$MSGCTRL_URI$','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0'); return false;" title="Управление сообщениями"><img border="0" align="absmiddle" src="/images/chat/8.gif" width="16" height="16"></a> 
<a class="noun" href="$ACTION_URL$" onclick="window.location.reload();return false;" title="Обновить"><img border="0" align="absmiddle" src="/images/chat/9.gif" width="16" height="16"></a> 
</nobr> 
<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="display:none;width:0px;margin:10;padding:1px;border:0px solid black;height:0px"> 
<textarea name="message" maxlength="$MAX_MESSAGE_LEN$" class="mchat" id="mchatMsgF" onfocus="ffoc(this,2)" onblur="fblur(this,2)" title="$STR_MESSAGE$" cols="30" rows="2" style="width:169px;margin:3px 0px 3px 0px;padding:1px;border:#e5e5e5 1px solid;"></textarea> 
<input type="submit" class="mchat" value="Отправить" id="mchatBtn" onclick="return checkform(this.form);"> 
</div>

0


Вы здесь » Форум музыки! » Мини-чат » Мини-чат <


Рейтинг форумов | Создать форум бесплатно