2008-02-23 06:21:07来源:互联网 阅读 ()
一、这个是netmting的例子
<html><head><title>OCX</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language="JavaScript">var flag=truefunction showall(){ alist = new Array(); newocx(); list1.value = ""; list2.value = ""; list1.value = ocxtype.outerHTML; j = 0; for (i in ocxtype) { alist[j] = i; j ; } for (i = 0; i < alist.length; i ) for (j = (alist.length-1); j > 0; j--) { if (alist[j] < alist[j-1]) { temps = alist[j]; alist[j] = alist[j-1]; alist[j-1] = temps; } } for (i = 0; i < alist.length; i ) list2.value = alist[i] "\n"; alert("共有 " alist.length " 个属性方法")}function newocx(){ ocxfield.innerHTML = "<OBJECT ID='ocxtype' WIDTH='0px' HEIGHT='0px'" "CLASSID='CLSID:" ocxid.value "'></OBJECT>";}</script></head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center"> <p>classid <input type="text" id="ocxid" style="width:400" value="F3A614DC-ABE0-11d2-A441-00C04F795683" onchange="jscript:flag=true"> <input type="button" id="look" value="查看" onclick="showall()"> </p> <table width="75%" border="1"> <tr> <td height="24"> <div align="center">html中的写法</div> </td> <td height="24"> <div align="center">OCX中的属性事件</div> </td> </tr> <tr> <td> <textarea id="list1" style="width: 500px; height: 400px;" readonly></textarea> </td> <td> <textarea id="list2" style="width:250px; height:400px;" readonly></textarea> </td> </tr> </table></div><div id="ocxfield"></div></body></html>
<script language="Javascript">function ShowMessenger() { if (messengerUI.object != null) { var MsgrWindow if (messengerUI.myStatus == 2) { MsgrWindow = messengerUI.window; MsgrWindow.show(); } else messengerUI.Signin(0,"",""); } }
function ShowElement(element) { element.style.display=""; document.msn.offline.value="ON"; } function HideElement(element) { //rowShow.style.visibility="hidden"; element.style.display="none"; document.msn.offline.value="OFF"; }
function ShowHide(element) { if (document.msn.offline.value=="ON") { HideElement(element); } else { ShowElement(element); }
} </script> <style type="text/css"> <!-- .small { font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif} body { font-family: Verdana, Arial, Helvetica, sans-serif} a { color:#3D55C4 ; text-decoration: none} a:link { color:#3D55C4 ; text-decoration: none} a:hover { color:#000000 ; text-decoration: none} --> </style> </head>
<body bgcolor="#FFFFFF" text="#000000" vlink="##3D55C4" onclick="(mUser.innerHTML)"> <table cellpadding="1" cellspacing="1" bgcolor="#3D55C4" width="150" id="abc"> <script language="VBScript" id="mcvbs">' this script is loosely based on the original script from Microsoft. ' Various flags and such for god-knows what... Dim A_ A_=False Dim B_,C_,D_ B_=False C_=False D_=False Dim E_,F_,G_ E_=False F_=False G_=3000 ' Ooohhh! I know what this is! This is the amount of milliseconds for refresh Dim H_(),I_ ' H_() is an object array of users. This is also the cache I_=0 ' Variables for different links to different images representing state in Messenger... I think Dim J_,K_,L_,M_,N_,O_,P_,OffL J_="<OBJECT classid="""&"clsid:FB7199AB-79BF-11d2-8D94-0000F875C541"""&" codeType=application/x-oleobject id=MsgrApp width=0 height=0></OBJECT>" K_="<font class=""small"">" M_="<img align=absbottom width=16 height=17 border=0 src=" L_="<br><b> <a href=""vbscript:op(-1)"" class=""color""><img src='msn_icons/msn_ppl.gif' border='0' alt=''>"&" Sign in now... "&"</a></b>" N_=M_&"msn_icons/online1.gif"&" ALT="""&"Online"&""">" O_=M_&"msn_icons/busy1.gif"&" ALT="""&"Busy"&""">" P_=M_&"msn_icons/idle1.gif"&" ALT="""&"Away"&""">" 'Added by JH OffL = M_&"msn_icons/offline1.gif"&" ALT="""&"Offline"&""">" M_="<img align=absbottom width=16 height=17 border=0 src=" Dim Q_ Q_=False Dim ttl
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇: 用 onerror 获取错误信息
下一篇: JavaScript 对象和数组参考大全
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网站联盟: 联盟新闻 联盟介绍 联盟点评 网赚技巧
行业资讯: 搜索引擎 网络游戏 电子商务 广告传媒
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
程序设计: Java技术 C/C++ VB delphi
网络知识: 网络协议 网络安全 网络管理 组网方案 Cisco技术
操作系统: Win2000 WinXP Win2003 Mac OS Linux FreeBSD