Originariamente inviato da D.mors
Salve,
vorrei chiedere il codice per mettere un suono ad un bottone
e che si senta quando metti il cursore sopra ( non quando clicchi!

) .
Ditemi se non mi sono spiegato bene.
Grazie in anticipo!
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<script language="JavaScript" type="text/javascript">
function Click(soundobj) {
var suono = eval("document."+soundobj);
suono.Play();
}
</script>
</head>
<body>
<embed src="suono1.wav" autostart="false" width="0" height="0" name="suono1" enablejavascript="true">
<embed src="suono2.wav" autostart="false" width="0" height="0" name="suono2" enablejavascript="true">
<a href="#" onmousedown="Click('suono1')">
[img]img.gif[/img]
</a>
<a href="#" onMouseOver="Click('suono2')">
[img]img.gif[/img]
</a>
</body>
</html>