关于cookies的写法(在线等,好了,马上结分)
无聊的小船 2004-01-06 03:45:04 我的页面想实现改变肤色的功能
然而我想改变肤色之后,以后登录时总是那种颜色,进去之后也可以再改变。但我不会写cookies,请各位帮忙?
我是通过两个文件夹存放两种肤色的图片,也就是文件夹images和images1
请帮我修改一下我的写法
是不是要再写一个asp文件,是在下面这段的form中的action里面
谢谢!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>cookies实例</title>
</head>
<body>
<% public img
if Request.Cookies("face")=Empty then
flag=false
else
flag=true
end if %>
<% if flag then
img="images"
else
img="images1"
end if
%>
<form name="form2" method="post" action="">
<td width="240" rowspan="2" valign="top"> 选择界面:
<select name="fa">
<option> <% = Request.Cookies("face") %></option>
<option selected>默认界面</option>
<option>稳健型界面</option>
</select>
<input type="submit" value="确定"> </td>
</form>