Some help witht he music player code?
Page 1 of 1
Some help witht he music player code?
What kind of directory can i add for this javascript to accept the songs i want? for example do i need to add between the '' the destination in my computer?do i have to upload the song first? or what?
$(function() {
var audio = {
loop : true,
autoplay : true,
controls : true,
source : {
mp3 : '',
ogg : '',
wav : ''
}
},
node = document.createElement('AUDIO'), i, j, src;
for (i in audio) {
if (audio[i].constructor != Object) node[i] = audio[i];
else {
for (j in audio[i]) {
if (audio[i][j]) {
src = document.createElement('SOURCE');
src.src = audio[i][j];
src.type = 'audio/' + (j == 'mp3' ? 'mpeg' : j);
node.appendChild(src);
}
}
}
}
document.body.appendChild(node);
'par ange tuteur';
});
$(function() {
var audio = {
loop : true,
autoplay : true,
controls : true,
source : {
mp3 : '',
ogg : '',
wav : ''
}
},
node = document.createElement('AUDIO'), i, j, src;
for (i in audio) {
if (audio[i].constructor != Object) node[i] = audio[i];
else {
for (j in audio[i]) {
if (audio[i][j]) {
src = document.createElement('SOURCE');
src.src = audio[i][j];
src.type = 'audio/' + (j == 'mp3' ? 'mpeg' : j);
node.appendChild(src);
}
}
}
}
document.body.appendChild(node);
'par ange tuteur';
});
Re: Some help witht he music player code?
never mind i figured it out so Show this to whoever is looking for some help the directory needed is files of this style http://hydra-media.cursecdn.com/smite.gamepedia.com/5/55/Fenrir_Kill_Tower_1.ogg
Similar topics
» Music Player Code not working
» Different music player Code
» Music Player HTML Code
» SCM Music Player code not working?
» code for show music player
» Different music player Code
» Music Player HTML Code
» SCM Music Player code not working?
» code for show music player
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum