Skip to content

Instantly share code, notes, and snippets.

@kuu
Created February 19, 2014 01:26
Show Gist options
  • Save kuu/9084400 to your computer and use it in GitHub Desktop.
Save kuu/9084400 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<script>
document.addEventListener("DOMContentLoaded", function() {
var tBGM = new Audio();
tBGM.src = 'bgm.mp3';
tBGM.load();
tBGM.addEventListener('loadeddata', function () {
tBGM.currentTime = 5.5;
tBGM.play();
}, false);
}, false);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment