diff options
Diffstat (limited to 'javascript')
-rwxr-xr-x | javascript/functions.js | 8 |
1 files changed, 4 insertions, 4 deletions
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;
}
|