1、你會做網頁設計登錄與注冊頁面嗎?
這個其實蠻簡單 也是WEB中最基礎的東西
1.就是在SQLSERVER中建立表 來保存用戶名和密碼之類的信息。
2.信息獲取的話 無非就是兩個textbox,把密碼的那個textbox的「type」屬性改為「password」
3.創建資料庫鏈接字元串 然後 sqlconnection --接著編寫SQL查詢語句--最後--sqlcommand。
4.這里我的方法是 用sqlcommand的Executereader方法來獲取一個 datatable "dt".
然後來判斷 dt的dt.rows.count屬性是否大於0 如果大於0 則證明用戶名與密碼正確的了。 (即這行記錄存在於表中)
前提是 你的SQL語句 必須這么寫
select * from "保存用戶信息的表" where textbox1.text=username and textbox2.text=password
2、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>
3、HTML網頁設計:一個簡單的登錄界面可以連接到資料庫記錄的代碼
如下參考:
1.首先,在您的計算機桌面上創建一個新文件夾,然後在該文件夾中創建一個新的文本文檔。
2.然後用記事本雙擊打開文本文檔,如下圖所示,然後編寫一個簡單的HTML代碼。
3.點擊「另存為」功能選項,顯示默認的「另存為」代碼為ANSI。
4.我們將把編碼和文件名更改回圖中所示的圖像並保存它。
5.然後回到新創建的文件夾,找到一個額外的HTML文件。
6.最後,使用瀏覽器打開HTML文件。結果如圖所示。
4、網站的登錄頁面應該怎麼設計
網站的登錄頁面要求簡單、干凈;主要展示用戶名、密碼;下面就有個注冊和忘記密碼,以這樣的形式來展示就可以了。
5、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
6、javascript html 設計一個登錄界面
注冊頁面代碼:
登錄頁面代碼:
以上代碼使用了WEB SQL,還請選擇合適的瀏覽器查看。
7、網頁製作中登陸界面設計代碼
<%@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>
8、優秀的網站頁面設計說起來很簡單,可具體怎麼做?
額……理論知識這個東西,不懂的人的確是看不懂呀……我這說了估計還是理論知識,建議這種理論知識不要強迫自己理解, 用來學一學作為後期對別人給自己做的網站的檢查可能更好一點~
首先應該有一個設計方案,把想放在網站頁面設計上的東西做一個規劃,比如說網站的整體風格,欄目和項目的具體樣式有一個初步的規劃,定下了初稿之後,才能更好的進行下一步。這一步呢就需要你來好好思考一下了!
如果是跨國公司或者韓國本土公司,需要做韓語網站的話,還需要把相對應的項目翻譯一下,這樣才能讓網民有更高的閱讀體驗。並且這種情況建議使用三種語言,中文+該國語言+英語。
接下來就是具體的分步驟的網站頁面設計了。一般來說分三個部分,首頁,欄目頁,內容頁。那麼大部分公司網站如何製作的呢?很大一步部分的公司網站都會選擇把公司的logo放在左上角或者右上角等比較醒目的位置上。
頂部做一個導航欄,假如網頁的整體背景使用的是公司圖片的話,最好建議導航欄設計的與眾不同一點,但是不要遮擋別的信息。欄目頁,和內容頁就比較簡單,頂部底部不變,中間按照自己的需求改一下就ok了。
除了頁面布局的規劃、色彩的搭配、字體的選取需合理得當,還應合理利用標簽、靜態網頁還是動態網頁的選擇上有一個篤定的規劃。標簽建議不要太少或太長,合理地利用網頁標題、描述、關鍵字才能在同行業中具有競爭力。網頁選擇上建議選擇靜態網頁,靜態網頁更容易被搜索引擎檢索。除此之外,網頁文件名的設置也格外重要,忌設置一些復雜、深奧的文件名。
總而言之,優秀的網站頁面設計需要明確設計思路、有條不紊的欄目設置、熟悉製作流程、重視鏈接的插入、標簽的設置、文件名的命名以及獨立性、關聯性的考量。只要遵循圍繞主題進行的設計理念,才可以擁有一個適合自己公司,對公司有幫助的網站~
以上就是設計小能手redtrans_cs小姐姐的意見了~以下提供點我做的某韓國公司網站的一小部分參考~
9、網頁設計用html和js製作一個登錄界面,大神幫幫忙?
① 建議使用HTML標簽時用語義化標簽,比如主塊部分就先用一個section標簽括起來;
② 外加css樣式設置美化頁面,特別是登錄界面的靈動感;
③ JavaScript綁定事件,實現更加人性化的功能;
10、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>