[导入]完成可脚本调用的视频录制控件
Javascript调用该控件的样例:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
![](/Images/OutliningIndicators/None.gif)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
![](/Images/OutliningIndicators/None.gif)
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>测试脚本</title>
</head>
<body>
<form id="form1" runat="server">
<object classid="clsid:C3432DF6-A9C3-46A0-93C4-295AD6F04B06" id="obj" width="0" height="0"></object>
<script language="javascript" type="text/javascript">
document.obj.FileUpload("e:\\t2.wmv");
</script>
</form>
</body>
</html>
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
<script language="javascript" type="text/javascript">
![](/Images/OutliningIndicators/InBlock.gif)
</script>
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
执行结果:
(没有实现页面交互的安全接口,有待改进),确定后
这是上传接口,其他接口调用方法一样。
文章来源:http://blog.toohi.com/toohi/archive/2006/07/08/791.html