编程教程
你的位置: 中国个人站长站 -- 网络编程 -- ASP教程 -- 教程正文 跟我学做留言本(三)
推荐位

跟我学做留言本(三)

中国个人站长站 ASP教程 点击数: 更新时间:2007-8-24 14:31:56
<input class=input1
type=text maxlength=100 size=30 name=homepage value="<%=rs("admin_homepage")%>">
</td>
</tr>
<tr>
<td class=jnfont3 width="30%" align="right" height="15">每页显示: </td>
<td class=jnfont3 width="70%" height="15">
<select name="perpage">
<%for i=5 to 20 step 5
if rs("admin_perpage")=i then
response.write "<option selected>"&i&"</option>"
else
response.write "<option >" &i&"</option>"
end if
next
%>
</select>
条留言 </td>
</tr>
<tr>
<td class=jnfont3 width="100%" align="center" colspan="2" height="15">
<input type="hidden" name="action" value="modify">
<input class=input1 type=submit value=" 修 改 " name="submit">
</td>
</tr>
<tr>
<td class=jnfont3 width="100%" colspan="2">
<p align=right>
<script language="JavaScript">
function check(theForm)
{
if (theForm.pwd.value == "")
{
alert("请输入密码!");
theForm.pwd.focus();
return (false);
}
if (theForm.newpwd.value != "")
{
if (theForm.newpwd.value != theForm.newpwd2.value)
{
alert("两次输入的密码不相同!");
theForm.newpwd.focus();
return (false);
}
}
if (theForm.nick.value == "")
{
alert("请输入昵称!");
theForm.nick.focus();
return (false);
}
if (theForm.name.value == "")
{
alert("请输入姓名!");
theForm.name.focus();
return (false);
}
if (theForm.homepage.value == "")
{
alert("请输入您的主页!");
theForm.homepage.focus();
return (false);
}
}
</script>
『<a
href="index.asp">返回</a>』</p>
</td>
</tr>
</form>
</tbody>
</table>
</tr>
</tbody>
</table>
<%closetable rs
closedb my
end sub
%>

最后,加上文件尾部的版权引用:
<!--#include file="bott.htm" -->

为了弹出一个窗口来显示头像和UBB用法,在<head></head>之间加入一个JS脚本:
<script language=JavaScript>
function popwin3(path){
window.open(path,"","height=450,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
</script>


好了。所有的代码都写完了,最后就是测试了。
因为是第一次写这么长的文章,不管是编排上还是内容上,总会有不足的地方,还请大家多多见谅
有什么意见,可以提出来,争取以后写得更好。

 


上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] 

教程录入:swh    责任编辑:swh 
个人站长站与你风雨同舟!
本站所提供的资源均来源于互联网,如有侵权行为,请与本站管理员联系,我们会第一时间删除!
·如果您发现《跟我学做留言本(三)》文章有错误,也请通知我们修改!
联系邮箱chinageren#126.com,谢谢支持!
站内搜索:
广告服务 | 友情链接 | 联系我们 | 免责声明 | 用户留言 | 网站导航
版权所有:中国个人站长站 2007-2008 未经授权禁止复制或建立镜像 客服QQ号:112731235
copyright © 2007-2008 www.ChinaGeRen.com online services. all rights reserved. 苏ICP备05000059号