Fengzhimei@Dot.Net
Designing My Colorful Dream
posts - 78,  comments - 191,  trackbacks - 3
After installing the ActiveX update patch, some webpages which contain some ActiveX controls (such as media player) will require users to manually activate such controls by clicking on it or using the TAB key and ENTER key, this is by design for security reason.



But Microsoft has a workaround as well, the key point is load ActiveX controls from external script files. By using document.write, document.createElement or innerHTML, we can bypass this kind of limitation easily.

<!-- HTML File -->
<html>
  
<body leftmargin=0 topmargin=0 scroll=no>
    
<script src="ActiveXCtl.js"></script>
  
</body>
</html>

//ActiveXCtl.js
document.write('<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6">');
document.write('
<param name="URL" value="example.wmv">');
document.write('
<param name="autoStart" value="-1"></object>');

Refer to this MSDN article for detail.
posted on 2006-07-12 14:17 fengzhimei 阅读(547) 评论(0)  编辑 收藏 网摘 所属分类: JavascriptOthers




标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2006-07-24 23:07 编辑过
Google站内搜索
[推荐职位]上海盛大网络招聘架构师

China-pub 计算机图书网上专卖店!6.5万品种 2-8折!
近千种 9-95 新二手计算图书火热销售中!
开发者征途系统新作:《设计模式——基于C#的工程化实现及扩展》

相关文章:

相关链接:
 
Would you like to share your thought? Would you like to make friends with me? Just contact me:)
These postings are provided "AS IS" with no warranties, and confer no rights.
Translate this page to chinese
Locations of visitors to this page

<2006年7月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

与我联系

搜索

 

常用链接

留言簿(9)

随笔分类

随笔档案

收藏夹

.Text Skin

Blog I Read

Cool Tools

Exchange Bloggers

Game

Javascript

My Friend

Others

Regular Expression

SharePoint Bloggers

SOA

Sqlserver

积分与排名

  • 积分 - 113162
  • 排名 - 394

最新评论

阅读排行榜

评论排行榜