← Форум / Вопросы / "Файл не найден"
Пишет файл не найден, хотя все верно.
Вставляю плеер в обменник.
Он содержит ссылки вида
Код:
Плеер показывается, но сверху пишет файл не найден.
Вставляю плеер в обменник.
Он содержит ссылки вида
http://site.ru/obmen/Papka/file.mp3?showinfo
— это страница. Файл без ?showinfo.Код:
<script type=text/javascript>
var width = screen.width-30;
var loc = location.href;
var fileplay = loc.split('?');
document.write("<center><div id='audioplayer' style='width:"+width+"px;height:50px'></div></center>");
this.audioplayer = new Uppod({m:"audio",comment:"",uid:"audioplayer",file:fileplay[0]});
</script>
var width = screen.width-30;
var loc = location.href;
var fileplay = loc.split('?');
document.write("<center><div id='audioplayer' style='width:"+width+"px;height:50px'></div></center>");
this.audioplayer = new Uppod({m:"audio",comment:"",uid:"audioplayer",file:fileplay[0]});
</script>
Плеер показывается, но сверху пишет файл не найден.
mrholler | Ссылка на пост (Смотрели 1292) | 31.03.17 14:11 Ответить |
var width = screen.width-30;
var loc = location.href;
var fileplay = loc.slice(0, -9);
document.write("<center><div id='audioplayer' style='width:"+width+"px;height:50px'></div></center>");
this.audioplayer = new Uppod({m:"audio",comment:"NoComment",uid:"audioplayer",file:fileplay});
</script>
Но тоже не работает.