В HTML низ:
<style type="text/css">/* кнопка загрузки музыки */ #button-upload_music {background-image:url('http://s12.radikal.ru/i185/1007/ed/d953117cfeb0.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat} </style> <script type="text/javascript"> if(form=document.getElementById("form-buttons")) form.getElementsByTagName("tr")[0].insertCell(17).innerHTML="<a href=\"http://www.zippyshare.com/?locale=ru&key=\" target=\"_blank\"><img src='/i/blank.gif' img title='Закачать музыку' id='button-upload_music'/></a>" </script><!--конец скрипта кнопка загрузки музыки--> <style type="text/css">/* audio плеер v.1 от Romych*/ #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} </style> <script language="javascript"> function tag_play() {var FoundErrors = ''; var enterURL = prompt("Введите ссылку на на музыку с playfile.ru, yandex.ru, filehoster.ru, zippyshare.com или прямую ссылку формата .mp3 ", "http://"); if (!enterURL) {FoundErrors += " " + error_no_url;} if (FoundErrors) {alert("Ошибка!" + FoundErrors); return;} insert("[audio]" + enterURL + "[/audio]");} if ((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){ elm=document.getElementsByTagName("div") for(x in elm) { if(elm[x].className=="post-content") { post = elm[x].innerHTML; if(post.indexOf("http://playfile.ru")) { player = /\[audio\](.*?)\/get\/(\d+)\/\[\/audio\]/g elm[x].innerHTML = elm[x].innerHTML.replace(player, "<br /><embed src='http://playfile.ru/images/player.swf' flashvars='st=http://playfile.ru/images/player_style_audio.inc&file=http://playfile.ru/load/$2/' type='application/x-shockwave-flash' id='videoplayer757' wmode='transparent' width='230' height='36'>") } if(post.indexOf("http://static.video.yandex.ru/lite-audio")) { player = /\[audio\]\[flash=([0-9]+)\,([0-9]+)\,(.*?)\/lite-audio\/(.*?)\[\/audio\]/g elm[x].innerHTML = elm[x].innerHTML.replace(player, "<br /><embed src='http://static.video.yandex.ru/lite-audio/$4' type='application/x-shockwave-flash' width='300' height='72' allowFullScreen='true' scale='noscale'/>") } if(post.indexOf("http://www.filehoster.ru")) { player = /\[audio\]http:\/\/www\.filehoster\.ru\/files\/(.*?)\[\/audio\]/g elm[x].innerHTML = elm[x].innerHTML.replace(player, "<br /><embed src='http://www.filehoster.ru/player/' flashvars='dataurl=$1' type='application/x-shockwave-flash' width='350' height='50' allowFullScreen='sameDomain' wmode='transparent'>") } 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?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;'/>") } if(post.indexOf(".mp3")) { player = /\[audio\](.*?)\[\/audio\]/g elm[x].innerHTML = elm[x].innerHTML.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'>") } }}} if(form=document.getElementById("form-buttons")) form.getElementsByTagName("tr")[0].insertCell(15).innerHTML="<img src='/i/blank.gif' img title='Воспроизвести закаченное' id='button-play' onclick=\"tag_play()\"/>" </script><!-- Конец скрипта audio плеер v.1 -->