因为隐藏层的时候,虽然画面不显示,但是声音还在播放!
<!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=gb2312" />
<title>无标题文档</title><script type="text/javascript">
function d1(){
document.getElementById('c1').style.display='block';
document.getElementById('c2').style.display='none';
document.getElementById('c3').style.display='none'; }
function d2(){
document.getElementById('c2').style.display='block';
document.getElementById('c1').style.display='none';
document.getElementById('c3').style.display='none';
}
function d3(){
document.getElementById('c3').style.display='block';
document.getElementById('c1').style.display='none';
document.getElementById('c2').style.display='none'; }
</script>
</head>
<body>
<div id="c1">
<object id="MediaPlayer"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
type="application/x-oleobject" height="300"
standby="Loading Windows Media Player components..." width="300"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">
<param name="filename" value="01.WMV" />
<param name="ShowDisplay" value="0" />
<param name="AutoSize" value="0" />
<param name="AutoStart" value="true" />
<param name="WindowlessVideo" value="1" />
<embed src="0" width="300" height="300"
filename="01.WMV" controls="stopbutton" autosize="0"></embed>
</object>
</div>
<div id="c2" style="display:none">
<object id="MediaPlayer"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
type="application/x-oleobject" height="300"
standby="Loading Windows Media Player components..." width="300"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">
<param name="filename" value="02.WMV" />
<param name="ShowDisplay" value="0" />
<param name="AutoSize" value="0" />
<param name="AutoStart" value="false" />
<param name="WindowlessVideo" value="1" />
<embed src="0" width="300" height="300"
filename="02.WMV" controls="stopbutton" autosize="0"></embed>
</object>
</div>
<div id="c3" style="display:none">
<object id="MediaPlayer"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
type="application/x-oleobject" height="300"
standby="Loading Windows Media Player components..." width="300"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">
<param name="filename" value="03.WMV" />
<param name="ShowDisplay" value="0" />
<param name="AutoSize" value="0" />
<param name="AutoStart" value="false" />
<param name="WindowlessVideo" value="1" />
<embed src="0" width="300" height="245"
filename="03.WMV" controls="stopbutton" autosize="0"></embed>
</object>
</div>
<table width="200border="0">
<tr>
<td><a href=""><img src="ft.jpg" width="93" height="54" border="0" / onclick="d1()" title="专家访谈"></a></td>
<td><a href="#"><img src="mm.jpg" width="93" height="54" border="0" / onclick="d2()" title="青春在线"></a></td>
<td><a href="#"><img src="yy.jpg" width="93" height="54" border="0"/ onclick="d3()" title="实话实说"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</body></html>
<!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=gb2312" />
<title>无标题文档</title><script type="text/javascript">
function d1(){
document.getElementById('c1').style.display='block';
document.getElementById('c2').style.display='none';
document.getElementById('c3').style.display='none'; }
function d2(){
document.getElementById('c2').style.display='block';
document.getElementById('c1').style.display='none';
document.getElementById('c3').style.display='none';
}
function d3(){
document.getElementById('c3').style.display='block';
document.getElementById('c1').style.display='none';
document.getElementById('c2').style.display='none'; }
</script>
</head>
<body>
<div id="c1">
<object id="MediaPlayer"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
type="application/x-oleobject" height="300"
standby="Loading Windows Media Player components..." width="300"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">
<param name="filename" value="01.WMV" />
<param name="ShowDisplay" value="0" />
<param name="AutoSize" value="0" />
<param name="AutoStart" value="true" />
<param name="WindowlessVideo" value="1" />
<embed src="0" width="300" height="300"
filename="01.WMV" controls="stopbutton" autosize="0"></embed>
</object>
</div>
<div id="c2" style="display:none">
<object id="MediaPlayer"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
type="application/x-oleobject" height="300"
standby="Loading Windows Media Player components..." width="300"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">
<param name="filename" value="02.WMV" />
<param name="ShowDisplay" value="0" />
<param name="AutoSize" value="0" />
<param name="AutoStart" value="false" />
<param name="WindowlessVideo" value="1" />
<embed src="0" width="300" height="300"
filename="02.WMV" controls="stopbutton" autosize="0"></embed>
</object>
</div>
<div id="c3" style="display:none">
<object id="MediaPlayer"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
type="application/x-oleobject" height="300"
standby="Loading Windows Media Player components..." width="300"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">
<param name="filename" value="03.WMV" />
<param name="ShowDisplay" value="0" />
<param name="AutoSize" value="0" />
<param name="AutoStart" value="false" />
<param name="WindowlessVideo" value="1" />
<embed src="0" width="300" height="245"
filename="03.WMV" controls="stopbutton" autosize="0"></embed>
</object>
</div>
<table width="200border="0">
<tr>
<td><a href=""><img src="ft.jpg" width="93" height="54" border="0" / onclick="d1()" title="专家访谈"></a></td>
<td><a href="#"><img src="mm.jpg" width="93" height="54" border="0" / onclick="d2()" title="青春在线"></a></td>
<td><a href="#"><img src="yy.jpg" width="93" height="54" border="0"/ onclick="d3()" title="实话实说"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</body></html>
</td>
</tr>
</table>
自己先顶下! 希望高手来解决下啊!
先看看有这个方法没