بسم الله الرحمن الرحيم
كود لتشغيل صوت عن الضغط على صورة
html
-------------------------------------------------------------------------------------------------------------------------------------------
<!doctype html>
<html>
<head>
<meta charset="ISO-8859-1" />
<title>Example of How to Play a Sound on Click or on MouseOver</title>
<script language="JavaScript">
<!--
function MM_controlSound(x, _sndObj, sndFile) {
http://v3.0var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"()");
else window.location = sndFile;
}
//-->
</script>
</head>
<body>
<embed name='CS1022563046202' src='bird.mp3' loop=false
autostart=false MASTERSOUND hidden=true width=0 height=0>
</embed>
<a href="#" onClick="MM_controlSound('play','document.CS1022563046202','bird.mp3')">
<img src="r_WDu_SHGTu_A.jpg" width="129" height="122"/></a>
</body>
</html>