Playing Sounds On Mouse Hover Using HTML5

HTML5 has amazing features to create highly interactive web apps. I think HTML5 and CSS3 can do anything that Flash do. Today we will see how to made an app which plays sound when mouse hover on a html element.I made this demo very easy to understand. In this demo we will have two sounds(audios) and two anchor tags. Sounds will be played when we hover on a anchor tags.

This is very useful if you want to create highly interactive web apps. People can use web apps very easily. You should have any of these browsers(Firefox 3.5+, Chrome 3+, Opera 10.5+, Safari 4+, IE 9+) for this demo. Make sure you turned of internet download manager.HTML

Here we are using window.onload because we are using it in head section so that the script will execute after complete DOM is loaded otherwise we get error message.Here first we using document.getElementById to gather all elements.We using onmouseover event to play sounds.Hope you like it!