The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Some help witht he music player code?

View previous topic View next topic Go down

Some help witht he music player code?

Post by Devilike on September 16th 2015, 7: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
New Member

Posts : 4
Reputation : 1
Language : Greek

http://diabolicabdclan.forumgreek.com/

Back to top Go down

Re: Some help witht he music player code?

Post by Devilike on September 16th 2015, 7: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
New Member

Posts : 4
Reputation : 1
Language : Greek

http://diabolicabdclan.forumgreek.com/

Back to top Go down

View previous topic View next topic Back to top


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