当前位置:首页 > 代码 > 正文

网页注册界面设计代码(网页注册界面设计代码怎么填)[20240429更新]

admin 发布:2024-04-29 15:15 110


今天给各位分享网页注册界面设计代码的知识,其中也会对网页注册界面设计代码怎么填进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录一览:

VB设计一个登陆(注册)界面

将以下代码复制到Form1.frm中,然后用vb打开Form1.frm。

’代码开始

VERSION 5.00

Begin VB.Form Form1

Caption = "Form1"

ClientHeight = 1260

ClientLeft = 60

ClientTop = 345

ClientWidth = 4065

LinkTopic = "Form1"

ScaleHeight = 1260

ScaleWidth = 4065

StartUpPosition = 3 '窗口缺省

Begin VB.CommandButton C1

Caption = "确定"

Height = 495

Left = 960

TabIndex = 2

Top = 480

Width = 1815

End

Begin VB.TextBox T1

Height = 270

Left = 840

TabIndex = 0

Top = 120

Width = 2895

End

Begin VB.Label Label1

AutoSize = -1 'True

BorderStyle = 1 'Fixed Single

Caption = "账号:"

Height = 240

Left = 120

TabIndex = 1

Top = 120

Width = 600

End

End

Attribute VB_Name = "Form1"

Attribute VB_GlobalNameSpace = False

Attribute VB_Creatable = False

Attribute VB_PredeclaredId = True

Attribute VB_Exposed = False

Private Sub C1_Click()

Static num As Integer '定义静态变量,储存次数

If T1 = "abcd" Then '假设账号为abcd

MsgBox "登录成功"

End

ElseIf num = 3 - 1 Then

MsgBox "你无权使用本系统"

End

Else

MsgBox "账号错误,再次一次"

num = num + 1

End If

End Sub

'代码结束

网页制作中登陆界面设计代码

%@language=vbscript codepage=936 %

%

option explicit

'强制浏览器重新访问服务器下载页面,而不是从缓存读取页面

Response.Buffer = True

Response.Expires = -1

Response.ExpiresAbsolute = Now() - 1

Response.Expires = 0

Response.CacheControl = "no-cache"

'主要是使随机出现的图片数字随机

%

html

head

title管理员登录/title

meta http-equiv="Content-Type" content="text/html; charset=gb2312"

link rel="stylesheet" href="Admin_Style.css"

script language=javascript

function SetFocus()

{

if (document.Login.UserName.value=="")

document.Login.UserName.focus();

else

document.Login.UserName.select();

}

function CheckForm()

{

if(document.Login.UserName.value=="")

{

alert("请输入用户名!");

document.Login.UserName.focus();

return false;

}

if(document.Login.Password.value == "")

{

alert("请输入密码!");

document.Login.Password.focus();

return false;

}

//if (document.Login.CheckCode.value==""){

// alert ("请输入您的验证码!");

// document.Login.CheckCode.focus();

// return(false);

}

}

/script

/head

body onLoad="SetFocus();"

p /p

form name="Login" action="Admin_ChkLogin.asp" method="post" target="_parent" onSubmit="return CheckForm();"

table width="300" border="0" align="center" cellpadding="5" cellspacing="0" class="border"

tr class="title"

td colspan="2" align="center" strong管理员登录/strong/td

/tr

tr

td height="120" colspan="2" class="tdbg"

table width="250" border="0" cellspacing="8" cellpadding="0" align="center"

tr

td align="right"用户名称:/td

tdinput name="UserName" type="text" id="UserName2" size="23" maxlength="20"/td

/tr

tr

td align="right"用户密码:/td

tdinput name="Password" type="password" size="23" maxlength="20"/td

/tr

tr

td align="right"验 证 码:/td

tdinput name="CheckCode" size="15" maxlength="6"

1109 /td

/tr

tr

td colspan="2" div align="center"

input type="submit" name="Submit" value=" 确认 "

input name="reset" type="reset" id="reset" value=" 清除 "

br

/div/td

/tr

/table

/td

/tr

/table

p align="center"后台管理页面需要屏幕分辨率为 font color="#FF0000"strong1024*768/strong/font

或以上才能达到最佳浏览效果!br

需要浏览器为strongfont color="#FF0000" /font/strongfont color="#FF0000"strongIE5.5/strong/font

或以上版本才能正常运行!!!/p

/form

/body

/html

html网页设计:一个简单的登录界面代码!

!doctype html

html

head

meta charset="utf-8"

link href="main.css" type="text/css" rel="stylesheet"

title登陆界面/title

/head

body

div class="login_ico"

