hint.js

来自「短信向日葵群发系统」· JavaScript 代码 · 共 39 行

JS
39
字号
function Hint(){
	var xmlHttp;
		try{
			xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');
		}catch(e){
			try{
				xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');	
			}catch(e){
				try{
					xmlHttp=new XMLHttpRequest();
				}catch(e){}
			}
		}
	xmlHttp.onreadystatechange=function(){
			if(xmlHttp.readyState==4){
				if(xmlHttp.status==200){				
					var co=xmlHttp.responseText;		
					if(co!=0){
						window.open('News.asp?num='+co,'','height=218,width=122,left=880,top=450');
					}else{
						return false;
						//alert('NO Record!!');	
					}

				}else{
					if(xmlHttp.status==404){
						alert('File Not Exist!');
					}
					if(xmlHttp.status==500){
						alert('Inner Server error!');
					}
				}
			}
		}
	xmlHttp.open("post","RequestValue.asp", true);
	xmlHttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	xmlHttp.send(null);
	setTimeout('Hint()',300000);	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?