1.求jsp登录源码 急急急急急急急急急急急
2.请问如何看到网页上用javascript做的登录登录登陆密码源代码?
3.谁有QQ域名邮箱的登录代码,用作网页中邮箱的源码源代登录口,谢谢
4.javascript写的界面茶佩网源码注册页面代码
5.如何获知某客户端已登录某网站?求脚本源码
求jsp登录源码 急急急急急急急急急急急
登陆页面 index.jsp源码:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>login</title>
<meta </option>
<option>@yahoo.cn</option>
<option>@sohu.com 搜狐</option>
<option>@tom.com</option>
<option style="color:#C">@.com</option>
<option>@.com</option>
<option>@cn.com</option>
<option>@yeah.net</option>
<option>------------------</option>
<option>天涯帐号</option>
<option>百度帐号</option>
<option>ChinaRen校友录</option>
<option>校内网</option>
<option>.com</option>
</select>
</li>
<li>
<label for="mail_passwd">密码:</label>
<input class="int" id="mail_passwd" name="mail_passwd" onmousemove="this.focus()" type="password" value=""><input id="mail_btn" type="submit" value="登 录" />
</li>
</ul>
</form>
好代码 下载它的CSS
<td class="mail_box">
<form name="mail" method="post" onsubmit="MailLogin.sendMail();return false;" action="" target="_blank">
<table cellspacing="0">
<tr><td width="px" nowrap>帐号</td><td colspan=2><input type="text" id="hao_mail_username" name="hao_mail_username" value=""></td></tr>
<tr><td>邮箱</td><td colspan=2><select id="hao_mail_options" onchange="MailLogin.change(this)"><option>--请选择--</option><option>@.com 网易</option><option>@.com 网易</option><option>登录百度</option><option>人人网</option><option>@sina.com 新浪</option><option>@yahoo.com.cn</option><option>@yahoo.cn</option><option>@sohu.com 搜狐</option><option>@tom.com</option><option>@cn.com</option><option>@yeah.net</option><option>.com</option><option>天涯社区</option><option>ChinaRen</option><option>以下请在弹出页登录↓</option><option>QQ空间</option><option>@qq.com</option><option>@gmail.com</option><option>@hotmail.com</option><option>@.com</option><option>开心网</option></select></td></tr>
<tr><td>密码</td><td><input id="hao_mail_passwd" name="hao_mail_passwd" type="password" value=""></td><td><button type="submit">登录</button></td></tr>
</table></form>
javascript写的注册页面代码
只是写了 昵称 密码 确认密码 电子邮件地址
其余的自己写一下吧
就是这个格式
自己完成吧!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript">
function checkname(){
var div = document.getElementById("div1");
div.innerHTML = "";
var name1 = document.form1.text1.value;
if (name1 == "") {
div.innerHTML = "姓名不能为空!登录登录";
document.form1.text1.focus();
return false;
}
if (name1.length < 4 || name1.length > ) {
div.innerHTML = "姓名输入的源码源代溯源码白净盏长度4-个字符!";
document.form1.text1.select();
return false;
}
var charname1 = name1.toLowerCase();
for (var i = 0; i < name1.length; i++) {
var charname = charname1.charAt(i);
if (!(charname >= 0 && charname <= 9) && (!(charname >= 'a' && charname <= 'z')) && (charname != '_')) {
div.innerHTML = "姓名包含非法字母,界面乐高货源码只能包含字母,登录登录数字,源码源代和下划线";
document.form1.text1.select();
return false;
}
}
return true;
}
function checkpassword(){
var div = document.getElementById("div2");
div.innerHTML = "";
var password = document.form1.text2.value;
if (password == "") {
div.innerHTML = "密码不位空!界面";
document.form1.text2.focus();
return false;
}
if (password.length < 4 || password.length > ) {
div.innerHTML = "密码长度4-位";
document.form1.text2.select();
return false;
}
return true;
}
function checkrepassword(){
var div = document.getElementById("div3");
div.innerHTML = "";
var password = document.form1.text2.value;
var repass = document.form1.text3.value;
if (repass == "") {
div.innerHTML = "密码不位空!登录登录";
document.form1.text3.focus();
return false;
}
if (password != repass) {
div.innerHTML = "输入密码和确认密码长度不一致";
document.form1.text3.select();
return false;
}
return true;
}
function checkEmail(){
var div = document.getElementById("div4");
div.innerHTML = "";
var email = document.form1.text5.value;
var sw = email.indexOf("@",源码源代 0);
var sw1 = email.indexOf(".", 0);
var tt = sw1 - sw;
if (email.length == 0) {
div.innerHTML = "电子邮件不能位空";
document.form1.text5.focus();
return false;
}
if (email.indexOf("@", 0) == -1) {
div.innerHTML = "电子邮件格式不正确,必须包含@符号!界面";
document.form1.text5.select();
return false;
}
if (email.indexOf(".",登录登录夜色直播器源码 0) == -1) {
div.innerHTML = "电子邮件格式不正确,必须包含.符号!源码源代";
document.form1.text5.select();
return false;
}
if (tt == 1) {
div.innerHTML = "邮件格式不对。界面北京28软件源码@和.不可以挨着!";
document.form1.text5.select();
return false;
}
if (sw > sw1) {
div.innerHTML = "电子邮件格式不正确,@符号必须在.之前";
document.form1.text5.select();
return false;
}
else {
return true;
}
return ture;
}
function check(){
if (checkname() && checkpassword() && checkrepassword() && checkEmail()) {
return true;
}
else {
return false;
}
}
</script>
</head>
<body>
<form name="form1" method="post" action="2.html" onsubmit="return check()">
<table>
<tr>
<td>
用户名:
</td>
<td>
<input id="text1" type="text" name="text1" onblur="check()">
<div id="div1" style="display:inline">
</div>
</td>
</tr>
<tr>
<td>
密码:
</td>
<td>
<input id="text2" type="password" name="text2" onblur="check()">
<div id="div2" style="display:inline">
</div>
</td>
</tr>
<tr>
<td>
确认密码:
</td>
<td>
<input id="text3" type="password" name="text3" onblur="check()">
<div id="div3" style="display:inline">
</div>
</td>
</tr>
<tr>
<td>
电子邮件地址:
</td>
<td>
<input id="text4" type="text" name="text4" onblur="check()">
<div id="div4" style="display:inline">
</div>
</td>
</tr>
<tr align="center">
<td align="center">
<input type="submit" value="提交" name="tect6"><input type="reset" value="重置" name="text7">
</td>
</tr>
</table>
</form>
</body>
</html>
如何获知某客户端已登录某网站?求脚本源码
有段代码不知能帮到你不?获取所提交URL页面源码的:
<form name=meizz2>
<input name=siteName2 value= "要跟踪的网站地址 ">
<input type=button value=查看源代码 onclick= "window.location= 'view-source: '+ document.meizz2.siteName2.value;viewsrc() ">
<textarea name=text1 style= "width: %; height: % "> </textarea>
</form>
<script>
function viewsrc()
{
document.meizz.text1.value=loadContent(document.meizz.siteName.value)
}
function loadContent(strURL) //I get this code from a friend (used for "function f_text3() ")
{
var strContent = " ";
if (typeof strURL != "string " || strURL == " ")return strContent;
try
{
var oProxy = new ActiveXObject( "Microsoft.XMLHTTP ");
oProxy[ "Open "]( "GET ", strURL, false);
oProxy[ "Send "]();
strContent = oProxy[ "responseText "];
}
catch(e){ status = e.description}
return strContent;
}
</script>