ssh框架面试常问题目:隐藏横幅代码怎么做!高手请进;

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 23:47:29
<input type="radio" onclick="javascript:alert('提示:您正在使用的版本无此功能。');">隐藏横幅</td>
怎么改这段代码;求高手答解;
这是以下的内容,回答能用;高分给/
<!--#include file="../include/www-buyok-com.asp"-->
<script language=javascript src=../include/mouse.js></script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="manage.css" type="text/css">
</head>
<BODY background="../images/admin/back.gif">
<%
action=request("ok")
if action="" then
Set rs = conn.Execute("select * from adv")
%>

<table width="98%" border="1" style="border-collapse: collapse; border-style: dotted; border-width: 0px" bordercolor="#333333" cellspacing="0" cellpadding="2">
<form action=adv5.asp method=post name=adv>

<tr class=backs><td colspan=0 class=td height=0>横幅图片设置</td></tr>

<td width=20% align=right height="18">图片类型</td><td>
<input type="radio" value="0" checked name="flash2">JPG/GIF格式的图片<br>
<input type="radio" onclick="javascript:alert('提示:您正在使用的版本无此功能。');">Flash格式的图片<br>
<input type="radio" onclick="javascript:alert('提示:您正在使用的版本无此功能。');">隐藏横幅</td>
</tr>

<tr>
<td width=20% align=right height="18">JPG/GIF图片</td><td> <input type=text value="<%=rs("hf2pic")%>" name=hf2pic size=0 maxlength=0> <INPUT TYPE="button" value="浏览" onClick="window.open('upload.asp?fuptype=adv&fupname=banner2&frmname=hf2pic','blank_','scrollbars=yes,resizable=no,width=0,height=0')"></td>
</tr>
<tr>
<td width=20% align=right height="18">链接</td><td> <input type=text value="<%=rs("hf2url")%>" name=hf2url size=40 maxlength=100></td>
</tr>
<tr>
<td width=20% align=right height="18">说明</td><td> <input type=text value="<%=rs("hf2tit")%>" name=hf2tit size=40 maxlength=100></td>
</tr>

<tr><td colspan=2>
<INPUT name="ok" TYPE="hidden" value="ok"><INPUT name=action TYPE="submit" value="保存设置"></td></tr>
</form></table>
<%
rs.close
set rs=nothing
end if%>

<%
if action="ok" then

if trim(request.form("hf2pic"))="" then er=1

hf2pic=request.form("hf2pic")
hf2pic=split(hf2pic,".")
n=UBound(hf2pic)
if LCase(hf2pic(n))<>"jpg" and LCase(hf2pic(n))<>"gif" then er=2

if er=1 then
response.write "<script language='javascript'>"
response.write "alert('填写不完整或者不符合要求,单击“确定”返回上一页!');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if

if er=2 then
response.write "<script language='javascript'>"
response.write "alert('您填写的图片格式不正确,单击“确定”返回上一页!');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if

判断一下即可,(或者从配置文件里读取)

<%
if(查询权限为真){
%>
<img>
<% }else{ %>
无权限
<% }%>