1、html網頁登錄界面跳轉設計
下面列了五個例子來詳細說明,這幾個例子的主要功能是:在5秒後,自動跳轉到同目錄下的hello.html(根據自己需要自行修改)文件。
1) html的實現
<head>
<!-- 以下方式只是刷新不跳轉到其他頁面 -->
<meta http-equiv="refresh" content="10">
<!-- 以下方式定時轉到其他頁面 -->
<meta http-equiv="refresh" content="5;url=hello.html">
</head>
優點:簡單
缺點:Struts Tiles中無法使用
2) javascript的實現
<script language="javascript" type="text/javascript">
// 以下方式直接跳轉
window.location.href='hello.html';
// 以下方式定時跳轉
setTimeout("javascript:location.href='hello.html'", 5000);
</script>
優點:靈活,可以結合更多的其他功能
缺點:受到不同瀏覽器的影響
3) 結合了倒數的javascript實現(IE)
<span id="totalSecond">5</span>
<script language="javascript" type="text/javascript">
var second = totalSecond.innerText;
setInterval("redirect()", 1000);
function redirect(){
totalSecond.innerText=--second;
if(second<0) location.href='hello.html';
}
</script>
優點:更人性化
缺點:firefox不支持(firefox不支持span、div等的innerText屬性)
3') 結合了倒數的javascript實現(firefox)
<script language="javascript" type="text/javascript">
var second = document.getElementById('totalSecond').textContent;
setInterval("redirect()", 1000);
function redirect()
{
document.getElementById('totalSecond').textContent = --second;
if (second < 0) location.href = 'hello.html';
}
</script>
4) 解決Firefox不支持innerText的問題
<span id="totalSecond">5</span>
<script language="javascript" type="text/javascript">
if(navigator.appName.indexOf("Explorer") > -1){
document.getElementById('totalSecond').innerText = "my text innerText";
} else{
document.getElementById('totalSecond').textContent = "my text textContent";
}
</script>
5) 整合3)和3')
<span id="totalSecond">5</span>
<script language="javascript" type="text/javascript">
var second = document.getElementById('totalSecond').textContent;
if (navigator.appName.indexOf("Explorer") > -1) {
second = document.getElementById('totalSecond').innerText;
} else {
second = document.getElementById('totalSecond').textContent;
}
setInterval("redirect()", 1000);
function redirect() {
if (second < 0) {
location.href = 'hello.html';
} else {
if (navigator.appName.indexOf("Explorer") > -1) {
document.getElementById('totalSecond').innerText = second--;
} else {
document.getElementById('totalSecond').textContent = second--;
}
}
}
</script>
參考http://www.cnblogs.com/aszx0413/articles/1886819.html
2、javascript html 設計一個登錄界面
注冊頁面代碼:
登錄頁面代碼:
以上代碼使用了WEB SQL,還請選擇合適的瀏覽器查看。
3、網頁製作中登陸界面設計代碼
<%@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>
4、網頁製作如何製作用戶登陸後界面
你現在網頁中建立表單,「表單」你應該知道吧!然後建立資料庫在網頁中要編寫代碼最起碼要用到「action"這是動作有這么一個代碼"action=(你需要連接到的網頁).asp」當用戶注冊或是登陸時網頁直接鏈接到這個網頁(後門鏈接),進入資料庫中查找!!!
dim rs,conn
conn = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/xiao/q1.mdb")
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM 表 "
rs.open sql,conn,3,3
這是相對路徑上資料庫鏈接的代碼,這只是參考啊
5、HTML網頁設計:一個簡單的登錄界面可以連接到資料庫記錄的代碼
如下參考:
1.首先,在您的計算機桌面上創建一個新文件夾,然後在該文件夾中創建一個新的文本文檔。

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

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

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

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

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

6、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>
7、html登陸界面代碼
<form method="post" action="###" name="myform" onsubmit="checkpost()">
<label for="name">用戶名:</label><input type="text" name="name" id="name" /><br />
<label for="pw">密碼:</label><input type="password" name="pw" id="pw" /><br />
<input type="submit" value="提交" />
</form>
<script>
function checkpost(){
if(document.forms[0].name.value=="你要的用戶名"&&document.forms[0].pw.value=="你要的密碼"){
window.location="你要跳轉的地址";
}else{
alert("用戶名或密碼不正確!")
return false;
}
}
</script>
8、如何從頭製作一個html5登錄頁面
首先要登陸自己的賬號,這個工具是免注冊的,微信掃一掃就登陸進去了;
進去後是模板頁面,有很多有趣好玩的模板;
點擊「我的」進入個人空間;
添加新折頁。模板中有很多好玩的游戲,所以我們選擇做一個相冊;
可以掃碼看一下初始的效果,決定了之後點擊「開始製作」;
每一個標簽頁都有自己的內容,可以通過刪除和復制自己控制模板的規格;
上傳素材替換掉模板中的內容;
可以實時在手機上預覽效果;
保存摺頁的時候記得修改頁面上的信息;
好的製作者可是會利用這些信息吸引眼球哦~
在手機上預覽沒有問題後就可以直接右上角分享給朋友啦!~
9、這個首頁的html5網站設計代碼(尤其是頭部那登錄注冊代碼怎麼寫)
首先先說一下HTML5的代碼只是在原有的XHTML基礎上增加了一些新的標簽(還有一些新的特性,例如資料庫和緩存等特性)
以下為此頁面的結構代碼:
<!doctype html>註:以上為頁面的大的框架,相對用HTML5新的標簽更合理的,全用上了新的帶有語義標簽。
另外多說一下,[注冊登陸]這塊在html5的新標簽裡面沒有很合適的語義化的標簽,所以依然採用原有的div標簽為最合理。html5隻是在原有的技術的基礎上更細化了,咱在製作代碼的過程中沒必要必須用HTML5的代碼,主要看是否合理,合理的為較合適的。
多說的:不管用XHTML還是HTML5寫代碼,結構(HTML5)與樣式(CSS)盡量要分離!
希望能幫到你!
10、怎麼實現html5網頁的登錄界面
首先,下載html5開發軟體Intellij IDEA,這個直接在百度搜索框中搜索即可。
打開軟體,點擊file,選擇New project,在彈出的對話框中,選擇static web選項中的html5,點擊next,在新對話框中,輸入項目名稱,點擊finish
在body標簽中,引入form標簽 <body> <form></form></body>
設置用戶名和密碼,利用input的text屬性
添加一個登錄按鈕,利用input的button屬性
為了用戶名和密碼可以對齊,增加了一個空格,用到了實體,空格=
對整個頁面,進行css樣式排版
點擊run,預覽效果