, HTML5 .
. ( ).
, HTML5:
1) javascript
<script>
function EvalSound(soundobj) {
var thissound=document.getElementById(soundobj);
try {
thissound.Play();
}
catch (e) {
thissound.DoPlay();
}
}
</script>
2)
<embed src="mysound.wav"
autostart=false
width=0
height=0
id="mySound"
enablejavascript="true" />
3)
<ul id="myList">
<li onHover="EvalSound('mySound')">Foo</li>
<li onHover="EvalSound('mySound')">Bar</li>
</ul>
, jQuery:
<script>
$(document).ready(function() {
$('#myList').hover(EvalSound('mySound'));
});
</script>
, realplayer DoPlay() Play().