<?xml version="1.0" encoding="windows-1251"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://swrolkaspybbpalitra.fanbb.ru/export.php?type=rss" rel="self" type="application/rss+xml" />
		<title>Палитра для ролевой swrolka(пробный форум)</title>
		<link>http://swrolkaspybbpalitra.fanbb.ru/</link>
		<description>Палитра для ролевой swrolka(пробный форум)</description>
		<language>ru-ru</language>
		<lastBuildDate>Tue, 23 Mar 2010 15:16:07 +0300</lastBuildDate>
		<generator>MyBB/mybb.ru</generator>
		<item>
			<title>скрипты</title>
			<link>http://swrolkaspybbpalitra.fanbb.ru/viewtopic.php?pid=7#p7</link>
			<description>&lt;p&gt;Спойлер, переделанный под новую форму ответа Карпова.&lt;/p&gt;
						&lt;p&gt;Форма ответа была изменена,поэтому многие старые скрипты в ней не работают.&lt;br /&gt;Но благодаря &lt;span style=&quot;color: red&quot;&gt;Duka&lt;/span&gt; теперь есть рабочие версии этих скриптов.&lt;/p&gt;&lt;div class=&quot;code-box&quot;&gt;&lt;strong class=&quot;legend&quot;&gt;Код:&lt;/strong&gt;&lt;div class=&quot;blockcode&quot;&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;height: 35em&quot;&gt;&lt;pre&gt;Выделить код

&amp;lt;!--Спойлер--&amp;gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
#button-spoiler {background-image:url(&#039;http://upforme.ru/uploads/0000/12/13/488-1.gif&#039;); background-repeat: no-repeat; margin-left: 13рх}
&amp;lt;/style&amp;gt;
&amp;lt;script&amp;gt;
function addSpoiler(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf(&amp;quot;[spoiler]&amp;quot;,from))==-1) return str;
if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;),pos+9)==-1) return str;
newpos=str.indexOf(&amp;quot;[spoiler]&amp;quot;,pos+9)
if(newpos&amp;lt;pos2 &amp;amp;&amp;amp; newpos!=-1) str=addSpoiler(str,pos+9,true)
if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;,pos+9))==-1) return str;
str=str.substring(0,pos)+makeSpoiler(str.substring(pos+9,pos2))+str.substring(pos2+10,str.length)
if( str.indexOf(&amp;quot;[spoiler]&amp;quot;)!=-1 &amp;amp;&amp;amp; internal==false) str=addSpoiler(str,0,false)
return str}

function makeSpoiler(txt){
txt=&amp;quot;&amp;lt;div class=quote-box style=&#039;padding:1px&#039;&amp;gt;&amp;lt;cite style=&#039;width:100%&#039;&amp;gt;Спойлер &amp;lt;input style=&#039;width:60px;margin-left:70%;font-size:10px;&#039; type=&#039;button&#039; value=&#039;Показать&#039; onclick=&#039;hideSpoiler(this)&#039;&amp;gt;&amp;lt;/cite&amp;gt;&amp;lt;blockquote style=&#039;display:none&#039;&amp;gt;&amp;quot;+txt+&amp;quot;&amp;lt;/blockquote&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;
return txt}

