<style>
#button-spoiler {background-image:url('https://forumupload.ru/uploads/0000/12/13/488-1.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
function tag_spolier()
{var FoundErrors = '';
var enterTITLE = prompt("Введите описание спойлера", 'Спойлер');
bbcode('
Свернутый текст
',('|'+enterTITLE+'
'));}
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(19).innerHTML="<img src='/i/blank.gif' title='Вставить спойлер' id='button-spoiler' onclick=\"tag_spolier()\">"
function addSpoilerSpoiler(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("
Свернутый текст
",from))==-1) return str;
if((pos2=str.indexOf("
"),pos+9)==-1) return str;
newpos=str.indexOf("
Свернутый текст
",pos+9)
if(newpos<pos2 && newpos!=-1) str=addSpoiler(str,pos+9,true)
if((pos2=str.indexOf("
",pos+9))==-1) return str;
txt = str.substring(pos+9,pos2);
if((sepPos=txt.indexOf("|",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("[spoiler]")!=-1 && internal==false) str=addSpoilerSpoiler(str,0,false)
return str}
function makeSpoilerSpoiler(txt1,txt2){
txt='<div class="quote-box" style="padding:1px;background: none;border: 0;"><cite style="width:100%;margin:0;"><input class="spoiler-button" style="width:140px;font-size:10px; margin:0; cursor: pointer" type="button" value="'+txt2+'"></cite><blockquote class="quote-box" style="display:none; width: 80%;border: 1px solid black;margin:0;">'+txt1+'</blockquote></div>'
return txt}
$(document).ready(function(){
$("div.quote-box > cite > input.spoiler-button").click(function(){
$(this).parents("div.quote-box").find("blockquote.quote-box").toggle("normal");
});
});
if((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addSpoilerSpoiler(post.innerHTML,0,false)}}
</script>
<script type="text/javascript">
var fld = document.getElementsByClassName("pa-fld5")
for(i=0;i<fld.length;i++){
fld[i].innerHTML=fld[i].innerHTML.substring(fld[i].innerHTML.indexOf(":")+1)
}
</script>
<script type="text/javascript" src="http://neotech.3dn.ru/Tegs/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.mode = 'tags';
flashvars.minFontSize = '12';
flashvars.maxFontSize = '16';
flashvars.tcolor = '0x000000';
flashvars.tcolor2 = '0x000000';
flashvars.hicolor = '0x000000';
flashvars.distr = 'true';
flashvars.tspeed = '100';
eTagz = document.getElementById('yoblako').getElementsByTagName('A');
flashvars.tagcloud = '<tags>';
for (var i=0; eTagz[i]; ++i) flashvars.tagcloud += '<a href=\'' + eTagz[i].getAttribute('href')
+ '\' style=\'' + parseInt(eTagz[i].style.fontSize)
+ '\'>' + eTagz[i].innerHTML.replace(/&/i, '%26') + '</a>';
delete eTagz;
flashvars.tagcloud += '</tags>';
var params = {};
params.wmode = 'transparent';
params.bgcolor = '#FFFFFF';
params.allowscriptaccess = 'always';
var attributes = {};
attributes.id = 'yoblako';
attributes.name = 'tagcloud';
swfobject.embedSWF('http://neotech.3dn.ru/Tegs/tagcloud.swf', 'yoblako', '190', '160', '9.0.0', false, flashvars, params, attributes);
</script>
<!--zippy-audio плеер-->
<script language="javascript">
var popzz;
$(document).ready(function(){
$('td#button-code').before('<td style=\'background-image:url("http://img31.imageshack.us/img31/1875/sound.gif")\' onclick=\'pop4(); bbcode("[audio]вставьте сюда полученную ссылку", "[/audio]");\'><img src="/i/blank.gif" title="Загрузить музыку"></td>');
});
function pop4(){
popzz = window.open("http://www.zippyshare.com/","popDialog","height=330,width=900")
if (!document.all) {popzz.moveTo(100,100);}
return false}
elm=document.getElementsByTagName("div")
for(x in elm)
{if(elm[x].className=="post-content")
{
post = elm[x].innerHTML;
if(post.indexOf("zippyshare.com")) {
player = /\[audio\]http:\/\/www(\d+)\.zippyshare\.com\/v\/(\d+)\/file\.html\[\/audio\]/g
elm[x].innerHTML = elm[x].innerHTML.replace(player, "<br /><embed type='application/x-shockwave-flash' src='http://www.zippyshare.com/mediaplayer/mediaplayer.swf?backcolor=0xFFFFFF&frontcolor=0x3366FF&lightcolor=0xC0C0C0&file=http://www$1.zippyshare.com/downloadMusic%3Fkey%3D$2xx&type=flv' quality='high' menu='false' wmode='transparent' allowscriptaccess='always' height='20' width='400' name='mp3player' border='0' style='margin-bottom: 6px;'/>")
}}}
</script>