Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
playing audio files
jite eghagha
Ranch Hand
Posts: 128
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i need a function that will play an audio file when called.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Music Test</title> <embed hidden="true" src="tank_explosion_sound.wav"> <script type="text/javascript"> function playMusic() { obj = document.getElementById('music'); } </script> </head> <body> <button type="button" id="music" name="music" onclick="playMusic();">Play Music</button> </body> </html>
I need help with the playMusic() function
Eric Pascarello
author
Posts: 15385
6
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
http://www.schillmania.com/projects/soundmanager2/
eric
jite eghagha
Ranch Hand
Posts: 128
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thank you.
SoundManager 2 worked for me.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
not locating javascript and CSS path
Reload different image for every second
enabling buttons on forms
How to save state of a form.
window.Print() not working.
More...