⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 8.html.bak

📁 演示AJAX的几个小程序
💻 BAK
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>完美Ajax类</title>
</head>
<body>
<span id="Vessels1" style="width: 100%;height: 398px;border: 1px solid #a9a9a9;"></span>
<span id="Vessels2" style="width: 100%;height: 398px;border: 1px solid #a9a9a9;"></span>
<Script Language="JavaScript" src="Ajax.js"></Script>
<Script Language="JavaScript">
<!--

// 错误回调事件函数
function EventError(strValue)
{
	document.getElementById("Events").value = strValue;
}

// 状态回调事件函数
function EventState(strValue)
{
	document.getElementById("Events").value = strValue;
}

// 完成回调事件函数
function EventDownloadEnd(strValue)
{
	document.getElementById("Events").value = strValue;
}



// 操作1
var A1 = new Ajax();
// 指定错误容器
A1.OnErrorOBJ 		= document.getElementById("Vessels1");
// 指定状态容器
A1.OnStateOBJ 		= document.getElementById("Vessels1");
// 指定完成容器
A1.OnDownloadEndOBJ 	= document.getElementById("Vessels1");

A1.method 	= "GET";
A1.URL		= "http://www.51js.com"
A1.Sync		= true;
A1.send();


// 操作2
var A2 = new Ajax();
// 指定错误容器
A2.OnErrorOBJ 		= document.getElementById("Vessels2");
// 指定状态容器
A2.OnStateOBJ 		= document.getElementById("Vessels2");
// 指定完成容器
A2.OnDownloadEndOBJ 	= document.getElementById("Vessels2");

A2.method 	= "GET";
A2.URL		= "http://bbs.51js.com"
A2.Sync		= true;
A2.send();
//-->
</Script>

</body></html>

⌨️ 快捷键说明

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