mp3 на http://playfile.ru/
Бесплатный хостинг, без регистрации, максимальный допустимый размер файла: 110 MB
время хранения файла "НЕ ОГРАНИЧЕНО"
в html-низ:
Код:
<script type="text/javascript">
function addSpoiler(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("[playf]",from))==-1) return str;
if((pos2=str.indexOf("[/playf]"),pos+8)==-1) return str;
newpos=str.indexOf("[playf]",pos+8)
if(newpos<pos2 && newpos!=-1) str=addSpoiler(str,pos+8,true)
if((pos2=str.indexOf("[/playf]",pos+8))==-1) return str;
str=str.substring(0,pos)+makeSpoiler(str.substring(pos+7,pos2))+str.substring(pos2+8,str.length)
if( str.indexOf("[playf]")!=-1 && internal==false) str=addSpoiler(str,0,false)
return str
}
function makeSpoiler(txt){
txt='<br /><embed type="application/x-shockwave-flash" id="videoplayer757" src="http://playfile.ru/images/player.swf" quality="high" allowscriptaccess="always" flashvars="st=http://playfile.ru/images/player_style_audio.inc&file=http://playfile.ru/load/'+txt+'/" width="230" height="36">';
return txt;
}
if(document.URL.indexOf("viewtopic.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=addSpoiler(post.innerHTML,0,false)}}
</script>кнопка в форму ответа:
Код:
<style>
#button-play {background-image:url('http://img31.imageshack.us/img31/1875/sound.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
var popup;
function popplayfile()
{
popup = window.open("http://www.playfile.ru/","popDialog","height=380,width=650")
if (!document.all) {popup.moveTo(100,100);}
return false
}
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(19).innerHTML="<img src='/i/blank.gif' img title='Загрузить музыку' alt='Загрузить музыку' id='button-play' onclick=\"popplayfile(); bbcode('[playf]', '[/playf]');\"/>"
</script>Инструкции по применению.



