1、求一份dw網頁設計作業代碼
自己這五年來用Dreamweaver做了有100多套網頁設計的學生作業,因為都是給學生定製的都符合學校或者學生考試期末作業的水平,都是div+css框架原創代碼寫的,有的有js,有的視頻音樂flash的等元素的插入,各種風格主題如風景、校園、美食、動漫、lol、咖啡、民航等等主題,我都共享在大設計師論壇,需要的可以去兔費下,需要登陸注冊下,望採納。
2、DW8製作用戶登錄、注冊程序的教程"請求網頁製作高手!!!!
http://xgxhwl.web16.yhhost.net/你可以去看看,里邊有陶益數碼Dreamweaver 設計ASP視頻教程全套VIP教程下載!
3、求DW製作網頁的基本步驟
具體操作步驟如下:
一、首先,在計算機C盤下創建一個「myweb2」文件夾,如下圖所示。
二、然後打開Dreamweaver軟體,如下圖所示。
三、新建一個站點,命名為「myweb2」,跟創建在C盤里的「myweb2」一樣,如下圖所示。
四、先在網上下載一張圖片,再保存到C盤下的myweb2,如下圖所示。
五、然後導入新建的HTML中,如下圖所示。
六、在圖片下輸入一些名字,如下圖所示。
七、在文字下,創建一個鏈接,鏈接為「www.baidu.com」,別人打開這個文字時,會彈出「百度」界面,如下圖所示。
八、然後點擊如下圖畫圓圈所示的工具欄。
九、打開圖片下的文字,就進入了百度界面,如下圖所示。
4、dw製作網頁中的注冊登錄代碼怎麼寫?
可以 用.net或者php或者asp都可以實現的,前台你不知道哪些頁面跳轉,現在的網頁都是動態的,鏈接都是後台調用 ,他們自己分配的id咱不知道,所以你也不知道鏈接到什麼地發過去,即使你鏈接了也是靜態的,可以用一個id控制項點擊跳轉
5、網頁設計DW
頁結構以及相同欄目下的導航條、各類圖標就顯得非常麻煩,不過我們可以藉助Dreamweaver MX 2004的模板功能來簡化操作。其實模板的功能就是把網頁布局和內容分離,在布局設計好之後將其存儲為模板,這樣相同布局的頁面可以通過模板創建,因此能夠極大提高工作效率。
一、製作模板
製作模板和製作一個普通的頁面完全相同,只是不需要把頁面的所有部分都製作完成,僅僅需要製作出導航條、標題欄等各個頁面的公有部分,而把中間區域用頁面的具體內容來填充。
第一步:先在Dreamweaver MX 2004中運行「File→New」命令,接著從圖1所示的窗口中依次選定「Template page→HTML template」選項,點擊「Create」按鈕之後即可創建一個模板文件。
第二步:在頁面設計視圖下插入網頁框架、導航條、Flash標題等所有頁面公有的元素(圖2),然後運行「File→Save」命令將這個模板保存下來。
小提示:可以先下載一個中意的網頁,然後在Dreamweaver MX 2004中打開它,僅僅保留框架等元素之後通過「File→Save as Template」命令將其保存為模板,這樣能夠省去很多製作模板的時間。
為了避免編輯時候誤操作而導致模板中的元素變化,模板中的內容默認為不可編輯,只有把某個區域或者某段文本設置為可編輯狀態之後,在由該模板創建的文檔中才可以改變這個區域。先用滑鼠選取某個區域(也就是每個頁面不同內容的區域),接著運行「Modify→Templates→New Editable Region」命令,並且在彈出的對話框中為這個區域設定一個名稱,這樣就完成了編輯區域的設置。
6、dreamweaver資料庫製作注冊網頁
zc.asp 這個是注冊表介面
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Hyman系統管理注冊表</title>
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style4 {font-size: 12px; color: #0000FF; }
body {
background-color: #000000;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style8 {color: #0000FF}
.style9 {color: #0000CC}
.style11 {font-size: 12px}
.style12 {color: #FFFF00}
-->
</style>
</head>
<body>
<form action="zcb.asp" method="post" name="zcb.asp" id="zcb.asp">
<table width="284" height="313" border="1" align="center" cellspacing="0">
<tr>
<td width="75"><span class="style4">用戶名</span></td>
<td width="121"><input name="yhm" type="text" id="yhm" size="15">
</td>
<td width="74"><span class="style1">* <a href="index.asp" class="style11">點擊登錄</a></span></td>
</tr>
<tr>
<td><span class="style4">設置密碼</span></td>
<td><input name="mm" type="password" id="mm" size="15">
</td>
<td><span class="style1">*</span></td>
</tr>
<tr>
<td><span class="style4">再次輸入密碼</span></td>
<td><input name="mm2" type="password" id="mm2" size="15">
</td>
<td><span class="style1">*</span></td>
</tr>
<tr>
<td><span class="style4">性別</span></td>
<td><span class="style11">
<input type="radio" name="xb" value="男">
<span class="style8">男
</span></span> <span class="style11">
<input type="radio" name="xb" value="女">
<span class="style9">女 </span></span></td>
<td><span class="style1">*</span></td>
</tr>
<tr>
<td><span class="style4">出生年月</span></td>
<td><input name="csny" type="text" id="csny" size="15">
</td>
<td><span class="style1">*</span></td>
</tr>
<tr>
<td><span class="style4">所在地區</span></td>
<td><input name="szdq" type="text" id="szdq" size="15">
</td>
<td><span class="style1">*</span></td>
</tr>
<tr>
<td><span class="style4">電子郵箱</span></td>
<td><input name="dzyx" type="text" id="dzyx" size="15">
</td>
<td><span class="style1">*</span></td>
</tr>
<tr>
<td><span class="style4">QQ</span></td>
<td><input name="qq" type="text" id="qq" size="15">
</td>
<td><span class="style1">*</span></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input name="zcb.asp" type="submit" id="zcb.asp" value="提交">
<input name="zc.htm" type="reset" id="zc.htm" value="重置">
</div></td>
</tr>
<tr>
<td height="37" colspan="3"><div align="center" class="style11">
<input type="radio" name="radiobutton" value="radiobutton">
<span class="style12"> 我已閱讀並同意注冊協議 </span></div></td>
</tr>
</table>
<table><embed src="http://www.ooloo.com.cn/blog/images/music/423/003.mp3"autostart="true" loop="true" hidden="true">
<style>
a {
text-decoration:none;
color:#fff;
}
a:hover {
text-decoration:underline;
color:#f00;
}
</style></table>
</form>
</body>
</html>
zcb.asp這個是注冊表的提交,
<!--#include file="function.asp"-->
<%
Public Function IsEmail(ByVal PString)'公共函數定義
Dim Plt,Pgt : Plt = False : Pgt = False'定義變數
For x = 2 To Len(PString) - 1
If Mid(PString,x,1) = "@" Then Plt = True'Mid是asp的一個函數,這句話意思用來驗證輸入格式是否存在@
If Mid(PString,x,1) = "." And Plt = True Then Pgt = True'驗證輸入格式是否有. 如果有,plt,pgt=true(真)
Next
If Plt = True And Pgt = True Then '如果plt=true pgt=true(真)
IsEmail = True'然後isemail 為真
Else
IsEmail = False'否則 為False
End if
End Function'封閉函數
'上面這段就是驗證表單文本輸入中郵箱格式,可以使用DW自帶功能,不過提示是英文%>
<%
'第一步:資料庫的連接
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("zcb.mdb")
'第二步:獲取變數
dim a ,b ,c ,d ,e ,f ,g ,h
a = request("yhm")
b = request("mm")
c = request("mm2")
d = request("xb")
e = request("csny")
f = request("szdq")
g = request("dzyx")
h = request("qq")
'第三步:打開數據表
set rs = server.createobject("adodb.recordset")
rs.open"select * from Hyman",conn,1,3
'第四步:數據表的基本操作:添加,刪除,查詢,修改
if a = "" or b = ""then
AlertAndGo "用戶名或密碼不能為空","zc.asp"
else
if b <> c then
AlertAndGo "兩次輸入密碼不一致,請認真填寫","zc.asp"
else
set rs = server.createobject("adodb.recordset")
rs.open"select * from [Hyman] where 用戶名 = '"&a&"'",conn,1,3
if not rs.eof then
AlertAndGo"用戶名已存在,返回重新輸入","zc.asp"
else
if d = "" then
AlertAndGo "請選擇你的性別","zc.asp"
else
if e ="" then
AlertAndGo "請輸入你的出生年月","zc.asp"
else
if f ="" then
AlertAndGo "請填寫你所在的地址","zc.asp"
else
if g ="" then
AlertAndGo "請輸入你的電子郵箱","zc.asp"
else
if IsEmail(g) = false then
AlertAndGo "請輸入您正確的郵箱","zc.asp"
else
if h ="" then
AlertAndGo "請輸入你的QQ","zc.asp"
else
rs.addnew
rs("用戶名") = a
rs("密碼") = b
rs("性別") = d
rs("出生年月") = e
rs("所在地區") = f
rs("電子郵箱") = g
rs("QQ") = h
rs.update
AlertAndGo"注冊成功","index.asp"
end if
end if
end if
end if
end if
end if
end if
end if
end if
'第五步:關閉數據表和資料庫
rs.close
set rs = nothing
conn.close
%>
function.asp 這個是錯誤或正確提示代碼:
<%
'彈出一個提示框並轉向指定的頁面
'用法:AlertAndGo"提示內容","目標頁面URL"
Function AlertAndGo(str,url)
response.Write "<script language='javascript'>alert('"& str &"');window.location.href='"&url&"';</script>"
response.End()
End Function
'彈出一個提示框
'用法:Alert"提示內容"
Function Alert(str)
response.Write "<script language='javascript'>alert('"& str &"');</script>"
response.End()
End Function
'彈出一個提示框並轉向返回
'用法:AlertAndBack"提示內容"
Function AlertAndBack(str)
response.Write "<script language='javascript'>alert('"& str &"');history.go(-1);</script>"
response.End()
End Function
%>
資料庫自己設計一下,看圖!