1. Here is an example of netmting.
<Html>
<Head>
<Title> OCX </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Script language = "JavaScript">
Var flag = true
Function 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 ("total" + alist. length + "attribute methods ")
}
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 = "View" onclick = "showall ()">
</P>
<Table width = "75%" border = "1">
<Tr>
<Td height = "24">
<Div align = "center"> writing in html </div>
</Td>
<Td height = "24">
<Div align = "center"> attribute event in OCX </div>
</Td>
</Tr>
<Tr>
<