function hideSpoiler(sp){
spoiler=sp.parentNode.parentNode.getElementsByTagName(&amp;quot;blockquote&amp;quot;)[0]
if(spoiler.style.display==&#039;none&#039;){
spoiler.style.display=&#039;inline&#039;
sp.value=&#039;Скрыть&#039;}
else{
spoiler.style.display=&#039;none&#039;
sp.value=&#039;Показать&#039;}}

if(document.URL.indexOf(&amp;quot;viewtopic.php&amp;quot;)!=-1){
elm=document.getElementById(&amp;quot;pun-main&amp;quot;).getElementsByTagName(&amp;quot;div&amp;quot;)
for(x in elm) if(elm[x].className==&amp;quot;post-content&amp;quot;){
var post=elm[x]
post.innerHTML=addSpoiler(post.innerHTML,0,false)}}
if(form=document.getElementById(&amp;quot;form-buttons&amp;quot;))
form.getElementsByTagName(&amp;quot;tr&amp;quot;)[0].insertCell(19).innerHTML=&amp;quot;&amp;lt;img  id=\&amp;quot;button-spoiler\&amp;quot; title=\&amp;quot;Спойлер\&amp;quot; onclick=\&amp;quot;bbcode(&#039;[spoiler]&#039;,&#039;[/spoiler]&#039;)\&amp;quot; src=\&amp;quot;/i/blank.gif\&amp;quot; /&amp;gt;&amp;quot;
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Ставить в HTML низ или форму ответа&lt;br /&gt;&lt;/p&gt;
						&lt;p&gt;&lt;em class=&quot;bbuline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;/em&gt;&lt;/p&gt;
						&lt;p&gt;Спойлер с отображением в предварительном просмотре сообщения.&lt;/p&gt;&lt;div class=&quot;code-box&quot;&gt;&lt;strong class=&quot;legend&quot;&gt;Код:&lt;/strong&gt;&lt;div class=&quot;blockcode&quot;&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;height: 35em&quot;&gt;&lt;pre&gt;Выделить код

&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
#button-spoiler {background-image:url(&#039;http://upforme.ru/uploads/0000/12/13/488-1.gif&#039;); padding:0; line-height:0; background-position:center; background-repeat:no-repeat}
&amp;lt;/style&amp;gt;
&amp;lt;script&amp;gt;
function addSpoiler(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf(&amp;quot;[spoiler]&amp;quot;,from))==-1) return str;
if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;),pos+9)==-1) return str;
newpos=str.indexOf(&amp;quot;[spoiler]&amp;quot;,pos+9)
if(newpos&amp;lt;pos2 &amp;amp;&amp;amp; newpos!=-1) str=addSpoiler(str,pos+9,true)
if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;,pos+9))==-1) return str;
str=str.substring(0,pos)+makeSpoiler(str.substring(pos+9,pos2))+str.substring(pos2+10,str.length)
if( str.indexOf(&amp;quot;[spoiler]&amp;quot;)!=-1 &amp;amp;&amp;amp; internal==false) str=addSpoiler(str,0,false)
return str}

function makeSpoiler(txt){
txt=&amp;quot;&amp;lt;div class=quote-box style=&#039;padding:1px&#039;&amp;gt;&amp;lt;cite style=&#039;width:100%&#039;&amp;gt;Спойлер &amp;lt;input style=&#039;width:60px;margin-left:70%;font-size:10px;&#039; type=&#039;button&#039; value=&#039;Показать&#039; onclick=&#039;hideSpoiler(this)&#039;&amp;gt;&amp;lt;/cite&amp;gt;&amp;lt;blockquote style=&#039;display:none&#039;&amp;gt;&amp;quot;+txt+&amp;quot;&amp;lt;/blockquote&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;
return txt}

