Мини-чат | |
Вставляем в Вид материалов: 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> <?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://s24.ucoz.net/t/844/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/844/h.gif"></A><?endif?> <?endif?><!--%IFEL6%0%> <!%IFTH7%3%><a rel="nofollow" href="$SITE$" target="_blank"><b>$NAME$</b></a> <!%IFTH8%2%> <a href="$EMAIL_JS$" title="$STR_EMAIL$" rel="nofollow"><img border="0" align="absmiddle" src="http://s24.ucoz.net/t/844/e.gif"></a><!%IFEN8%2%> <!%IFEN7%3%><!%IFEL9%3%> <!%IFTH10%2%><a href="$EMAIL_JS$" rel="nofollow"><b>$NAME$</b></a> <!%IFEN10%2%><!%IFEL11%2%><b>$NAME$</b><!%IFEN11%2%> <!%IFEN9%3%> <!%IFEN6%0%--> <DIV class="cMessage"><DIV style="border-top-color: #e1ba70; border-left-color: #e1ba70; border-right-color: #e1ba70; border-bottom-color: #e1ba70; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid">$MESSAGE$</DIV></DIV> </DIV> В Форму добавления сообщений ставим: Code <DIV style="padding-top:5px"><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:50%;margin:0;padding:1px;border:1px solid black;height:20px"> <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:50%;margin:0;padding:1px;border:1px solid black;height:20px"></DIV><DIV style="padding-top:5px"> <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:65%;margin:0;padding:1px;border:1px solid black;height:20px"> <INPUT type="image" src="http://jooner.3dn.ru/images/ico/pusk.png" id="mchatBtn" onclick="return checkform(this.form);"></DIV><DIV style="padding-top:5px"><A class="noun" href="$ACTION_URL$" onclick="window.location.reload();return false;" title="Обновить"><INPUT type="button" class="bbcodes" value="Обновить"></A> <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="Вставить смайл"><INPUT type="button" class="bbcodes" value="Смайлы"></A> </DIV><DIV style="padding-top:5px"><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-Коды"><INPUT type="button" class="bbcodes" value="BB-Коды"></A> <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="Управление сообщениями"><INPUT type="button" class="bbcodes" value="Удаление"></A></DIV><TABLE border="0" cellpadding="2" cellspacing="1" width="100%"><TBODY><TR><TD></TD><TD width="70%" align="right"></TD></TR></TBODY></TABLE> | |
Категория: для ucoz | Просмотров: 602 | Добавил: explosiveua |
Всего комментариев: 0 | |