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.
The forum of the forums

    Some help witht he music player code?

    Devilike
    Devilike
    New Member


    Posts : 4
    Reputation : 1
    Language : Greek

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

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


    Posts : 4
    Reputation : 1
    Language : Greek

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

    Post by Devilike 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

      Current date/time is September 22nd 2024, 9:19 pm