img src="images/login_ico.png"

/div

div class="login_putin"

ul

liinput type="text" /li

liinput type="password" /li

/ul

/div

div class="login_btn"

input type="submit" value="登陆"

/div

/body

/html

样式 :

*{

margin:0;

padding:0;}

li{

list-style-type:none;

margin:0;

padding:0;}

a{

text-decoration:none;

color:#000;}

/*---------------------按钮-----------------------------*/

.login_putin ul li input{

margin: 0;

width:70%;

padding: 1em 2em 1em 5.4em;

-webkit-border-radius:.3em;

-moz-border-radius: .3em;

border: 1px solid #999;

}

.login_btn{

width:300px;

margin:40px auto 0 auto;

}

.login_btn input{

width:100%;

margin:0;

padding:.5em 0;

-webkit-border-radius:.3em;

-moz-border-radius: .3em;

border:#1263be solid 1px;

background:#1b85fd;

color:#FFF;

font-size:17px;

font-weight:bolder;

letter-spacing:1em;

}

.login_btn input:hover{

background:#1263be;

}

javascript 注册页面设计

纯JS完成? 具体哪些功能?

页面1:

reg.html

html

head

script

function checkForm (obj) {

var ele = obj.elements;

for (var i = 0; i ele.length; ++i) {

var e = ele[i];

if (e.name) {

if (e.type == 'select-one') {

if (e.options[e.selectedIndex].value == '') {

alert('请选择籍贯');

return false;

}

else {

continue;

}

}

else if (e.type == 'select-multiple') {

continue;

}

else if (e.type == 'checkbox' || e.type == 'radio') {

var checkObj = document.getElementsByName(e.name);

var check = false;

for (var j = 0; j checkObj.length; ++j) {

if (checkObj[j].checked) {

check = true;

}

}

if (!check) {

alert('请做出选择,性别或爱好');

return false;

}

}

else if (e.type == 'button') {

continue;

}

else if (e.type=='hidden') {

continue;

}

else if (typeof e.value != 'undefined' e.value != '' e.style.visibility != 'hidden') {

continue;

}

else {

alert('用户或密码,年龄为空');

return false;

}

}

}

return true;

}

/script

/head

body

form id="form1" method="get" action="reg_save.html" onsubmit="return checkForm(this)"

table width="343" border="0" cellspacing="0" cellpadding="0"

tr

td height="43" colspan="2"注册/td

/tr

tr

td width="157" height="32"姓名:/td

td width="186"input type="text" name="username" id="username" //td

/tr

tr

td width="157" height="32"密码:/td

td width="186"input type="password" name="passwd" id="passwd" //td

/tr

tr

td height="37"年龄:/td

tdinput type="text" name="txtAge" id="textfield2"/td

/tr

tr

td height="36"性别:/td

tdinput name="sex" type="radio" id="sex1" value="男"

input type="radio" name="sex" id="sex2" value="女"

女/td

/tr

tr

td height="41"籍贯:/td

tdselect name="jiguan" id="select"

option value=""请选择/option

option value="广东"广东/option

option value="湖南"湖南/option

option value="广西"广西/option

option value="湖北"湖北/option

option value="北京"北京/option

option value="上海"上海/option

/select/td

/tr

tr

td height="35"爱好: /td

tdinput type="checkbox" name="hobby" id="hobby1" value="看书"

看书

input name="hobby" type="checkbox" id="hobby2" value="上网" /

上网

input type="checkbox" name="hobby" id="hobby3" value="运动" 运动/td

/tr

tr

td /td

tdinput type="submit" name="tijiao" id="tijiao" value="提交"/td

/tr

/table

/form

/body

/html

=========

页面2:

reg_save.html

html

head

/head

body

script

var request = {

QueryString : function(val) {

var uri = window.location.search;

var re = new RegExp("" +val+ "\=([^\\?]*)", "ig");

return ((uri.match(re))?(uri.match(re)[0].substr(val.length+1)):null);

},

QueryStrings : function() {

var uri = window.location.search;

var re = /\w*\=([^\\?]*)/ig;

var retval=[];

while ((arr = re.exec(uri)) != null)

retval.push(arr[0]);

return retval;

}

}

var q = request.QueryStrings();

for (var i in q) {

document.write(decodeURIComponent(q[i]) + 'br /');

}

/script

/body

/html

关于网页注册界面设计代码和网页注册界面设计代码怎么填的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。

版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;

本文地址:http://www.ahzz.com.cn/post/827.html


取消回复欢迎 发表评论:

分享到

温馨提示

下载成功了么?或者链接失效了?

联系我们反馈

立即下载