日期:2014-05-17 浏览次数:20672 次
window.onload=initForm;
var xhr = false;
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
}
else {
if (window.ActiveXObject) {
try {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) { }
}
}
function initForm(){
duqu();
document.getElementById("plan_menu").selectIndex=100;
document.getElementById("plan_menu").onchange=jumpPage;
return false;
}
function jumpPage(){
if (xhr) {
var newLoc=document.getElementById("plan_menu");
var newPage=newLoc.options[newLoc.selectedIndex].value;
var newUrl="plan.do?method=readPlan&title="+newPage;
xhr.open("GET", newUrl, true);
xhr.onreadystatechange = showMyProject;
xhr.send();
}
}
function showMyProject() {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
var tt=document.getElementById("tuodongqun");
tt.innerHTML=xhr.responseText;
}
}
}
function jumpPage(){
var newLoc=document.getElementById("plan_menu");
var newPage=newLoc.options[newLoc.selectedIndex].value;
var newUrl="plan.do?method=readPlan&title="+newPage;
if (newPage!=""){
window.location=newUrl;
}
}