導航:首頁 > 萬維百科 > 網頁頁面設計代碼

網頁頁面設計代碼

發布時間:2020-12-05 21:03:31

1、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>

2、急求一份html、css、JavaScript的一個個人網頁設計模板代碼,整個網站設計頁面至少3頁?老師讓交作業明天

百度搜索葡萄家園,第一個,這個網站是網頁素材站,有個網頁模板欄目,裡面很多html+css+javascript網頁模板,肯定是樓主你所需要的。希望可以幫到你。記得給分哦、

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、怎麼用html製作簡單得網頁代碼?

HTML的全稱是HyperTextMarkupLanguage,超文本標記語言 。
其實它就是文本,由瀏覽器負責將它解析成具體的網頁內容。

比如,瀏覽器會將下面的HTML代碼。

5、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>

6、HTML網頁設計中的將本頁「設為主頁」的代碼是怎樣的啊?

<a href=# onClick="this.style.behavior=』url(#default#homepage)』;this.setHomePage
(』http://www.aaa.com');">將本站設為首頁</a>
<script language="JavaScript">
function bookmarkit(){window.external.addFavorite(』http://www.aaa.com',』』)}
if (document.all)document.write(』<a href="#" onClick="bookmarkit()">將本站加入收藏夾</a>』)
</script>

使用方法:

怎樣使用特效代碼?
只要把這些代碼復制、粘貼到你的網頁源代碼中,保存,再在瀏覽器中打開,你就會看到效果了!
怎樣在我的網頁中插入代碼?
使用DreamWeaver:
在編輯狀態下按F10即彈出源代碼窗口,將特效代碼粘貼進去即可。
使用FrontPage:
點擊編輯窗口左下角的「HTML」選項卡即出現源代碼窗口,將特效代碼粘貼進去即可。
使用「記事本」等編輯器:
直接用這些編輯器打開網頁文件,出現的就是源代碼,將特效代碼粘貼進去即可。

在什麼地方插入代碼?
一般來說,在網頁源代碼的<body>與</body>之間的任何地方插入代碼都可以(除非特別指明,例如要求插入到<head>與</head>之間)。提示:在<td>與</td>之間插入代碼,一般不會出錯。
該怎樣修改代碼?
插入代碼之後,把代碼中的文字替換成你自己的內容即可。
注意:為避免出錯,請不要改動除中文文字之外的代碼,否則程序可能會不能運行!

7、求最新網頁設計代碼大全!!!

http://tool.136z.com/AdCode/

與網頁頁面設計代碼相關的知識