Determine whether the client has a qqfunction isinstallqq (){ 
 
Try {// supported 
VaR XMLHTTP = new activexobject ("timwpdll. timwpcheck "); 
Return true; 
} Catch (e) {// not supported 
Location. href = 'HTTP: // is.qq.com/webpresence/up_alarm.shtml '; 
// Window. open ('HTTP: // logs, scrollbars = Yes, resizable = No, copyhistory = No, width = 410, Height = 410, Top = 0, Left = 0 ') 
Return false ;} 
Return false ;} 
 
Function isinstallsupminiqq (){ 
 
Try {// supported 
VaR XMLHTTP = new activexobject ("timwpdll. timwpcheck "); 
VaR n = XMLHTTP. getversion (); 
If (n <2.1 ){ 
Location. href = 'HTTP: // is.qq.com/up_alarm.shtml '; 
Return false; 
} 
Return true; 
} Catch (e) {// not supported 
Location. href = 'HTTP: // is.qq.com/up_alarm.shtml '; 
Return false; 
} 
Return false ;} 
 
 
<Script language = "JavaScript"> var boolfals = isinstallqq (); If (boolfals = true) {location. href = 'tencent: // message /? Menu = Yes & uin = 41411118 & websitename = www.xmlhome.net '; setTimeout ('window. Close ()', 1)}; </SCRIPT>