diff options
author | Alib <aliboba@free.fr> | 2010-02-25 14:22:49 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-25 14:22:49 +0100 |
commit | c72e1bcc2b818a021c7ff45079e3ecacff53171d (patch) | |
tree | 56959f0d0968455bf6a3e50ef38d0b3f84ef4119 | |
parent | ca4074913b2ad21eac4987df1349fc386fc9b9a7 (diff) | |
download | istreamdev-c72e1bcc2b818a021c7ff45079e3ecacff53171d.tar.gz istreamdev-c72e1bcc2b818a021c7ff45079e3ecacff53171d.tar.bz2 |
debug js
-rwxr-xr-x | includes/inc_audio.php | 4 | ||||
-rwxr-xr-x | javascript/functions.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/includes/inc_audio.php b/includes/inc_audio.php index 04d3a12..de7b616 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -71,12 +71,12 @@ if ($medianame_array[0]) for ($cnt2=$cnt; $cnt2<$count; $cnt2++) { - $track[$cnt2] = $httppath."playlist/".$medianame2; + $track[$cnt2-$cnt] = $httppath."playlist/".$medianame2; } $jsarray = php2js($track); - print " <a class=\"noeffect\" href=\"javascript:var myarray = new Array({$jsarray});addplayer(myarray);document.player.Play();\">\r\n"; + print " <a class=\"noeffect\" href=\"javascript:var myarray = new Array({$jsarray});addplayer('{$mediapath}{$subdir}','{$medianame2}',myarray);document.player.Play();\">\r\n"; print " <span class=\"number\">$idx</span><span class=\"stop\"></span><span class=\"name\">{$medianame_array[$cnt]}</span>\r\n"; print " </a>\r\n"; diff --git a/javascript/functions.js b/javascript/functions.js index 39927e4..fd72eab 100755 --- a/javascript/functions.js +++ b/javascript/functions.js @@ -192,7 +192,7 @@ function checkform() }
-function addplayer(track) {
+function addplayer(path,name,track) {
playercode= "<embed target='myself' src=track[0] width='0' height='0' autoplay='false' type='audio/mp3' loop='true' controller='false' ";
@@ -202,6 +202,7 @@ function addplayer(track) { }
playercode+= "</embed>";
+ playmusic(path,name);
document.getElementById('div_player').innerHTML = playercode;
}
|