Strix
Попробуйте заменить скрипт
<!--Spoiler v.2.2--> <style> .punbb .post-content .quote-box.spoiler-box{ width:610px!important; border:2px solid #A7A7A7!important; } .spoiler-button {margin-left:7px!important;} .punbb .post-content .quote-box.spoiler-box2{ border:none transparent 0!important; width:587px!important; box-shadow:none; } </style> <script type="text/javascript"> $(function(){ $("div.quote-box > cite > input.spoiler-button").click(function(){ $(this).parents("div.quote-box").find("blockquote.quote-box").toggle("normal"); var a = $(this).attr('value');$(this).attr('value',$(this).attr('id'));$(this).attr('id',a); }); $('td#button-code').before('<td class="mybutton" style=\'background-image:url("http://img706.imageshack.us/img706/1943/spoiler.gif")\' onclick="tag_spolier()"><img src="/i/blank.gif" alt="Спойлер"></td>'); }); function tag_spolier() {var FoundErrors = ''; var enterTITLE = prompt("Введите описание скрытого текста", 'Спойлер'); bbcode('[spoiler]',('|'+enterTITLE+'[/spoiler]'));} elm=document.getElementsByTagName("div") for(x in elm) if(elm[x].className=="post-content") { post = elm[x].innerHTML; spoilerr = /\[spoiler\]([^]*?)\|(.*?)\[\/spoiler\]/g elm[x].innerHTML = elm[x].innerHTML.replace(spoilerr, "<div class='quote-box spoiler-box' style='padding:1px;background: none;border: 0;'><cite style='width:100%;margin:0;'><input id='close' class='spoiler-button' style='width:140px;font-size:10px; margin:0; cursor: pointer; font-weight:bold' type='button' value='$2'></cite><blockquote class='quote-box spoiler-box2' style='display:none; width:100%;border: 1px solid black;margin:0;'>$1</blockquote></div>") } </script> <script type="text/javascript"> inColor("#6786d6", new Array("Ярослав Князев")) inColor("#6786d6", new Array("Велина Строгова")) inColor("#8470FF", new Array("Alexi Laiho")) inColor("#8470FF", new Array("Tilo Wolff")) inColor("#00008B", new Array("Voittamaton")) function inColor(color, myarray){ var a=document.links for(i=0;i<a.length;i++){ for(q=0;q<myarray.length;q++){ if(a[i].innerHTML==myarray[q]){ a[i].innerHTML="<span style=\"color: "+color+";\">"+myarray[q]+"</span>" }}}} </script>