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

网页设计登录页面代码(网页设计新闻页面代码)

admin 发布:2022-12-19 20:07 106


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

本文目录一览:

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

%@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网页设计:一个简单的登录界面代码!

input

type='button'

text='登陆'

onclick='return

checknull()'你说的要能识别是否输入了用户名和密码!需要用脚本来验证

script

function

checknull()

{

var

a=document.getElementById('用户名文本框ID').text;

var

b=document.getElementById('密码文本框ID').text;

if(a.length0b.length)

return

true;

else

return

false;

}

script

用DW软件制作网页的页面登陆并且有跳转页面的代码是什么?

span class="STYLE22"span class="STYLE15"span class="STYLE16"登陆页面

/span/spanspan class="STYLE16"

/title

/span

script type="text/javascript" language="javascript"

function CheckLogin()

{

var usrName = document.getElementById("txtUserName");

var pwd = document.getElementById("txtPassword");

if(usrName pwd)

{

if(usrName.value == "123" pwd.value == "123")

{

alert("登录成功");

location.href="four.html";

}

else

{

alert("登录失败");

}

}

}

/script

/head

body

/div

div

table width="323" height="148"

tr

td width="64"span class="STYLE1"用户名/span:/td

td width="218"

input id="txtUserName" type="text" //td

/tr

tr

tdspan class="STYLE1"密码/span/td

td

input id="txtPassword" type="password" //td

/tr

tr

td colspan="2"

input type="submit" onclick="javascript:CheckLogin()" value="确定"//td

/tr

/table

a href="index.html"span class="STYLE2"用户名为:123 密码为:123/spanspan class="STYLE17" 【登陆成功可进入下一页】【 否则显示登陆失败对话框 】/spanspan class="STYLE19"{返回首页/span/aspan class="STYLE18"span class="STYLE19"}/span/span/div

p /p

pa href="four.html" class="STYLE20"匿名登陆/a

试一下这个吧..在body后面插入就行..

还有="four.html" 是你想添加的页面地址

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

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

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


取消回复欢迎 发表评论:

分享到

温馨提示

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

联系我们反馈

立即下载