В мини-чате лишнее место
Добавлено: 25 мар 2009, 23:46
Lexx
собственно вот на скрине все показано, надо панель управления мини-чата (сообщение, управление сообщениями,смайлы и т.д.) сместить вниз, а сам чат немного удлинить.
код блока:
Спойлер: Показать +
Код: Выделить всё
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" height="26" border="0" cellpadding="0" cellspacing="0" background="http://csluck.net/Dizayn/img7.png" border:2px solid #000000;" >
<tr>
<td align="center" valign="middle"><span class="стиль6">Мини-чат</span></td>
</tr>
</table>
<table width="193" height="19" border="0" cellpadding="0" cellspacing="0" background="http://csluck.net/Dizayn/img10.png">
<tr>
<td align="center" valign="top">Ссылки и реклама других сайтов карается баном!!!</span></b></div><hr>$CHAT_BOX$</td>
</tr>
</table>
<table width="193" height="18" border="0" cellpadding="0" cellspacing="0" background="http://csluck.net/Dizayn/img9.png">
<tr>
<td> </td>
</tr>
</table>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>вид материалов:
Спойлер: Показать +
Код: Выделить всё
<div class="cBlock$PARITY$" style="padding:0 4px 5px 2px;margin-bottom:3px;">
<div style="float:right;font-size:8px;" title="$DATE$">$TIME$</div>
<?if($USERNAME$)?><a href="$PROFILE_URL$" title="$USERNAME$" rel="nofollow"><b>$NAME$</b></a>
<?if($EMAIL$)?> <a href="$EMAIL_JS$" title="$STR_EMAIL$"><img border="0" align="absmiddle" src="http://s23.ucoz.net/t/882/e.gif"></a><?endif?>
<?if($SITE$)?> <a rel="nofollow" href="$SITE$" target="_blank" title="$STR_URL$"><img border="0" align="absmiddle" src="http://s23.ucoz.net/t/882/h.gif"></a><?endif?>
<?else?>
<?if($SITE$)?><a rel="nofollow" href="<noindex>$SITE$</noindex>" target="_blank"><b>$NAME$</b></a>
<?if($EMAIL$)?> <a href="$EMAIL_JS$" title="$STR_EMAIL$" rel="nofollow"><img border="0" align="absmiddle" src="http://s23.ucoz.net/t/882/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"><table width="100%" border="1" cellspacing="1" cellpadding="5">
<tr>
<td width="5%" align="center" valign="top">
<?if($CUSTOM1$)?><img width="50" height="50" alt="$STR_CUSTOM1$" border="0" src="$CUSTOM1$" /><?else?><?if($USER_ID$!=0)?><img width="50" height="50" alt="$STR_CUSTOM1$" border="0" src="http://i024.radikal.ru/0804/24/86f6e59f34fd.gif" /><?else?><img width="50" height="50" alt="$STR_CUSTOM1$" border="0" src="http://i047.radikal.ru/0804/6c/6aaccd29fe7a.gif" /><?endif?><?endif?>
</td>
<td width="95%" align="left" valign="top">$MESSAGE$</td>
</tr>
</table></div>
<?if($CUSTOM2$)?>$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="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://s23.ucoz.net/img/fr/mcr.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://s23.ucoz.net/img/fr/mcs.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://s23.ucoz.net/img/fr/mcb.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://s23.ucoz.net/img/fr/mcm.gif" width="15" height="15"></a>
</td></tr></table>
<input type="text" style="display:none" 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">
<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="$STR_MESSAGE$" style="width:70%;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);">
<?if(($FIELDS_MASK$&4))?>
<input type="text" style="display:none;" name="custom1" id="mchatC1F" value="" title="$STR_CUSTOM1$">
<script type="text/javascript">
// Copyright AllCity ~ http://web-codes.net/
InputC1=document.getElementById('mchatC1F');
function iframeAvatar(){
int=setInterval(function(){ffoc(InputC1,3);InputC1.value=AvatartIframe.document.getElementById('userAvatar').href; },100);
setTimeout(function(){clearInterval(int)},10000);}
</script>
<iframe onload="iframeAvatar();" name="AvatartIframe" src="/index/0-7" width="0" marginwidth="0" height="0" marginheight="0" scrolling="no" frameborder="0"></iframe>
<?endif?>в общем надо чтобы получилось так:
Спойлер: Показать +
там где пусто-продолжение чатаили так:
Спойлер: Показать +

заранее

