<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[toribash.ru &mdash; New Spoiler]]></title>
	<link rel="self" href="https://toribash.ru/extern.php?action=feed&amp;tid=9688&amp;type=atom" />
	<updated>2010-10-19T10:50:02Z</updated>
	<generator>PunBB</generator>
	<id>https://toribash.ru/viewtopic.php?id=9688</id>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=188234#p188234" />
			<content type="html"><![CDATA[<p>у нас уже на форуме стоит такой, и выглядит получше чем 4ббшевский.  попробуйте, поставте вдруг понравица</p>]]></content>
			<author>
				<name><![CDATA[BaTHblU]]></name>
				<uri>https://toribash.ru/profile.php?id=351</uri>
			</author>
			<updated>2010-10-19T10:50:02Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=188234#p188234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=188230#p188230" />
			<content type="html"><![CDATA[<p>Согласен в принципе =)<br />Но с этим не получается вложить спойлер внутри спойлера, так что это лучше намного =)</p>]]></content>
			<author>
				<name><![CDATA[Korvin]]></name>
				<uri>https://toribash.ru/profile.php?id=11</uri>
			</author>
			<updated>2010-10-19T10:41:53Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=188230#p188230</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=188228#p188228" />
			<content type="html"><![CDATA[<p>[spoiler][img]http://toribash.4bb.ru/img/avatars/0002/55/76/2-1284397360.gif[/img]|Лол[/spoiler]<br />Эммм да =)</p>]]></content>
			<author>
				<name><![CDATA[Korvin]]></name>
				<uri>https://toribash.ru/profile.php?id=11</uri>
			</author>
			<updated>2010-10-19T10:38:47Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=188228#p188228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=188225#p188225" />
			<content type="html"><![CDATA[<p>[b]Sylar95[/b]<br />Я в коде не силён, но это и предлагают же вроде.</p>]]></content>
			<author>
				<name><![CDATA[Разбойник]]></name>
				<uri>https://toribash.ru/profile.php?id=251</uri>
			</author>
			<updated>2010-10-19T10:34:42Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=188225#p188225</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=188218#p188218" />
			<content type="html"><![CDATA[<p>[spoiler=ololo] ololo text [/spoiler]<br />так нельзя сделать?</p>]]></content>
			<author>
				<name><![CDATA[Sylar95]]></name>
				<uri>https://toribash.ru/profile.php?id=137</uri>
			</author>
			<updated>2010-10-19T10:07:03Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=188218#p188218</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=188191#p188191" />
			<content type="html"><![CDATA[<p>А я за кстати.<br />Проще разбираться будет.</p>]]></content>
			<author>
				<name><![CDATA[Разбойник]]></name>
				<uri>https://toribash.ru/profile.php?id=251</uri>
			</author>
			<updated>2010-10-19T09:05:25Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=188191#p188191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=187217#p187217" />
			<content type="html"><![CDATA[<p>[b]Korvin[/b]<br />Я знаю)<br />Но просто скинул :о<br />Мб захотят на свой форум запилить :3<br />Короче </p><div class="quotebox"><cite>Statik пишет:</cite><blockquote><p>на ваше усмотрение )</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Fesh]]></name>
				<uri>https://toribash.ru/profile.php?id=112</uri>
			</author>
			<updated>2010-10-17T12:26:37Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=187217#p187217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=187214#p187214" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Statik пишет:</cite><blockquote><p>т.к тут они кривые :О</p></blockquote></div><p>Очевидно что там где стоят спойлера просто идет ББ код &quot;[spoiler]&quot;.<br />А если что то можно редактнуть твой пост и увидеть все =)</p>]]></content>
			<author>
				<name><![CDATA[Korvin]]></name>
				<uri>https://toribash.ru/profile.php?id=11</uri>
			</author>
			<updated>2010-10-17T12:22:32Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=187214#p187214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=187210#p187210" />
			<content type="html"><![CDATA[<p>Хз хз.<br />Но когда я только зарегался меня затруждало слово &quot;Спойлер&quot;<br />Вот сылка с архивом в котором лижат 2 кода т.к тут они кривые :О<br /><a href="http://rghost.ru/2949329">http://rghost.ru/2949329</a></p>]]></content>
			<author>
				<name><![CDATA[Fesh]]></name>
				<uri>https://toribash.ru/profile.php?id=112</uri>
			</author>
			<updated>2010-10-17T12:19:19Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=187210#p187210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=187206#p187206" />
			<content type="html"><![CDATA[<p>Одному мне кажется что это лишнее?<br />Если нужно то &quot;Показать спойлер&quot; можно заменить на просто &quot;показать&quot;. Но если честно это идиотизм</p>]]></content>
			<author>
				<name><![CDATA[Korvin]]></name>
				<uri>https://toribash.ru/profile.php?id=11</uri>
			</author>
			<updated>2010-10-17T12:17:34Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=187206#p187206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[New Spoiler]]></title>
			<link rel="alternate" href="https://toribash.ru/viewtopic.php?pid=187201#p187201" />
			<content type="html"><![CDATA[<p>Вот вам спойлер :3<br />теперь это выглядит не просто - &quot;Показать спойлер&quot;,<br />а всё что угодно - &quot;Жми&quot;, &quot;Новость&quot;, &quot;Стихи&quot; и т.д.<br />зачем мне это нужно? да потому что некоторые пользователи пугаются нового для себя слова - СПОЙЛЕР - что это?! а вдруг там вирус?!    ропщут они,<br />что там за кот в мешке? а тут тебе кратко и ясно - Новость или Кот в мешке)<br />п.с-на ваше усмотрение )<br />Верх htlm<br /></p><div class="codebox"><pre><code>&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;</code></pre></div><p>Низ htlm<br /></p><div class="codebox"><pre><code>&lt;style&gt;
#button-spoiler {background-image:url(&#039;http://karpoff.5bb.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%}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function tag_spolier()
{var FoundErrors = &#039;&#039;;
var enterTITLE = prompt(&quot;Введите описание спойлера&quot;, &#039;Спойлер&#039;);
bbcode(&#039;[spoiler]&#039;,(&#039;|&#039;+enterTITLE+&#039;[/spoiler]&#039;));}
if(form=document.getElementById(&quot;form-buttons&quot;))
form.getElementsByTagName(&quot;tr&quot;)[0].insertCell(19).innerHTML=&quot;&lt;img src=&#039;/i/blank.gif&#039; title=&#039;Вставить спойлер&#039; id=&#039;button-spoiler&#039; onclick=\&quot;tag_spolier()\&quot;&gt;&quot;
function addSpoilerSpoiler(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf(&quot;[spoiler]&quot;,from))==-1) return str;
if((pos2=str.indexOf(&quot;[/spoiler]&quot;),pos+9)==-1) return str;
newpos=str.indexOf(&quot;[spoiler]&quot;,pos+9)
if(newpos&lt;pos2 &amp;&amp; newpos!=-1) str=addSpoiler(str,pos+9,true)
if((pos2=str.indexOf(&quot;[/spoiler]&quot;,pos+9))==-1) return str;

txt = str.substring(pos+9,pos2);
if((sepPos=txt.indexOf(&quot;|&quot;,0))==-1) return str;

str=str.substring(0,pos)+makeSpoilerSpoiler(txt.substring(0,sepPos),txt.substring(sepPos+1,txt.length))+str.substring(pos2+10,str.length)

if( str.indexOf(&quot;[spoiler]&quot;)!=-1 &amp;&amp; internal==false) str=addSpoilerSpoiler(str,0,false)
return str}

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

$(document).ready(function(){
     $(&quot;div.quote-box &gt; cite &gt; input.spoiler-button&quot;).click(function(){
$(this).parents(&quot;div.quote-box&quot;).find(&quot;blockquote.quote-box&quot;).toggle(&quot;normal&quot;);
     });
});


if((document.URL.indexOf(&quot;viewtopic.php&quot;)!=-1) || (document.URL.indexOf(&quot;post.php&quot;)!=-1)){
elm=document.getElementById(&quot;pun-main&quot;).getElementsByTagName(&quot;div&quot;)
for(x in elm) if(elm[x].className==&quot;post-content&quot;){
var post=elm[x]
post.innerHTML=addSpoilerSpoiler(post.innerHTML,0,false)}}
&lt;/script&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Fesh]]></name>
				<uri>https://toribash.ru/profile.php?id=112</uri>
			</author>
			<updated>2010-10-17T12:02:44Z</updated>
			<id>https://toribash.ru/viewtopic.php?pid=187201#p187201</id>
		</entry>
</feed>
