关于控件的菜鸟问题

maximon 2003-06-18 10:50:13
怎么判断客户端没有装控件?
如果没有装怎么自动下载?
控件安装过程是怎么样的?
...全文
40 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
maximon 2003-06-18
  • 打赏
  • 举报
回复
非常感谢!
niwalker 2003-06-18
  • 打赏
  • 举报
回复
使用客户端脚本<object...../>,这和普通的网页做法是一样的,客户端有没有装控件由IE自动判断,你需要添加一个控件的下载链接,这样IE就会自动下载或者提示客户下载。还有你的控件必须能够注册自己。下面是<object〉的格式(javascript):
<object id="objID" {classid="clsid:GUID" | progid="progID"} [events="hookevents"] />
Values
objID
A name by which the object can be referenced in your script. Object ID values must begin with a letter and can include letters, digits, and underscores (_). The object ID must be unique throughout the scope of the script component. For example, if you specify the name CObj, you can reference the object in your script this way:
x = CObj.Prop1
GUID
(Optional) A reference to the class ID (GUID) under which the object has been registered. Use "clsid:" followed by the class ID (without curly brackets). Either a classid or a progid attribute must be specified. For example:
classid="clsid:2154c700-9253-11d1-a3ac-0aa0044eb5f"
progID
(Optional) The program ID of the object, which can be specified as an alternative to the class ID. Either a classid or a progid attribute must be specified.
hookevents
(Optional) A value (either "true" or "false") that determines if you can hook events from the object. By default, hookevents is false. If the attribute is true, you can connect to any events the object may fire. You must add an event handler for each event that is to be handled.
Remarks
The <object> element provides a way to expose objects globally for use in scripting within the script component without having to use a function such as CreateObject(). Using an <object> element makes the object available with global scope, and allows scripting tools to provide statement completion for the object's members.

如果,你还不能理解,可以找一个带flash的网页,view source看看它是怎么写的。

62,243

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