sAmpler | Дата: Среда, 30.12.2009, 11:10 | Сообщение # 1 |
Активный учасник
Группа: Пользователи
Сообщений: 228
| ПУ-->Управление дизайном-->Комментарии-->Форма добавления комментариев. Заменяем все на это: Code <script language="JavaScript"> var lat=new Array("jo","zh","i'","ch","sh","xh","je","ju","ja","a","b","v","g","d","e","z","i","k","l","m","n","o","p","r","s","t","u","f","x","c","'"," y","`","j","h"); var cyr=new Array("ё","ж","й","ч","ш","щ","э","ю","я","а","б","в","г","д","е","з","и","к","л","м","н","о","п","р","с","т","у","ф","х","ц","ь","ы","ъ","ж ","х");
var latcap=new Array("JO","Jo","ZH","Zh","I'","Ch","CH","Sh","SH","Xh","XH","Je","JE","Ju","JU","Ja","JA","A","B","V","G","D","E","Z","I","K","L","M","N"," O","P","R","S","T","U","F","X","C","Y","J","H"); var cyrcap=new Array("Ё","Ё","Ж","Ж","Й","Ч","Ч","Ш","Ш","Щ","Щ","Э","Э","Ю","Ю","Я","Я","А","Б","В","Г","Д","Е","З","И","К","Л","М","Н","О","П","Р","С","Т ","У","Ф","Х","Ц","Ы","Ж","Х");
function translate(tex) { var buf=tex; var i; for (i=0;i<latcap.length;i++) { buf=replace(buf,latcap[i],cyrcap[i],1,0); }
for (i=0;i<lat.length;i++) { buf=replace(buf,lat[i],cyr[i],1,0); }
tex=buf; return tex; }
function replace(target,oldTerm,newTerm,caseSens,wordOnly) {
var work = target; var ind = 0; var next = 0;
if (!caseSens) { oldTerm = oldTerm.toLowerCase(); work = target.toLowerCase(); }
while ((ind = work.indexOf(oldTerm,next)) >= 0) { if (wordOnly) { var before = ind - 1; var after = ind + oldTerm.length; if (!(space(work.charAt(before)) && space(work.charAt(after)))) { next = ind + oldTerm.length; continue; } } target = target.substring(0,ind) + newTerm + target.substring(ind+oldTerm.length,target.length); work = work.substring(0,ind) + newTerm + work.substring(ind+oldTerm.length,work.length); next = ind + newTerm.length; if (next >= work.length) { break; } }
return target;
} </script>
<table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td background="/images/top.jpg" align=middle height="26"> <div align="center"><font color="FFFFFF"><b>Добавление комментария</b></font></div> </TD></TR>
<TR> <td bgcolor="FFFFFF" width="100%" style="border: 1px solid gray;">
<table width="429px" align="center">
<tr><td class="commTd2" colspan="2">$ERROR$</td></tr> <?if(!$USER_LOGGED_IN$)?> <tr><td width="15%" class="commTd1" nowrap>Имя *:</td><td class="commTd2"><input class="commFl" type="text" name="name" value="$NAME$" size="30" maxlength="60"></td></tr> <tr><td class="commTd1">Email:</td><td class="commTd2"><input class="commFl" type="text" name="email" value="$EMAIL$" size="30" maxlength="60"></td></tr> <tr><td class="commTd1">WWW:</td><td class="commTd2"><input class="commFl" type="text" name="www" value="$SITE$" size="30" maxlength="70"></td></tr> <?endif?>
<tr><td class="commTd2" align="center" colspan="2"><div style="padding-bottom:2px">
<div style="padding-bottom: 2px;"> <script type="text/javascript" src="http://src.ucoz.net/src/bbcodes.js"></script> <div style="border: 1px solid rgb(187, 187, 187); width: 452px; background-image: url(/bbcodes/bg.gif);">
<select name="fsize" onchange="alterfont(this.options[this.selectedIndex].value,'size','message','');this.selectedIndex=0; " style="background-color: rgb(240, 240, 240); width: 150px; font-weight:bold;height:20px;"><option value="0" style="font-weight:bold;">Размер</option><option value="8" style="font-weight:bold;font-size:8pt;">8</option><option value="9" style="font-weight:bold;font-size:9pt;">9</option><option value="10" style="font-weight:bold;font-size:10pt;">10</option><option value="11" style="font-weight:bold;font-size:11pt;">11</option><option value="12" style="font-weight:bold;font-size:12pt;">12</option><option value="13" style="font-weight:bold;font-size:13pt;">13</option><option value="14" style="font-weight:bold;font-size:14pt;">14</option><option value="15" style="font-weight:bold;font-size:15pt;">15</option><option value="16" style="font-weight:bold;font-size:16pt;">16</option><option value="17" style="font-weight:bold;font-size:17pt;">17</option><option value="18" style="font-weight:bold;font-size:18pt;">18</option></select><select name="fcolor" onchange="alterfont(this.options[this.selectedIndex].value, 'color','message','');this.selectedIndex=0;" style="background-color: rgb(240, 240, 240); width: 150px; font-weight:bold;height:20px;"><option value="0" style="font-weight:bold;">Цвет</option><option value="blue" style="color: blue;font-weight:bold;">Синий</option><option value="red" style="color: red;font-weight:bold;">Красный</option><option value="purple" style="color: purple;font-weight:bold;">Фиолетовый</option><option value="orange" style="color: orange;font-weight:bold;">Оранжевый</option><option value="yellow" style="color: yellow;font-weight:bold;">Желтый</option><option value="gray" style="color: gray;font-weight:bold;">Серый</option><option value="green" style="color: green;font-weight:bold;">Зелёный</option></select><select name="ffont" onchange="alterfont(this.options[this.selectedIndex].value,'font','message','');this.selectedIndex=0; "style="background-color: rgb(240, 240, 240); width: 150px; font-weight:bold;height:20px;"><option value="0" style="font-weight:bold;">Шрифт</option><option value="Arial" style="font-weight:bold;font-family:Arial;">Arial</option><option value="Times" style="font-weight:bold;font-family:Times;">Times</option><option value="Courier" style="font-weight:bold;font-family:Courier;">Courier</option><option value="Impact" style="font-weight:bold;font-family:Impact;>Impact</option><option value="Geneva" style="font-weight:bold;font-family:Geneva;">Geneva</option><option value="Optima" style="font-weight:bold;font-family:Optima;">Optima</option></select> <br> <img src="/bbcodes/b.gif" title="Полужирный" value="Полужирный" onclick="simpletag('b','','','message','')" class="" name="b" font-weight: bold;" type="button"><img src="/bbcodes/i.gif" title="Наклонный" value="Наклонный" onclick="simpletag('i','','','message','')" class="" name="i" font-style: italic;" type="button"><img src="/bbcodes/u.gif" title="Подчеркнутый текст" value="Подчеркнутый текст" onclick="simpletag('u','','','message','')" class="" name="u" text-decoration: underline;" type="button"><img src="/bbcodes/s.gif" title="Зачеркнутый Текст" value="Зачеркнутый Текст" onclick="simpletag('s','','','message','')" class="" name="s" text-decoration: solid;" type="button"><img src="/bbcodes/brkspace.gif"><img src="/bbcodes/l.gif" title="По левому краю" text-align: left;" value="По левому краю" onclick="simpletag('l','cdl','···','message')" class="" id="cdl" type="button"><img src="/bbcodes/c.gif" title="По центру" text-align: center;" value="По центру" onclick="simpletag('c','cdc','···','message')" class="" id="cdc" type="button"><img src="/bbcodes/r.gif" title="По правому краю" text-align: right;" value="По правому краю" onclick="simpletag('r','cdr','···','message')" class="" id="cdr" type="button"><img src="/bbcodes/brkspace.gif"><img src="/bbcodes/emo.gif" title="Смайлики" onclick="openLayerB('Sml',0,'http://pro-warez.org.ru/index/35-1-0','Полный список смайлов',300,400);return false;" class="" name="Sml" type="button"><img src="/bbcodes/link.gif" title="Вставка ссылки" value="Вставка ссылки" onclick="simpletag('url','','','message','')" class="" name="url" type="button"><img src="/bbcodes/email.gif" title="Вставка E-mail" value="Вставка E-mail" onclick="simpletag('email','','','message','')" class="" name="email" type="button"><img src="/bbcodes/image.gif" title="Картинка" value="Картинка" onclick="simpletag('img','','','message','')" class="" name="img" type="button"><img src="/bbcodes/upload.gif" title="Загрузить файл" type="button" onclick="openLayerB('LoadFileBody',0,'/loadfile.xml','Загрузка файлов и изображений',600,400,1,0,1);return false;" value="Загрузить файл" /><img src="/bbcodes/brkspace.gif"><img src="/bbcodes/mp.gif" title="Вставить видео" value="Вставить видео" onclick="simpletag('video','','','message','')" class="" name="video" type="button"><img src="/bbcodes/mp3.gif" title="Вставить аудио" value="Вставить аудио" onclick="simpletag('audio','','','message','')" class="" name="audio" type="button"><img src="/bbcodes/hide.gif" title="Скрытый текст" value="Скрытый текст" onclick="simpletag('hide','','','message','')" class="" name="hide" type="button"><img src="/bbcodes/quote.gif" title="Вставка цитаты" value="Вставка цитаты" onclick="simpletag('quote','','','message','')" class="" name="quote" type="button"><img src="/bbcodes/code.gif" title="Code" value="code" onclick="simpletag('code','','','message','')" name="codes" type="button"><img src="/bbcodes/translit.gif" title="Транслит" value="Транслит" onclick="document.forms['addform'].message.value=translate(document.forms['addform'].message.value); " class="" type="button"/><img src="/bbcodes/close.gif" style="font-weight: bold;" value="/" title="Закрыть все открытые теги" onclick="closeall('message','');" class="" type="button"> <input name="tagcount" value="0" type="hidden"> </div></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" align="center"><textarea class="commFl" style="height:150px;width:454px;" rows="8" name="message" id="message" cols="100%">$MESSAGE$</textarea><br>
<a href="javascript://" onclick="emoticon(':up:');return false;"><img src="http://src.ucoz.net/sm/2/up.gif"></a> <a href="javascript://" onclick="emoticon(':rolleyes:');return false;"><img src="http://src.ucoz.net/sm/2/rolleyes.gif"></a> <a href="javascript://" onclick="emoticon('<_<');return false;"><img src="http://src.ucoz.net/sm/2/dry.gif"></a> <a href="javascript://" onclick="emoticon('>(');return false;"><img src="http://src.ucoz.net/sm/2/angry.gif"></a> <a href="javascript://" onclick="emoticon(':D');return false;"><img src="http://src.ucoz.net/sm/2/biggrin.gif"></a> <a href="javascript://" onclick="emoticon('B)');return false;"><img src="http://src.ucoz.net/sm/2/cool.gif"></a> <a href="javascript://" onclick="emoticon('^_^');return false;"><img src="http://src.ucoz.net/sm/2/happy.gif"></a> <a href="javascript://" onclick="emoticon(':(');return false;"><img src="http://src.ucoz.net/sm/2/sad.gif"></a> <a href="javascript://" onclick="emoticon(':)');return false;"><img src="http://src.ucoz.net/sm/2/smile.gif"></a> <a href="javascript://" onclick="emoticon(':o');return false;"><img src="http://src.ucoz.net/sm/2/surprised.gif"></a> <a href="javascript://" onclick="emoticon(':p');return false;"><img src="http://src.ucoz.net/sm/2/tongue.gif"></a> <a href="javascript://" onclick="emoticon('%)');return false;"><img src="http://src.ucoz.net/sm/2/wacko.gif"></a> <a href="javascript://" onclick="emoticon(';)');return false;"><img src="http://src.ucoz.net/sm/2/wink.gif"></a> </td></tr></table></td></tr>
<?if($SECURITY_CODE$)?> <tr><td class="commTd1">Код *:</td><td class="commTd2" >$SECURITY_CODE$</td></tr> <?endif?>
<tr> <td colspan="2" align="center"><br /> <input type="submit" value="Отправить" class="codeButtons" style="margin:5;border:1px solid black" onClick="doAddComments();return false;" name="submit"> </td> </tr> </table>
|
|
| |