Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Audio 1

Status
Not open for further replies.

kliz0328

Programmer
Nov 7, 2005
138
0
0
US
Is there anyway to add audio sounds to an ASP page, for example some type of noise when a user mouses over a menu item? Can this only be done with Flash or is there a way with VBScript or Java Script?
 
You can use like this, havent tested on other browsers.
Code:
---test.html---

<embed name="sound1" id="sound1" src="ding.wav" width="1" height="1" autoplay="false" hidden="true" loop="false" volume="100"></embed>
<input type=button value="Play" onclick="document.getElementById('sound1').Play()" />

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top