views:

54

answers:

2

in my site i want to play tick\click like sounds on mouse over (hover) or on clicks... can it be achieved...

we can do this in flash but i want to avoid flash

+2  A: 

See here for all the options that you have if you dont want flash http://www.phon.ucl.ac.uk/home/mark/audio/play.htm

Javascript cannot play audio so one of the above is the only way out.

See 3 & 4 in above link and you can trigger it probably on mouse over with javascript.

OR DHTML to play sound http://webdesign.about.com/od/sound/a/play_sound_oncl.htm

ToughPal
A: 

You can control an HTML5 <audio> element from JavaScript.

This won’t work in IE 8 and below (not sure about 9) though, nor in older versions of Firefox, Safari, Chrome and Opera.

Paul D. Waite