2
Вы не авторизованы!
Присоединяйтесь к нашему сообществу :)
авторизация
Вакансии
На сайт требуется контент-менеджер
смотреть вакансии

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

Скрипты для uCoz 2011-Фев-23 cookies 836 0

3аходим в Комментарии>Форма добавление комментария
Весь код заменяем на

Code
<?if($SECURITY_CODE$)?>  
<table id="seckey" border="0" cellspacing="0" cellpadding="0" style="display:none;background: url('/img/ajax/1px.png');width:456px;height:91px;position:absolute;">  
<tr>  
  <td valign="center" align="center">  
  <div style="padding:10px 70px 10px 70px;">  
  <div style="background: #FFFFFF; border: 1px solid #B4C1D6;padding:10px 5px 10px 5px;">  
  <div>$SECURITY_CODE$ <input type="submit" id="addcBut" value="Отправить" onclick="$('#seckey').slideToggle();" /></div>  
  </div></div>  
  </td>  
  </tr>  
</table>  
  <?endif?>  
<div class="block5">  
  <textarea style="height:22px;width:100%;color:#777777;" id="ready_message" onclick="$('#ready_message').toggle();$('#message').toggle();$('#btn').toggle();">Ввести сообщение...</textarea>  
   
  <textarea style="height:50px;width:100%;display:none;" name="message" id="message">$MESSAGE$</textarea>  
  <div style="padding-top:5px;display:none;" id="btn"><?if($SECURITY_CODE$)?><input type="button" value="Ответить" onclick="message_check()" /><?else?><tr><td class="commTd2" colspan="2" align="center"><input type="submit" class="commSbmFl" id="addcBut" name="submit" value="Отправить"></td></tr><?endif?> <?if($SECURITY_CODE$)?><tr><td class="commTd1" nowrap></td><td class="commTd2">$SECURITY_CODE$</td></tr><?endif?> <span id="error" class="video_date" style="display:none;">Введите текст сообщения</span></div>  
</div>  
<br>
Источник: uc-portaller
0 комментариев
avatar