summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/inc_audio.php2
-rwxr-xr-xjavascript/functions.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/includes/inc_audio.php b/includes/inc_audio.php
index de7b616..414b885 100755
--- a/includes/inc_audio.php
+++ b/includes/inc_audio.php
@@ -88,7 +88,7 @@ if ($medianame_array[0])
print("</div>");
- print "<div style=\"position:absolute; left:0; top:0\" id=\"div_player\">\r\n";
+ print "<div style=\"position:absolute; left:0; top:0\" name=\"div_player\" id=\"div_player\">\r\n";
print("</div>");
}
diff --git a/javascript/functions.js b/javascript/functions.js
index fd72eab..050ba0a 100755
--- a/javascript/functions.js
+++ b/javascript/functions.js
@@ -195,14 +195,14 @@ function checkform()
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' ";
-
- for ( var i=1; i=track.length; i+=1 ){
+ playercode= "<embed target='myself' src='" + track[0] + "' width='0' height='0' autoplay='false' name='player' type='audio/mp3' loop='true' controller='false' ";
+ for ( var i=1; i<track.length; i+=1 ){
playercode += "qtnext" + i + "='<" + track[i] + ">' ";
}
- playercode+= "</embed>";
+ playercode+= "></embed>";
playmusic(path,name);
+ alert(playercode);
document.getElementById('div_player').innerHTML = playercode;
}