这是控制管理员的,在_编写网页的心得体会">
赞
踩
经常把top网页放在公用的位置,用<!--#include file="conn.asp"-->来调用。
<%
if session("admin")<>"prosurfer" then
response.write "<script language='javascript'>"
response.write "alert('您不是管理员或密码错误');"
response.write "history.go(-1);"
response.write "</script>"
response.end
end if
%>
这是控制管理员的,在登陆正确的情况下, session("admin")="prosurfer",,这样管理员就可以管理网页了,其他人则不行。。
再说一下,制作的网页推荐都建立在表格中,你可以把表格属性设置成不显示的,那样结构会很紧凑,不容易变形,为什么初学者建立的网页为什么不好看,其中一个原因就是没有把网页放在表格内,浏览时变了形:(
还有刚开始做网页,可以使用别人的CSS,,那样的话,你的网页会有质的飞跃。
比如:
<style type="text/css">
<!--
table,td,body {font-size: 12px;line-height:16px;color:#000000;}
textarea,input,select {font-size: 12px;line-height:16px;color:#000000;}
A:link {text-decoration: none; color: 000000;}
A:visited {text-decoration: none; color: 000000;}
A:active {text-decoration: none; color: 000000;}
A:hover {text-decoration: underline; color: red}
-->
<!--
body {CURSOR: url('icons/1.ani')}
-->
</style>
这样夹在网页上,网页会很漂亮。body {CURSOR: url('icons/1.ani')}是把鼠标的形状都可以改变成自己喜欢的鼠标。
记住CSS控制网页会很美观并且很容易,方便的很。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。