跳转的网页制作,急

来源:百度知道 编辑:UC知道 时间:2024/05/28 07:09:09
请问我现在急需这样两张网页,首先是一个登陆界面,需输入用户名和密码之后,按下“确定”键之后,跳转到另一个页面,这个页面有一个框架,左边一个右边一个,内容无所谓,还有就是这两个页面跳转的时候,地址栏中的url是不变的,这是最重要的,用什么语言都可以,最好是jsp的,其它的也行,请问谁能提供给我一些例子或源代码?我很着急,谢谢啦!qq:173635235 email:bill1130@gmail.com
那网页跳转的时候,地址栏上的url不变,这个该怎么实现呢?谢谢啦!

可以使用Ajax

————aaa.asp 文件————————————
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Using responseText with innerHTML</title>
<meta charset="gb2313">
<script type="text/javascript">
var xmlHttp;
function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}
function startRequest() {
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleStateChange;
//xmlHttp.open("post", "bb.html", true);
xmlHttp.open("POST", 'bbb.asp?name='+document.getElementById("name").value + "&pwd=" + document.getElementById("pwd").value,