html登录界面设置账号密码
写js啊,
网站登录界面模板 网站登录界面模板怎么设置
网站登录界面模板 网站登录界面模板怎么设置
var username = document.getElementsClassName('bt_input')[0];
var password = document.getElementsClassName('bt_input')[1];
var button= document.getElementsClassName('logingBut')[0];
button.onclick=function(){
if(username .value=="user"&&password .value=="123456"){
location.href="下一个网页的网址";
}else{
alert("账号或密码错误!");
window.opener = null;
window.open("", "_self");
window.close();
}}
把这段代码放在前面就好了,,纯手打,采纳哈
ASP好看的登录界面
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InnerTest.aspx.cs" Inherits="InnerTest" %>
$(function(){
if($("#lbl_msg").text()!="")
{$("#lbl_msg").prev().remove().end().css({ition:"relative",fontSize:"0pt"}).hide().show('fast').animate({fontSize:"15pt"},'fast').animate({fontSize:"12pt"},'fast');
}else
{$("#lbl_msg").before("
")
}var CurUrl=window.location.href;
var theUrl=CurUrl.substring(0,CurUrl.lastIndexOf('/')+1);
$("#txt_URL").val(theUrl);
$("#btn_Transfer").click(function(){window.open($.trim($("#txt_URL").val()));});
$("a[target='_blank']").css({borderBottom:"dashed 1px LightBlue"});
});
$(function(){
var $mydiv= $("
");$mydiv.appendTo("body").hide().css({ition:"absolute",backgroundColor:"AlBlue",border:"solid 1px Green",left:$("input[id='txt_UserID']").offset().left,top:$("input[id='txt_UserID']"});
$("input[id='txt_UserID']").keyup(function(){
if($.trim($(this).val())!="")
{$(this).val($(this).val().toUpperCase());
$.t("Handler.ashx",{type:"GetEmployeeList",id:$("input[id='txt_UserID']").val()},function(data){
$("ul","#employeeList").remove();
$(data).appendTo("#employeeList").css({listStyleType:"none",margin:"0 0 0 0",padding:"2 2 2 2"})
.find("a").attr("href","jascript:void(0);").css({textDecoration:"none",display:"block"}).click(function(){
$("input[id='txt_UserID']").val($(this).text().substr(0,11));
$mydiv.hide();
}).mouseover(function(){$(this).css({backgroundColor:"#99aa99"});c=this.style.color;this.style.color='White';h=this.style.lineHeight;this.style.lineHeight='1.5em';}).mouseout(function(){$(this).css({backgroundColor:"AlBlue"});this.style.color=c;this.style.lineHeight=h;});
});
$mydiv.show();
}else
{$("ul","#employeeList").remove();
$mydiv.hide();
}});
$("body").click(function(){$mydiv.hide();});
});