我目前正在创建一个网站。
我有很多网站/资源,可以去做我想做的事。但是他们的方式/步骤对我不起作用。
我有以下情况:
我在 Dreamweaver 中有 2 个 cols。1 用于图像,正确的 col 用于文本。
我希望用户单击图像并听到图片中人的音频。没有播放器或其他页面打开。单击图像并听到音频就是它。
这可以做到吗。由于当前唯一的例子似乎让我不确定:
http://www.it-student.org.uk/playsound/playsounds.php
我设置它,因为它要求什么都没有发生没有声音。
<title>Untitled Document</title>
<script>
function EvalSound(soundobj) {
var thissound= eval("document."+soundobj);
thissound.Play();
}
</script>
</head>
<body>
<embed src="hannbil smith.mp3" autostart=false width=0 height=0 name="sound1" enablejavascript="true">
<a href="#" onClick="EvalSound('sound1')"><img src="han cast.jpg""></a>
</body>
</html>