Код:
<script type="text/javascript"> var theme=document.getElementById('pun-main').getElementsByTagName("h1")[0].innerHTML if (theme.indexOf(">>")!=-1) {if (theme.indexOf("Редактирование")!=-1) {document.getElementById('pun-main').getElementsByTagName("h1")[0].innerHTML=theme.substring(0, theme.indexOf(">>"))+" - Редактирование сообщения</span>"} else {document.getElementById('pun-main').getElementsByTagName("h1")[0].innerHTML=theme.substring(0, theme.indexOf(">>"))+"</span>"}} </script> <script type="text/javascript"> var descs=document.getElementsByTagName("td") var z=0 for (z=0; z<=(descs.length-1); z++) {if (descs[z].innerHTML.indexOf(">>")!=-1) {if (descs[z].className=="tcl") {descs[z].innerHTML=descs[z].innerHTML.substring(0, descs[z].innerHTML.indexOf(">>"))+"</a><br />"+"<font size='1'>"+descs[z].innerHTML.substring((descs[z].innerHTML.indexOf(">>")+8), (descs[z].innerHTML.toLowerCase().indexOf("</a>")))+"</font>"+descs[z].innerHTML.substr((descs[z].innerHTML.toLowerCase().indexOf("</a>")+4)) } else {descs[z].getElementsByTagName("a")[0].innerHTML=descs[z].getElementsByTagName("a")[0].innerHTML.substring(0, descs[z].getElementsByTagName("a")[0].innerHTML.indexOf(">")) }}} </script> <script type="text/javascript"> if (document.getElementById('pun-main').getElementsByTagName("h1")[0].innerHTML.indexOf("Начать новую")!=-1) {document.getElementsByTagName("form")[0].innerHTML=document.getElementsByTagName("form")[0].innerHTML.substring(0, (document.getElementsByTagName("form")[0].innerHTML.indexOf("areafield")-10))+"<p><label for='descr'>Описание</label><br />"+"<span class='input'>"+"<input id='descr'"+" type='text'"+" size='80'"+" maxlength='35' /></span></p>"+document.getElementsByTagName("form")[0].innerHTML.substr( (document.getElementsByTagName("form")[0].innerHTML.indexOf("areafield")-10)) if (document.getElementById('fld3').value.indexOf(">>")!=-1) { document.getElementById('descr').value=document.getElementById('fld3').value.substr(document.getElementById('fld3').value.indexOf(">>")+2) document.getElementById('fld3').value=document.getElementById('fld3').value.substring(0, document.getElementById('fld3').value.indexOf(">>")) } document.getElementsByName("submit")[0].onclick=addDesc document.getElementsByName("preview")[0].onclick=addDesc} function addDesc() {document.getElementById('fld3').value=document.getElementById('fld3').value+">>"+document.getElementById('descr').value return true} </script>
Там где в скрипте жирная единица - можете менять размер шрифта описания.
Вставлять в Форму ответа
Теги: скрипты для форума