日期:2014-05-17  浏览次数:20708 次

怎么实现类似于土豆网上的那种登录方式啊??
土豆网的登录方式网址是:http://www.tudou.com/

我想用js和ajax实现,但是不知道怎么做,跪求各位大神代码

------解决方案--------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function ss(){
var div=document.createElement("div");
div.style.position="absolute";
div.style.left="0px";
div.style.top="0px";
div.style.width="1450px";
div.style.height="650px";
div.style.backgroundColor="black";
div.style.filter="alpha(opacity=40)";
div.style.opacity=.4;
var div2=document.createElement("div");
div2.style.width="400px";
div2.style.height="400px";
div2.style.backgroundColor="white";
var form=document.createElement("form");
form.action="http://www.baidu.com/s";
var text=document.createElement("input");
text.type="text";
text.name="wd";
var button=document.createElement("input");
button.type="submit";
button.value="submit";
form.appendChild(text);
form.appendChild(button);
div2.appendChild(form);
var c=document.createElement("center");
c.appendChild(div2);
div.appendChild(c);
document.body.appendChild(div);
}
</script>
</head>

<body>
<div id="test"></div>
<textarea id="testt"></textarea>
<input type="button" onclick="ss()" value="ss">
</body>
</html>
这样试试
------解决方案--------------------
一楼代码贴的真快