如何让网页中的rm视频静音?哥哥姐姐们帮忙啊!
http://www.zjyhjy.cn/sp1.htm
大家看看这个网页,因为声音不好,想控制使它静音,就是让他不发声
谁帮我啊?
我天天问问题,真不好意思,分数就这么多了,统统献上!
[解决办法]
你的网页打不开,我这里有一个realmedia player 的script
function clipMute()///设置静音
var dpv = document.playvideo; /// 获取object对象
dpv.SetMute(true|false) /// 设置是否静音
<script language= "javascript ">
function PlayPause(){
var dpv = document.playvideo;
var pbi = document.all.playpause;
if(dpv!=null&&pbi!=null){
if(dpv.CanPlay())
{
dpv.DoPlay();
pbi.src = "images/playbuttn.gif ";
}
else
{
dpv.DoPause();
pbi.src = "images/pausebuttn.gif ";
}
}
}
function clipStop(){
var dpv = document.playvideo;
if(dpv!=null){
if(dpv.CanStop())
{
dpv.DoStop();
}
}
}
///设置静音
function clipMute(){
var dpv = document.playvideo;
var pbi = document.all.clipmuteImg;
if(dpv!=null&&pbi!=null){
if(dpv.GetMute())
{
dpv.SetMute(false);
pbi.src = "images/volumnbuttn.gif ";
}
else
{
dpv.SetMute(true);
pbi.src = "images/volumnbuttnmuted.gif ";
}
}
}
function clipfullScreen(){
var dpv = document.playvideo;
if(dpv!=null){
dpv.SetFullScreen();
}
}
function clipVolume(vol){
var dpv = document.playvideo;
if(dpv!=null&&vol> =0&&vol <=100){
dpv.SetVolume(vol);
}
}
function goPos(s){
var dpv = document.playvideo;
var clipTime = dpv.GetLength()/1000;
var gotopos = (s/100)*clipTime;
dpv.SetPosition(gotopos*1000);
}
</script>
<object classid= "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA " name= "playvideo " width= "417 " height= "206 ">
<param name= "src " value= "http://www.igo-home.com/attachments/GrV7_1cXRp9PRLcjnufuyu7CuxOM=.mp3 " />
<param name= "autostart " value= "true " />
<param name= "controls " value= "imagewindow " />
<param name= "maintainaspect " value= "true " />
</object>
<div>
<a onClick= "PlayPause(); "> <img src= "images/playbuttn.gif " alt= "播放/暂停 " name= "playpause " width= "25 " height= "25 " border= "0 " id= "playpause " style= "margin-left:100px " /> </a>
<a onClick= "clipStop(); "> <img src= "images/stopbuttn.gif " alt= "停止 " border= "0 " style= "margin-left:10px " /> </a>
<a onClick= "clipMute(); "> <img src= "images/volumnbuttn.gif " alt= "静音 " name= "clipmuteImg " width= "25 " height= "25 " border= "0 " id= "clipmuteImg " style= "margin-left:10px " /> </a>
<a onClick= "clipfullScreen() "> <img src= "images/fullbuttn.gif " alt= "全屏 " width= "25 " height= "25 " style= "margin-left:10px "> </a>
</div>