tags:

views:

156

answers:

3

Is it possible play song on mouse hover using javascript? If yes then how to code for it.

+6  A: 

Nope, that's not possible. You need javascript for that.

Web Logic
+1  A: 

I don't think you can do this with CSS. You can, however, use JavaScript to trigger an audio element to play when any other element is moused over.

Colin Sullivan
+1  A: 

If your audience is using screen readers it may be possible with aural style sheets:

http://www.w3.org/TR/CSS2/aural.html

blockquote.sad { play-during: url("violins.aiff") }
Nick