function hideSpoiler(sp){
spoiler=sp.parentNode.parentNode.getElementsByTagName(&amp;quot;blockquote&amp;quot;)[0]
if(spoiler.style.display==&#039;none&#039;){
spoiler.style.display=&#039;inline&#039;
sp.value=&#039;Скрыть&#039;}
else{
spoiler.style.display=&#039;none&#039;
sp.value=&#039;Показать&#039;}}

if((document.URL.indexOf(&amp;quot;viewtopic.php&amp;quot;)!=-1) || (document.URL.indexOf(&amp;quot;post.php&amp;quot;)!=-1)){
elm=document.getElementById(&amp;quot;pun-main&amp;quot;).getElementsByTagName(&amp;quot;div&amp;quot;)
for(x in elm) if(elm[x].className==&amp;quot;post-content&amp;quot;){
var post=elm[x]
post.innerHTML=addSpoiler(post.innerHTML,0,false)}}
if(form=document.getElementById(&amp;quot;form-buttons&amp;quot;))
form.getElementsByTagName(&amp;quot;tr&amp;quot;)[0].insertCell(19).innerHTML=&amp;quot;&amp;lt;img  id=\&amp;quot;button-spoiler\&amp;quot; title=\&amp;quot;Спойлер\&amp;quot; onclick=\&amp;quot;bbcode(&#039;[spoiler]&#039;,&#039;[/spoiler]&#039;)\&amp;quot; src=\&amp;quot;/i/blank.gif\&amp;quot; /&amp;gt;&amp;quot;
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;em class=&quot;bbuline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/em&gt;&lt;/p&gt;
						&lt;p&gt;Переделанный мною скрипт спойлера, чуть более компактный&lt;/p&gt;&lt;div class=&quot;code-box&quot;&gt;&lt;strong class=&quot;legend&quot;&gt;Код:&lt;/strong&gt;&lt;div class=&quot;blockcode&quot;&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;height: 35em&quot;&gt;&lt;pre&gt;Выделить код

&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
function addSpoiler()
{
 var elm = document.getElementById(&amp;quot;pun-main&amp;quot;).getElementsByTagName(&amp;quot;div&amp;quot;);
 for (x in elm)
 if (elm[x].className == &amp;quot;post-content&amp;quot;)
  elm[x].innerHTML = elm[x].innerHTML.replace(/\[spoiler\]/g, &amp;quot;&amp;lt;div class=&#039;quote-box&#039;&amp;gt;&amp;lt;cite onclick=&#039;hideSpoiler(this)&#039; style=&#039;cursor:pointer;cursor:hand;&#039;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;&amp;amp;raquo; Нажмите, для отображения текста &amp;amp;laquo;&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/cite&amp;gt;&amp;lt;blockquote style=&#039;display:none&#039;&amp;gt;&amp;quot;).replace(/\[\/spoiler\]/g, &amp;quot;&amp;lt;/blockquote&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;);
 if(form = document.getElementById(&amp;quot;form-buttons&amp;quot;))
  form.getElementsByTagName(&amp;quot;tr&amp;quot;)[0].insertCell(14).innerHTML = &amp;quot;&amp;lt;img style=&#039;width:37px;height:21px;&#039; onclick=\&amp;quot;bbcode(&#039;[spoiler]&#039;, &#039;[/spoiler]&#039;)\&amp;quot; src=&#039;http://upforme.ru/uploads/0003/41/8c/1728-1.gif&#039; alt=&#039;Спойлер&#039; /&amp;gt;&amp;quot;;
}

function hideSpoiler(sp)
{
 if (spoiler = sp.parentNode.getElementsByTagName(&amp;quot;blockquote&amp;quot;)[0])
 {
  if (spoiler.style.display == &amp;quot;none&amp;quot;) spoiler.style.display = &amp;quot;inline&amp;quot;;
  else spoiler.style.display = &amp;quot;none&amp;quot;;
 }
}

addSpoiler();
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;em class=&quot;bbuline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
						&lt;p&gt;Обновленный спойлер&lt;br /&gt;(с)mkusher&lt;br /&gt;В HTML верх&lt;/p&gt;&lt;div class=&quot;code-box&quot;&gt;&lt;strong class=&quot;legend&quot;&gt;Код:&lt;/strong&gt;&lt;div class=&quot;blockcode&quot;&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;height: 4.5em&quot;&gt;&lt;pre&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://help4us.ru/include/js/jquery.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Возможно этот скрипт у вас уже стоит, если вы к примеру делали выплывающее меню от rps&lt;/p&gt;
						&lt;p&gt;В HTML низ или форма ответа&lt;/p&gt;&lt;div class=&quot;code-box&quot;&gt;&lt;strong class=&quot;legend&quot;&gt;Код:&lt;/strong&gt;&lt;div class=&quot;blockcode&quot;&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;height: 35em&quot;&gt;&lt;pre&gt;Выделить код

&amp;lt;style&amp;gt;
#button-spoiler {background-image:url(&#039;http://upforme.ru/uploads/0000/12/13/488-1.gif&#039;); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
&amp;lt;/style&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
function tag_spoiler(){
	var y = prompt(&amp;quot;Введите описание закрытой кнопки&amp;quot;,&#039;&#039;);
	if(y!=&#039;null&#039; &amp;amp;&amp;amp; y!=&#039;&#039; &amp;amp;&amp;amp; typeof(y)!=&#039;object&#039; &amp;amp;&amp;amp; typeof(y)!=&#039;undefined&#039;){
	var x = prompt(&amp;quot;Введите описание открытой кнопки&amp;quot;,&#039;&#039;);
	if(x==&#039;null&#039; || x==&#039;&#039; || typeof(x)==&#039;object&#039; || typeof(x)==&#039;undefined&#039;) bbcode(&#039;[spoiler=&#039;+y+&#039;]&#039;,&#039;[/spoiler]&#039;); else bbcode(&#039;[spoiler=&#039;+y+&#039;|&#039;+x+&#039;]&#039;,&#039;[/spoiler]&#039;);}
	else bbcode(&#039;[spoiler]&#039;,&#039;[/spoiler]&#039;)
}
function addSpoiler(str,from,internal){
	var pos=0,pos2=0,pos_c=0,pos_l=0,newpos=0,string=&#039;&#039;,close=&#039;&#039;,open=&#039;&#039;;
	if((pos=str.indexOf(&amp;quot;[spoiler&amp;quot;,from))==-1) return str;
	if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;),pos+9)==-1) return str;
	if(((pos_c=str.indexOf(&amp;quot;]&amp;quot;,pos+8))!=-1) &amp;amp;&amp;amp; ((pos_c!=pos+8)&amp;amp;&amp;amp;(pos_c!=pos+9))){
	string = str.substring(pos+9,pos_c);
	if((pos_l = string.indexOf(&amp;quot;|&amp;quot;))!=-1){
close = string.substring(0,pos_l);
open = string.substring(pos_l+1,string.length);
	}
	else{
close = string;
open = string;
	}
	}
	else{
close = &#039;Показать спойлер&#039;;
open = &#039;Скрыть спойлер&#039;;
	}
	newpos=str.indexOf(&amp;quot;[spoiler&amp;quot;,pos+9)
	if(newpos&amp;lt;pos2 &amp;amp;&amp;amp; newpos!=-1) str=addSpoiler(str,pos+9,true)
	if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;,pos+9))==-1) return str;
	str=str.substring(0,pos)+makeSpoiler(str.substring(pos_c+1,pos2),open,close)+str.substring(pos2+10,str.length)
	if( str.indexOf(&amp;quot;[spoiler&amp;quot;)!=-1 &amp;amp;&amp;amp; internal==false) str=addSpoiler(str,0,false)
	return str;
}

function makeSpoiler(txt,open,close){
	txt=&#039;&amp;lt;div class=&amp;quot;quote-box&amp;quot; style=&amp;quot;padding:1px;background: none; border: 0;&amp;quot;&amp;gt;&amp;lt;cite style=&amp;quot;width:100%;margin:0;&amp;quot;&amp;gt;&amp;lt;input id=&amp;quot;&#039;+open+&#039;&amp;quot; class=&amp;quot;spoiler-button&amp;quot; style=&amp;quot;width:140px;font-size:10px; margin:0;&amp;quot; type=&amp;quot;button&amp;quot; value=&amp;quot;&#039;+close+&#039;&amp;quot;&amp;gt;&amp;lt;/cite&amp;gt;&amp;lt;blockquote class=&amp;quot;quote-box&amp;quot; style=&amp;quot;display:none; width: 80%;border: 1px solid black;margin:0;&amp;quot;&amp;gt;&#039;+txt+&#039;&amp;lt;/blockquote&amp;gt;&amp;lt;/div&amp;gt;&#039;
	return txt;
}

$(document).ready(function(){
	$(&amp;quot;div.quote-box &amp;gt; cite &amp;gt; input.spoiler-button&amp;quot;).click(function(){
$(this).parents(&amp;quot;div.quote-box:first&amp;quot;).find(&amp;quot;blockquote.quote-box:first&amp;quot;).toggle(&amp;quot;slow&amp;quot;);
var a = $(this).attr(&#039;value&#039;);$(this).attr(&#039;value&#039;,$(this).attr(&#039;id&#039;));$(this).attr(&#039;id&#039;,a);
	});
});

if((document.URL.indexOf(&amp;quot;viewtopic.php&amp;quot;)!=-1) || (document.URL.indexOf(&amp;quot;post.php&amp;quot;)!=-1)){
	elm=document.getElementById(&amp;quot;pun-main&amp;quot;).getElementsByTagName(&amp;quot;div&amp;quot;)
	for(x in elm) if(elm[x].className==&amp;quot;post-content&amp;quot;){
var post=elm[x]
post.innerHTML=addSpoiler(post.innerHTML,0,false)
	}
}
if(form=document.getElementById(&amp;quot;form-buttons&amp;quot;))
	form.getElementsByTagName(&amp;quot;tr&amp;quot;)[0].insertCell(16).innerHTML=&amp;quot;&amp;lt;img  id=\&amp;quot;button-spoiler\&amp;quot; title=\&amp;quot;Спойлер\&amp;quot; onclick=\&amp;quot;tag_spoiler(&#039;[spoiler]&#039;,&#039;[/spoiler]&#039;)\&amp;quot; src=\&amp;quot;/i/blank.gif\&amp;quot; /&amp;gt;&amp;quot;
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;em class=&quot;bbuline&quot;&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
						&lt;p&gt;Обновлённый спойлер с возможностью задать текст на кнопке.&lt;/p&gt;
						&lt;p&gt;В HTML верх&lt;/p&gt;
						&lt;p&gt;&amp;#160; &amp;#160; &lt;/p&gt;&lt;div class=&quot;code-box&quot;&gt;&lt;strong class=&quot;legend&quot;&gt;Код:&lt;/strong&gt;&lt;div class=&quot;blockcode&quot;&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;height: 4.5em&quot;&gt;&lt;pre&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://help4us.ru/include/js/jquery.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;В HTML низ или форма ответа&lt;/p&gt;&lt;div class=&quot;code-box&quot;&gt;&lt;strong class=&quot;legend&quot;&gt;Код:&lt;/strong&gt;&lt;div class=&quot;blockcode&quot;&gt;&lt;div class=&quot;scrollbox&quot; style=&quot;height: 35em&quot;&gt;&lt;pre&gt;Выделить код

&amp;lt;!--Скрипт спойлера--&amp;gt;
&amp;lt;style&amp;gt;
#button-spoiler {background-image:url(&#039;http://upforme.ru/uploads/000a/45/08/94-4.png&#039;); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
&amp;lt;/style&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
function tag_spoiler(){
	var y = prompt(&amp;quot;Введите текст на кнопке&amp;quot;,&#039;&#039;);
	if(y!=&#039;null&#039; &amp;amp;&amp;amp; y!=&#039;&#039; &amp;amp;&amp;amp; typeof(y)!=&#039;object&#039; &amp;amp;&amp;amp; typeof(y)!=&#039;undefined&#039;){
	var x = prompt(&amp;quot;Введите текст на закрывающей  кнопке&amp;quot;,&#039;&#039;);
	if(x==&#039;null&#039; || x==&#039;&#039; || typeof(x)==&#039;object&#039; || typeof(x)==&#039;undefined&#039;) bbcode(&#039;[spoiler=&#039;+y+&#039;]&#039;,&#039;[/spoiler]&#039;); else bbcode(&#039;[spoiler=&#039;+y+&#039;|&#039;+x+&#039;]&#039;,&#039;[/spoiler]&#039;);}
	else bbcode(&#039;[spoiler]&#039;,&#039;[/spoiler]&#039;)
}
function addSpoiler(str,from,internal){
	var pos=0,pos2=0,pos_c=0,pos_l=0,newpos=0,string=&#039;&#039;,close=&#039;&#039;,open=&#039;&#039;;
	if((pos=str.indexOf(&amp;quot;[spoiler&amp;quot;,from))==-1) return str;
	if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;),pos+9)==-1) return str;
	if(((pos_c=str.indexOf(&amp;quot;]&amp;quot;,pos+8))!=-1) &amp;amp;&amp;amp; ((pos_c!=pos+8)&amp;amp;&amp;amp;(pos_c!=pos+9))){
	string = str.substring(pos+9,pos_c);
	if((pos_l = string.indexOf(&amp;quot;|&amp;quot;))!=-1){
close = string.substring(0,pos_l);
open = string.substring(pos_l+1,string.length);
	}
	else{
close = string;
open = string;
	}
	}
	else{
close = &#039;Открыть спойлер&#039;;
open = &#039;Закрыть&#039;;
	}
	newpos=str.indexOf(&amp;quot;[spoiler&amp;quot;,pos+9)
	if(newpos&amp;lt;pos2 &amp;amp;&amp;amp; newpos!=-1) str=addSpoiler(str,pos+9,true)
	if((pos2=str.indexOf(&amp;quot;[/spoiler]&amp;quot;,pos+9))==-1) return str;
	str=str.substring(0,pos)+makeSpoiler(str.substring(pos_c+1,pos2),open,close)+str.substring(pos2+10,str.length)
	if( str.indexOf(&amp;quot;[spoiler&amp;quot;)!=-1 &amp;amp;&amp;amp; internal==false) str=addSpoiler(str,0,false)
	return str;
}

function makeSpoiler(txt,open,close){
	txt=&#039;&amp;lt;div class=&amp;quot;quote-box&amp;quot; style=&amp;quot;padding:1px;background: none; border: 0;&amp;quot;&amp;gt;&amp;lt;cite style=&amp;quot;width:100%;margin:0;&amp;quot;&amp;gt;&amp;lt;input id=&amp;quot;&#039;+open+&#039;&amp;quot; class=&amp;quot;spoiler-button&amp;quot; style=&amp;quot;width:180px;font-size:11px; margin:0;&amp;quot; type=&amp;quot;button&amp;quot; value=&amp;quot;&#039;+close+&#039;&amp;quot;&amp;gt;&amp;lt;/cite&amp;gt;&amp;lt;blockquote class=&amp;quot;quote-box&amp;quot; style=&amp;quot;display:none; width: 90%;border: 1px solid black;margin:0;&amp;quot;&amp;gt;&#039;+txt+&#039;&amp;lt;/blockquote&amp;gt;&amp;lt;/div&amp;gt;&#039;
	return txt;
}

$(document).ready(function(){
	$(&amp;quot;div.quote-box &amp;gt; cite &amp;gt; input.spoiler-button&amp;quot;).click(function(){
$(this).parents(&amp;quot;div.quote-box:first&amp;quot;).find(&amp;quot;blockquote.quote-box:first&amp;quot;).toggle(&amp;quot;slow&amp;quot;);
var a = $(this).attr(&#039;value&#039;);$(this).attr(&#039;value&#039;,$(this).attr(&#039;id&#039;));$(this).attr(&#039;id&#039;,a);
	});
});

if((document.URL.indexOf(&amp;quot;viewtopic.php&amp;quot;)!=-1) || (document.URL.indexOf(&amp;quot;post.php&amp;quot;)!=-1)){
	elm=document.getElementById(&amp;quot;pun-main&amp;quot;).getElementsByTagName(&amp;quot;div&amp;quot;)
	for(x in elm) if(elm[x].className==&amp;quot;post-content&amp;quot;){
var post=elm[x]
post.innerHTML=addSpoiler(post.innerHTML,0,false)
	}
}
if(form=document.getElementById(&amp;quot;form-buttons&amp;quot;))
	form.getElementsByTagName(&amp;quot;tr&amp;quot;)[0].insertCell(16).innerHTML=&amp;quot;&amp;lt;img  id=\&amp;quot;button-spoiler\&amp;quot; title=\&amp;quot;Спойлер\&amp;quot; onclick=\&amp;quot;tag_spoiler(&#039;[spoiler]&#039;,&#039;[/spoiler]&#039;)\&amp;quot; src=\&amp;quot;/i/blank.gif\&amp;quot; /&amp;gt;&amp;quot;
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
			<author>mybb@mybb.ru (KotoRan)</author>
			<pubDate>Tue, 23 Mar 2010 15:16:07 +0300</pubDate>
			<guid>http://swrolkaspybbpalitra.fanbb.ru/viewtopic.php?pid=7#p7</guid>
		</item>
		<item>
			<title>Памятки</title>
			<link>http://swrolkaspybbpalitra.fanbb.ru/viewtopic.php?pid=3#p3</link>
			<description>&lt;p&gt;Для центрирования используются теги&lt;br /&gt;&amp;lt;center&amp;gt; &amp;lt;/center&amp;gt;&lt;/p&gt;
						&lt;p&gt;Для новой строки тег&lt;br /&gt;&amp;lt;br/&amp;gt;&lt;/p&gt;</description>
			<author>mybb@mybb.ru (KotoRan)</author>
			<pubDate>Tue, 23 Mar 2010 14:59:01 +0300</pubDate>
			<guid>http://swrolkaspybbpalitra.fanbb.ru/viewtopic.php?pid=3#p3</guid>
		</item>
	</channel>
</rss>
