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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound on completion of timer

Status
Not open for further replies.

mtdew

Technical User
Dec 9, 2007
77
US
I have a small program that displays a timer which shows how long it took to complete the task. Can I add sound? The timer works great but I can't seem to find a way to have it play a small wav or mp3 when the timer says Well done.

$timer.html('Well done, it took ' + $timer.html() + ' seconds!').animate({
left: gpos.left + $graph.width() - $timer.width() - 20
}, 1000);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top