Приветствую.
Помогите пожалуйста, люди добрые.
Спойлер бы сделать.. эдаким "куда угодно в сообщении", без отдаления всякого -
Форум - http://forumoim.0bb.ru/
Скрипт спойлера -
Код:<script type="text/javascript"> FORUM.set('editor.spoiler.name', "Спойлер"); </script> <style type="text/css"> /*Спойлер */ .punbb .quote-box.spoiler-box { border-style: none; background: transparent none; } .post-content .spoiler-box > blockquote.visible { display: none; } .punbb .spoiler-box blockquote { min-width: 100% !important; margin-top: 15px; border: #C6C6CF 1px solid; border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -moz-border-radius: 5px; -o-border-radius: 5px; box-shadow: 0 2px 4px #8E8E8E; -webkit-box-shadow: 0 2px 4px #8E8E8E; -khtml-box-shadow: 0 2px 4px #8E8E8E; -moz-box-shadow: 0 2px 4px #8E8E8E; } .post-content .spoiler-box span.hide { display: none; } #button-spoiler { background: url('http://img706.imageshack.us/img706/1943/spoiler.gif') no-repeat center !important; } </style> <script type="text/javascript"> function tag_spolierr(){ var enterTITLE = prompt("Введите описание закрытой кнопки", 'Спойлер'); var enterTITLE2 = prompt("Введите описание открытой кнопки", 'Закрыть'); bbcode('[spoiler='+enterTITLE+'|'+enterTITLE2+']','[/spoiler]'); } </script> <script type="text/javascript"> $(document).ready(function(){ $(".post-box .quote-box.spoiler-box div[onclick*='toggleClass']").each(function() { $(this).html('<button type=button style="margin-left:-20px;">'+$(this).html().replace(/(.*)?\|(.*)?/img,'<span class="visible">$1</span><span class="hide">$2</span>')+'</button>') }); $(".post-box .quote-box.spoiler-box div[onclick*='toggleClass']").click(function(){ $(this).next('blockquote').toggle('Slow'); $(this).find('span:eq(0),span:eq(1)').toggleClass('hide').toggleClass('visible'); }); }); </script> <!-- Правки для спойла сервиса НТML верх-->