хмм..отображаются не все цвета..
и ещё у меня получается так, что когда я нажимаю на копку загрузки музыки, то у меня автоматически открывается и другая кнопка - выравнивание по левому или правому краю...
<!--обтекание изображения 2.4.4--> <script language="javascript"> $(function(){ $('td#button-link').before('<td id="floatbut" style=\'background-image:url("http://forumupload.ru/uploads/000e/fd/4b/80-1.png")\'></td>'); $('#floatbut, .vibor').click(function(){ $('div#float').toggle();}); }); elm=document.getElementsByTagName("div") for(x in elm) if(elm[x].className=="post-content") { post = elm[x].innerHTML; if(post.indexOf("[/float]") != -1) { floats = /\[float=(.*?)\]([^\[]*)\[\/float\]/gi elm[x].innerHTML = elm[x].innerHTML.replace(floats, "<span style='float: $1; margin: 15px; text-align: $1;'>$2</span>") }} </script> <div id="float" style="display:none;background: #ab9575;border:1px solid black; width:auto; padding:8px; position:absolute; margin-top:-32%; margin-left:35%; z-index:20"> <div><strong>Направление обтекания</strong></div><br> <div align="center"> <img class="vibor" src="http://forumupload.ru/uploads/000e/fd/4b/80-2.png" title="left" onclick="bbcode('[float=left]', '[/float]')" /> <img class="vibor" src="http://forumupload.ru/uploads/000e/fd/4b/80-3.png" title="right" onclick="bbcode('[float=right]', '[/float]')" /> </div></div>
<!--audio плеер (special edition)v.2--> <script language="javascript"> $(function(){ $('td#button-video').before('<td id="floatbut" style=\'background-image:url("http://forumupload.ru/uploads/000e/fd/4b/79-2.png")\' onclick=\'changeVisibility("audio")\'></td>'); }); 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?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;'/>") } if(post.indexOf("http://rghost.ru")) { player = /\[audio\](.*?)\/(\d+)\[\/audio\]/g elm[x].innerHTML = elm[x].innerHTML.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(post.indexOf("http://www.aimini.net")) { player = /\[audio\](.*?)\?fid=([a-zA-Z0-9]{1})([a-zA-Z0-9]{1})([a-zA-Z0-9]{1})([a-zA-Z0-9]{1})([a-zA-Z0-9]{16})\[\/audio\]/g elm[x].innerHTML = elm[x].innerHTML.replace(player, "<br /><embed src='http://$5.$4.$3.$2.aimini.net/player/mp3/?file=http://$5.$4.$3.$2.aimini.net/play/?fid=$2$3$4$5$6&auto=no&repeat=yes' width='380' height='120' type='application/x-shockwave-flash' wmode='transparent'>") } 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'>") }} var popup, popupp, pop, popzz, poprg, popam, popfl; function pop1(){ popup = window.open("http://www.playfile.ru/","popDialog","height=380,width=650") if (!document.all) {popup.moveTo(100,100);} return false} function pop2(){ popupp = window.open("http://www.yapfiles.ru/","popDialog","height=200,width=700") if (!document.all) {popupp.moveTo(100,100);} return false} function pop3(){ pop = window.open("http://klopp.net.ru/files/","popDialog","height=380,width=440") if (!document.all) {pop.moveTo(100,100);} return false} function pop4(){ popzz = window.open("http://www.zippyshare.com/","popDialog","height=40%,width=80%") if (!document.all) {popzz.moveTo(100,100);} return false} function pop5(){ poprg = window.open("http://rghost.ru/","popDialog","height=380,width=440") if (!document.all) {poprg.moveTo(100,100);} return false} function pop6(){ popam = window.open("http://aimini.net/","popDialog","height=380,width=440") if (!document.all) {popam.moveTo(100,100);} return false} function pop7(){ popfl = window.open("http://www.filehoster.ru/","popDialog","height=380,width=440") if (!document.all) {popfl.moveTo(100,100);} return false} function pop8(){ poppro = window.open("http://prostopleer.com/#/upload","popDialog","height=380,width=440") if (!document.all) {poppro.moveTo(100,100);} return false} function tag_play() {var FoundErrors = ''; var enterURL = prompt("Введите ссылку на музыку с ресурсов из списка или прямую ссылку формата .mp3 ", "http://"); if (!enterURL) {FoundErrors += " " + error_no_url;} if (FoundErrors) {alert("Ошибка!" + FoundErrors); return;} insert("[audio]" + enterURL + "[/audio]");} </script> <div class="container" id="audio" style="display:none;width:auto;padding:8px;position:absolute;margin-top:-32%;margin-left:40%;z-index:20"> <div><strong>Выберите аудиохостинг</strong></div><br> <div> <a href="#playfile.ru" onclick="pop1(); tag_play(); changeVisibility('audio')">playfile.ru</a>, <a href="#yapfiles.ru" onclick="pop2(); tag_play(); changeVisibility('audio')">yapfiles.ru</a>, <a href="#klopp.net.ru" onclick="pop3(); tag_play(); changeVisibility('audio')">klopp.net.ru</a>, <a href="#zippyshare.com" onclick="pop4(); tag_play(); changeVisibility('audio')">zippyshare.com</a>,<br> <a href="#rghost.ru" onclick="pop5(); tag_play(); changeVisibility('audio')">rghost.ru</a>, <a href="#aimini.net" onclick="pop6(); tag_play(); changeVisibility('audio')">aimini.net</a>, <a href="#filehoster.ru" onclick="pop7(); tag_play(); changeVisibility('audio')">filehoster.ru</a>, <a href="#prostopleer.com" onclick="pop8(); tag_play(); changeVisibility('audio')">prostopleer.com</a> </div></div>