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';
});