Jondera Posted April 2, 2006 Share Posted April 2, 2006 After an extensive search of the W3schools databases, I find myself unable to find any method of loading a sound file to play off of the browser, once, through a function.I am attempting to put a short sound byte into my page using the onload and onunload events to trigger functions, but I can't find the proper code to call the files within the functions. Could somebody please help me figure this out, or direct me to somewhere where I could figure it out? Link to comment Share on other sites More sharing options...
pulpfiction Posted April 3, 2006 Share Posted April 3, 2006 Check out this link, is this what you are looking for??http://www.javascripter.net/faq/sound/play.htm Link to comment Share on other sites More sharing options...
Jondera Posted April 3, 2006 Author Share Posted April 3, 2006 Yes, but is it possible to have the function play without a loop? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now