Код:
<!--audio плеер (special edition)v.2 обновленный-->
<script language="javascript">
$(function(){
$('td#button-video').before('<td id="floatbut" style=\'background-image:url("http://s3.uploads.ru/mGabL.png")\' onclick="tag_play()"></td>');
$("div.post-content, li.pa-title").map(function () {
text = $(this).html();
if(text.indexOf("[/playf]") != -1) {
changer = /\[playf\](\d+)\[\/playf\]/g
$(this).html(text.replace(changer, "[audio]http://playfile.ru/get/$1/[/audio]"));
}
if(text.indexOf("prostopleer.com") != -1) {
player = /\[audio\](.*?)\/tracks\/(.*?)\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed src='http://embed.prostopleer.com/track?id=$2' type='application/x-shockwave-flash' wmode='transparent' width='411' height='28'></embed>"));
}
if(text.indexOf("zippyshare.com") != -1) {
player = /\[audio\]http:\/\/www(\d+)\.zippyshare\.com\/v\/(\d+)\/file\.html\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed type='application/x-shockwave-flash' src='http://api.zippyshare.com/api/mediaplayer/mediaplayer.swf' flashvars='height=20&width=400&file=http://www$1.zippyshare.com/downloadMusic%3Fkey%3D$2%26&volume=80&autostart=false&frontcolor=0x000000&backcolor=0xffffff&lightcolor=0x000000&type=flv' quality='high' menu='false' wmode='transparent' allowscriptaccess='always' height='20' width='400' name='mp3player' border='0' style='margin-bottom: 6px;'/>"));}
if(text.indexOf("http://rghost.ru") != -1) {
player = /\[audio\](.*?)\/(\d+)\[\/audio\]/g
$(this).html(text.replace(player, "<br /><object height='15' width='455' type='application/x-shockwave-flash' data='http://rghost.ru/flash/mediaplayer.swf' id='preview_mp3' style='visibility: visible;'><param name='flashvars' value='file=http://rghost.ru/download/action/$2/mp3&streamer=http://rghost.ru/download/action/$2/mp3'></object>"));
}
if(text.indexOf(".mp3") != -1) {
player = /\[audio\](.*?)\[\/audio\]/g
$(this).html(text.replace(player, "<br /><embed src='http://www.demo-music.ru/pleer/pleer4.swf' type='application/x-shockwave-flash' allowscriptaccess='always' wmode='transparent' flashvars='comment=demo-music.ru&st=http://www.demo-music.ru/pleer/style_pleer.txt&file=$1' width='470' height='33'>"));
} }); });
var popup, popupp, pop, popzz, poprg, popam, popfl;
function tag_play()
{var FoundErrors = '';
var pop = window.open("","popDialog","height=270,width=800,Scrollbars=1")
pop.document.open();
// генерировать новый документ
pop.document.write("<html><head><title>Player");
pop.document.write("</title></head><body>");
pop.document.write("<center><font size=+4>");
pop.document.write("<strong>");
pop.document.write("Выберите аудиохостинг:");
pop.document.write("</strong>");
pop.document.write("</br>");
pop.document.write("</font></center>");
pop.document.write("<center><font size=+3>");
pop.document.write("<strong>");
pop.document.write("<a href='http://www.zippyshare.com/?locale=ru'>");
pop.document.write("zippyshare.com");
pop.document.write("</a>");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write("<a href='http://rghost.ru'>");
pop.document.write("rghost.ru");
pop.document.write("</a>");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write("<a href='http://prostopleer.com'>");
pop.document.write("prostopleer.com");
pop.document.write("</a>");
pop.document.write("</br>");
pop.document.write("</br>");
pop.document.write("</strong>");
pop.document.write("</font></center>");
pop.document.write("<center><font size=+2><font color=#FF0000>");
pop.document.write("<strong>");
pop.document.write("<i>");
pop.document.write("Полученную ссылку на аудиофайл вставьте вместо:");
pop.document.write("</br>");
pop.document.write("[object Window]");
pop.document.write("</i>");
pop.document.write("</strong>");
pop.document.write("</font></font></center>");
pop.document.write("</body></html>");
pop.document.close();
if (!document.all) {pop.moveTo(100,100);}
if (FoundErrors)
{alert("Ошибка!" + FoundErrors);
return ;}
insert("[audio]" + pop + "[/audio]");}
</script>

установлено 10 обложек.
Администратор
Модератор
Модератор
Модератор
Модератор
Модератор
Модератор












