導航:首頁 > 萬維百科 > 網頁登陸頁設計

網頁登陸頁設計

發布時間:2020-11-24 00:54:36

1、求一個網頁設計的html作業 有一個登陸頁一個注冊頁一兩個子頁就可以,簡單的交作業用的。

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>php 登錄與注冊 </title>

<link rel="stylesheet" type="text/css" href="style.css">

<script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>

</head>

<body>

<div id="div">

<h3>歡迎登陸後台管理系統</h3>

<div id="cnt">

<form method="post" action="main.php">

用戶名:<input type="text" placeholder="請輸入用戶名" name="username">

<br><br>

密&nbsp;碼:<input type="password" placeholder="請輸入密碼" name="password">

<br><br>

<input type="submit" value="登錄" class="sub">

<input type="button" value="注冊" class="sub" id="sub">

</form>

</div>

</div>

<script>

$("#sub").click(function(){

location.href="reg.php";

});

</script>

</body>

</html>


css樣式

#div{width:300px;height:400px;

background:#B1FEF9;margin:0 auto;margin-top:150px;

border-radius:20px;

}

h3{margin-left:48px;padding-top:60px;}

h4{margin-left:120px;padding-top:60px;font-size: 18px;}

#cnt{width:280px;height:370px;margin-left:33px;padding-top:60px;}

.sub{width:70px;height:30px;border:1px solid #fff;background:#eee;

margin-left:28px;margin-top:20px;}

這個網上很多的,可以去下載嘛,這是我自己以前寫的,想寫的話也是很簡單的了,php中文網上有很多實例,可以參考的,希望能對你有幫助,謝謝!

2、網頁製作中登陸界面設計代碼

<%@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>
<td><input name="UserName" type="text" id="UserName2" size="23" maxlength="20"></td>
</tr>
<tr>
<td align="right">用戶密碼:</td>
<td><input name="Password" type="password" size="23" maxlength="20"></td>
</tr>
<tr>
<td align="right">驗 證 碼:</td>
<td><input 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"><strong>1024*768</strong></font>
或以上才能達到最佳瀏覽效果!<br>
需要瀏覽器為<strong><font color="#FF0000"> </font></strong><font color="#FF0000"><strong>IE5.5</strong></font>
或以上版本才能正常運行!!!</p>
</form>
</body>
</html>

3、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.length>0&&b.length)
return
true;
else
return
false;
}
<script>

4、html網頁設計:一個簡單的登錄界面代碼!

是這樣的效果嗎?

<!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>
<title>3</title>
<script>
function r()
{

var username=document.getElementById("username");

var pass=document.getElementById("password");
if(username.value=="")
{
alert("請輸入用戶名");
username.focus();
return;
}
if(pass.value=="")
{
alert("請輸入密碼");
return;
}
return true;
}
</script>
</head>
<body>
<form>
<table width="350" bgcolor="#ccffcc" style="border-color" border="1">
<tr align=center>
<td>用戶名</td><td><input type="text" name="username" id="username"></td>
</tr>
<tr align=center><td>密 碼</td><td><input type="password" name="password" id="password"></td></tr>
<tr align=center><td>驗證碼</td><td><input type="text" name="yanzheng"></td></tr>
<tr align=center><td colspan="2"><input type="button" value="登 錄" onclick="r();"/>     <input type="reset" value="重 置"/></td></tr>

</table>
</form>
</body>
</html>

5、HTML網頁設計:一個簡單的登錄界面可以連接到資料庫記錄的代碼

如下參考:

1.首先,在您的計算機桌面上創建一個新文件夾,然後在該文件夾中創建一個新的文本文檔。

2.然後用記事本雙擊打開文本文檔,如下圖所示,然後編寫一個簡單的HTML代碼。

3.點擊「另存為」功能選項,顯示默認的「另存為」代碼為ANSI。

4.我們將把編碼和文件名更改回圖中所示的圖像並保存它。

5.然後回到新創建的文件夾,找到一個額外的HTML文件。

