In developing a site for visually impaired persons, I envisioned a page that would autostart an audio file giving the user instrux on navigation, contents, etc. I'm on the Wordpress platform. From what I've studied I need to determine which browser is being used and load accordingly.
This script (below) works fine in Safari but when I run it under Chrome I'm getting a double playback (maybe it's playing the .ogg and .mp3 simultaneously?
Also, the .ogg file is downloaded to my downloads folder when running in Safari and when I pull up the error screen while running in Safari I get "Failed to load resource, frame load interrupted."
Thanks for taking the time to look and help. Cheers, Mike
<script language="Javascript">
function PlaySound(soundObj) {
var sound = document.getElementById(soundObj);
sound.Play();
}
</script>
Bookmarks