87,903
社区成员
发帖
与我相关
我的任务
分享
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><img src="images/video1.gif" alt="画面1" name="video1" width="25" height="25" id="video1" style="cursor:hand;" onClick="ControlCap(1)"></div></td>
.....
</tr>
</table>
<script type="text/javascript">
//在是否播放上操作------------------------------------
function ControlCap(ButIndex)
{
var VideoIndex = ButIndex-1;
var sFileName= window.parent.videoFrame.form1.AxVideo.GetCurrentRecordFileName(VideoIndex);
if (sFileName=="")
{
parent.videoFrame.form1.AxVideo.StartLocalRecord(VideoIndex);
video1.src="images/video2.gif";
alert("已经打开");
}
else
{
parent.videoFrame.form1.AxVideo.StopLocalRecord(VideoIndex);
$("#video"+ButIndex).attr("src","images/video2.gif");
alert("已经关闭");
}
}
</script>