6.最後,使用瀏覽器打開HTML文件。結果如圖所示。

6、網頁設計的登陸界面問題

CSS是一種方法,Macromedia Dreamweaver 8做也可以,用布局頁面來繪製表格的位置你想放哪就放哪很隨意的專!通屬過表格的布局你的問題就很好解決了如果你不會用的話這有布局頁面教程希望可以幫到你http://www.pqshow.com/index/dw.html
在第二章里。。。。。

7、javascript html 設計一個登錄界面

注冊頁面代碼:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注冊</title>
</head>
<body>

<form method="post" onsubmit="return false" id="form">
    <input type="text" name="username" placeholder="用戶名"><br>
    <input type="password" name="password" placeholder="密碼"><br>
    <input type="password" name="rePassword" placeholder="再次輸入密碼"><br>
    <input type="submit" onclick="register_user()" value="注冊"><br>
</form>
<a href="login.html">去登錄</a><script>
    var localDB = openDatabase('localDB', '1.0', 'Test DB', 2 * 1024 * 1024);
    localDB.transaction(function (ts) {
        ts.executeSql('CREATE TABLE IF NOT EXISTS user(username,password)')
    });
    function register_user() {
        var username = document.getElementsByTagName("input")[0].value;
        var password = document.getElementsByTagName("input")[1].value;
        var rePassword = document.getElementsByTagName("input")[2].value;
        if(password != rePassword)
        {
            alert("兩次輸入的密碼不同,請重新輸入");
        }else
 {
            localDB.transaction(function(ts){
                ts.executeSql("INSERT INTO user (username,password) VALUES ('"+username+"','"+password+"');");
                alert("注冊成功");
            });
        }
    }
</script>
</body>
</html>

登錄頁面代碼:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登錄</title>
</head>
<body>
<form onsubmit="return false" method="post">
    <input type="text" placeholder="用戶名"><br>
    <input type="password" placeholder="密碼"><br>
    <input type="submit" value="登錄" onclick="login()"><br>
</form>
<a href="register.html">去注冊</a>
<script>
    var localDB = openDatabase('localDB', '1.0', 'Test DB', 2 * 1024 * 1024);
    localDB.transaction(function (ts) {
        ts.executeSql("SELECT * FROM user",[],function (tx, results) {
            var len = results.rows.length;
            if(len<=0)
            {
                localDB.transaction(function (ts) {
                    ts.executeSql('CREATE TABLE IF NOT EXISTS user(username,password)')
                });
            }
        });
    });


    function login() {
        var username = document.getElementsByTagName("input")[0].value;
        var password = document.getElementsByTagName("input")[1].value;
        localDB.transaction(function (ts) {
            ts.executeSql("SELECT * FROM user WHERE username='"+username+"';",[],function (ts, res) {
                if(res.rows.length<=0)
                {
                    alert("登錄失敗,用戶未注冊");
                }else if (password == res.rows[0].password)
                {
                    alert("登錄成功,三秒後跳轉到百度");
                    setInterval(function () {
                        location.href = "https://www.baidu.com";
                    },3000);
                }else
 {
                    alert("登錄失敗,密碼錯誤");
                }
            });
        })
    }
</script>
</body>
</html>

以上代碼使用了WEB SQL,還請選擇合適的瀏覽器查看。


8、網站的登錄頁面應該怎麼設計

網站的登錄頁面要求簡單、干凈;主要展示用戶名、密碼;下面就有個注冊和忘記密碼,以這樣的形式來展示就可以了。

9、網頁必須有三個一定有的,分別是(主頁,注冊頁,登陸頁)。。弄一個網頁設計,然後寫畢業設計,

其實就是很簡單的一個網站..網頁必須有三個一定有的,分別是(主頁,注冊頁,登陸頁)

10、asp網頁設計中,怎麼實現用戶登錄,並且登陸狀態保持在當前頁面,類似於這種

html5以前是不可能實現,html頁面之間的參數傳遞,但是現在可用localStorage或者sessionStorage來實現,百度下就有了。

與網頁登陸頁設計相關的知識