is it possible to add background music to the homepage
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
$(function() {
var audio = {
loop : true,
autoplay : true,
controls : false,
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';
});