Не нравятся результаты поиска? Попробуйте другой поиск!
DLE FAQ » Все вопросы » Общие вопросы » Подскажите где ошибка

Подскажите где ошибка


     15.02.2014    Все вопросы » Общие вопросы    2547

вопрос
Доброго времени суток, подскажите в чем ошибка?
jQuery().ready(function buildPlayer() {
    jQuery("body").append('<div class="zp-html-player"><div class="zp-player-hint" id="zp-player-timer">0:00</div> <div class="zp-player-buttonpane"> <span class="zp-player-button play" onclick="zpPlayerCmd(\'play\');"></span> <span class="zp-player-button pause" onclick="zpPlayerCmd(\'pause\');" style="display:none;"></span> <span class="zp-player-button stop disabled" onclick="zpPlayerCmd(\'stop\');"></span> </div> <div class="zp-player-progress-bar"> <div class="zp-player-progress-bar-loaded"></div> <div class="zp-player-progress-bytes-loaded"></div> <div class="zp-player-progress-unlim"></div> <span id="zp-player-spinner"></span> </div> <div class="zp-player-timer curtime">0:00</div> <div class="zp-player-timer alltime">0:00</div> <div class="zp-player-title-container"><div class="zp-player-title-container-inn"><div class="zp-player-title-text"><marquee width="250" height="24" behavior="alternate" loop="-1" scrolldelay="100" scrollamount="2"><span>----</span></marquee></div></div></div> <div class="zp-player-volume-container" align="left"><div class="zp-player-volume-cur"></div><div class="zp-player-volume-bg"></div></div> <span class="zp-player-close" onclick="zpPlayerClose();"></span> </div> <div style="position:absolute; top:-1px; left:0px; width:1px; height:1px; overflow:hiden;"> <object height="1" width="1" data="'+dle_root+'templates/'+dle_skin+'/music/uppod.swf" type="application/x-shockwave-flash" id="zpaudioplayer"> <param value="true" name="allowFullScreen"> <param value="always" name="allowScriptAccess"> <param value="transparent" name="wmode"> <param value="'+dle_root+'templates/'+dle_skin+'/music/uppod.swf" name="movie"> <param value="comment=null&amp;st='+dle_root+'templates/'+dle_skin+'/music/music.txt&amp;file=http://www{$zserv}.zippyshare.com/downloadMusic?key={$zfile}xx&amp;uid=zpaudioplayer" name="flashvars"></object> </div>');
    jQuery(".zp-html-player").draggable();
    window.zpPlayerHtml = true;
});

var Url='mp3';
var zippywww=Url.split('www')[1].split('.')[0];
var zippyfile=Url.split('/')[4].split('/')[0];
var zpplayeraudiotitle = "";
var zpplayertrimpos = 0;
var zpPlayerHtml = false;
var zpPlayerLoaded = false;
var zpPlayerRadioMode = false;
var zpPlayerOnInit = "";
var zpPlayerOnEnd = "";
var zpPlayerNumber = "";

function zpPlayerLoad(furl, title, number) {
    if(!zpPlayerLoaded) {
        ShowLoading("");
        window.zpPlayerOnInit = "zpPlayerLoad('"+furl+"', '"+title+"');";
        return false;
    }
    else {

стремлюсь к тому чтобы плеер проигрывал треки с zippyshare.com, и чтобы ссылка бралась из дополнительного поля такого вида:http://www21.zippyshare.com/v/74757356/file.html
вот код до моего редактирования
jQuery().ready(function buildPlayer() {
    jQuery("body").append('<div class="zp-html-player"><div class="zp-player-hint" id="zp-player-timer">0:00</div> <div class="zp-player-buttonpane"> <span class="zp-player-button play" onclick="zpPlayerCmd(\'play\');"></span> <span class="zp-player-button pause" onclick="zpPlayerCmd(\'pause\');" style="display:none;"></span> <span class="zp-player-button stop disabled" onclick="zpPlayerCmd(\'stop\');"></span> </div> <div class="zp-player-progress-bar"> <div class="zp-player-progress-bar-loaded"></div> <div class="zp-player-progress-bytes-loaded"></div> <div class="zp-player-progress-unlim"></div> <span id="zp-player-spinner"></span> </div> <div class="zp-player-timer curtime">0:00</div> <div class="zp-player-timer alltime">0:00</div> <div class="zp-player-title-container"><div class="zp-player-title-container-inn"><div class="zp-player-title-text"><marquee width="250" height="24" behavior="alternate" loop="-1" scrolldelay="100" scrollamount="2"><span>----</span></marquee></div></div></div> <div class="zp-player-volume-container" align="left"><div class="zp-player-volume-cur"></div><div class="zp-player-volume-bg"></div></div> <span class="zp-player-close" onclick="zpPlayerClose();"></span> </div> <div style="position:absolute; top:-1px; left:0px; width:1px; height:1px; overflow:hiden;"> <object height="1" width="1" data="'+dle_root+'templates/'+dle_skin+'/music/uppod.swf" type="application/x-shockwave-flash" id="zpaudioplayer"> <param value="true" name="allowFullScreen"> <param value="always" name="allowScriptAccess"> <param value="transparent" name="wmode"> <param value="'+dle_root+'templates/'+dle_skin+'/music/uppod.swf" name="movie"> <param value="comment=null&amp;st='+dle_root+'templates/'+dle_skin+'/music/music.txt&amp;file=no.mp3&amp;uid=zpaudioplayer" name="flashvars"> </object> </div>');
    jQuery(".zp-html-player").draggable();
    window.zpPlayerHtml = true;
});

var zpplayeraudiourl = "";
var zpplayeraudiotitle = "";
var zpplayertrimpos = 0;
var zpPlayerHtml = false;
var zpPlayerLoaded = false;
var zpPlayerRadioMode = false;
var zpPlayerOnInit = "";
var zpPlayerOnEnd = "";
var zpPlayerNumber = "";

Ответа пока нет


Чтобы комментировать - войдите или зарегистрируйтесь на сайте

Похожие вопросы

наверх