DW中如何实现鼠标划过导航条菜单时有声音效果
发布网友
发布时间:2024-10-23 22:00
我来回答
共2个回答
热心网友
时间:2024-10-28 15:47
<script language="javascript">
function play(){
var div = document.getElementById('div1');
div.innerHTML = '播放:1.MP3<embed src="1.mp3" loop="0" autostart="true" hidden="true"></embed>';
}
</script><div id="div1" onmouseover="play();">触摸播放</div>
热心网友
时间:2024-10-28 15:48
<a href="#" onmouseover="play(this,'声音文件地址');">">导航栏目</a>
<script language="javascript">
function play(sef,url){
var div = document.getElementById('div1');
div.innerHTML = '<embed src="'+url+'" loop="0" autostart="true" hidden="true"></embed>';
}
</script><div id="div1"></div>
热心网友
时间:2024-10-28 15:48
<script language="javascript">
function play(){
var div = document.getElementById('div1');
div.innerHTML = '播放:1.MP3<embed src="1.mp3" loop="0" autostart="true" hidden="true"></embed>';
}
</script><div id="div1" onmouseover="play();">触摸播放</div>
热心网友
时间:2024-10-28 15:48
<a href="#" onmouseover="play(this,'声音文件地址');">">导航栏目</a>
<script language="javascript">
function play(sef,url){
var div = document.getElementById('div1');
div.innerHTML = '<embed src="'+url+'" loop="0" autostart="true" hidden="true"></embed>';
}
</script><div id="div1"></div>