The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Some help witht he music player code?

Go down

Some help witht he music player code?  Empty Some help witht he music player code?

Post by Devilike September 16th 2015, 12:36 pm

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

Posts : 4
Reputation : 1
Language : Greek

http://diabolicabdclan.forumgreek.com/

Back to top Go down

Some help witht he music player code?  Empty Re: Some help witht he music player code?

Post by Devilike September 16th 2015, 12:59 pm

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
Devilike
Devilike
New Member

Posts : 4
Reputation : 1
Language : Greek

http://diabolicabdclan.forumgreek.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum