Здесь ставим дополнительные кнопки на ББ-коды, которые по умолчанию не идут, но после установки этого скрипта они появятся и веб мастеру намного легче будет размещать материал.
Установка:
Заходим в ПУ » Управление дизайном » Каталог файлов » Страница добавления/редактирования материала и после:
вставляем:
Код
<script type="text/javascript">
$(document).ready(function(){
//Script by Bogggdan, http://javascript.ucoz.net/ ©
if ($("#brief"))
$("input.codeButtons[value='u']:first").parent().after("<span style=\"padding-right: 1px;\"><input title=\"Вставить код\" value=\"Code\" onclick=\"simpletag('code','','','brief','')\" class=\"codeButtons\" id=\"codes\" type=\"button\"></span><span style=\"padding-right: 1px;\"><input title=\"spoiler\" value=\"spoiler\" onclick=\"simpletag('spoiler','','','brief','')\" class=\"codeButtons\" id=\"spoiler\" type=\"button\"></span>");
if ($("#message"))
$("input.codeButtons[value='u']:last").parent().after("<span style=\"padding-right: 1px;\"><input title=\"Вставить код\" value=\"Code\" onclick=\"simpletag('code','','','message','')\" class=\"codeButtons\" id=\"codes\" type=\"button\"></span><span style=\"padding-right: 1px;\"><input title=\"spoiler\" value=\"spoiler\" onclick=\"simpletag('spoiler','','','message','')\" class=\"codeButtons\" id=\"spoiler\" type=\"button\"></span>");
});
</script>