<! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en">
<HTML> <Script language = JavaScript>
VaR Req = NULL;
If (window. XMLHttpRequest ){
Try {
Req = new XMLHttpRequest ();
} Catch (e ){
Req = false;
}
// Branch for IE/Windows ActiveX version
} Else if (window. activexobject ){
Try {
Req = new activexobject ("msxml2.xmlhttp ");
} Catch (e ){
Try {
Req = new activexobject ("Microsoft. XMLHTTP ");
} Catch (e ){
Req = false;
}
}
}
VaR node;
Function onclickcate (what, cateid)
{
If (what = NULL) Return
Node = Document. getelementbyid ("rsscate" + cateid)
Node = node. nextsibling
While (node & node. tagname & node. tagname! = "Div ")
{
Node = node. nextsibling
}
If (node = NULL) Return
VaR initdisplay = node. style. display;
VaR rssdiv = Document. getelementsbytagname ("Div ");
If (rssdiv! = NULL)
{
For (VAR I = 0; I <rssdiv. length; I ++)
{
If (rssdiv [I]. classname = "rssdiv ")
Rssdiv [I]. style. Display = "NONE ";
}
}
If (document. getelementbyid ("rsscate" + cateid). getattribute ("status ")! = "OK ")
{
If (req)
{
VaR STR = NULL;
Node. innerhtml = "loading data ...... ";
Node. style. Display = "Block ";
Surl = 'cs/menulist. asp? Id = '+ cateid +' & cdate = '+ new date (). gettime ();
Req. Open ('get', Surl, true );
Req. onreadystatechange = alerttest;
Req. Send (null );
}
Document. getelementbyid ('rsscate' + cateid). setattribute ('status', 'OK ');
}
Else
{
Node. style. Display = (initdisplay = "block "? "None": "Block ");
}
// Node = NULL;
}
Function alerttest ()
{
If (req. readystate = 4)
{
If (req. Status = 200)
{
Node. innerhtml = Req. responsetext;
}
}
}
</SCRIPT>
style = "border-Right: 0px; padding-right: 0px; border-top: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; overflow: auto; border-left: 0px; padding-top: 0px; border-bottom: 0px "
bgcolor = # ffffff>
Microsoft. net
technical site
Asp. net Technical site
visual C # technical site
Visual Basic. net
technical site