可以直接把下面的代码复制到你的网页里运行。我在IE8测试通过
这很简单的啊,给你个思路,给个参数,2个值,根据值进入不同的页面,也可以在同一个页面里面搞2个层,根据值显示或隐藏层!
var value= document。getElementByName(单选的名字)[0].value()
if(value=="email" ){
document.getElementById(表单id).action ="";
document.getElementById(表单id).submit()
}else{
document.getElementById(表单id).action ="";
document.getElementById(表单id).submit()
}