버튼을 클릭 할 때 소리가 나는 웹 사이트가 있습니다.jQuery : 어떻게 사운드를 프리로드합니까?
이것은 내가 그것을
function PlaySound(soundfile) {
$('#soundContainer').html("<embed src='/uploads/sounds/" + soundfile + "' hidden=true autostart=true loop=false>");
}
어떻게 사전에 사운드 파일을 미리로드 할 어떻게입니까?
감사합니다.
완벽! 감사! – Aximili
IE는 바이너리 파일을 올바르게 처리 할 수 없으며 성공 함수를 트리거하지 않기 때문에 좋은 해결책이지만 Internet Explorer에서는 작동하지 않습니다. 자세한 내용은 http : //bugs.jquery를 참조하십시오. com/ticket/11426 - 오늘 발견했습니다. – SamiSalami