<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
dim da
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from tupian",conn,1,1
da=trim(rs("Pictures"))
rs.close
set rs=nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<div align="center">查看新闻 <a href="">查看图片</a></div>
<div align="right">
<%
if session("Membername") ="" then
%>
<a href="huiyuan.asp">会员登陆</a> <a href="zhuceHY.asp">注册</a>
<%else%>
<%=session("Membername")%> <a href="zhuxiao.asp">注销</a>
<%end if%>
</div>
<table width="200" border="1">
<tr>
<td><%
if da<>"" then
if datype=1 then
response.write "<img src="&da&" border=""0"">"
else
response.write da
end if
end if
%></td>
</tr>
</table>
</body>
</html>
<!--#include file="conn.asp"-->
<%
dim da
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from tupian",conn,1,1
da=trim(rs("Pictures"))
rs.close
set rs=nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<div align="center">查看新闻 <a href="">查看图片</a></div>
<div align="right">
<%
if session("Membername") ="" then
%>
<a href="huiyuan.asp">会员登陆</a> <a href="zhuceHY.asp">注册</a>
<%else%>
<%=session("Membername")%> <a href="zhuxiao.asp">注销</a>
<%end if%>
</div>
<table width="200" border="1">
<tr>
<td><%
if da<>"" then
if datype=1 then
response.write "<img src="&da&" border=""0"">"
else
response.write da
end if
end if
%></td>
</tr>
</table>
</body>
</html>
解决方案 »
- 新开发的Jquery UI Widget,大家可以看看
- |zyciis| 为什么Visual Studio 2008的附加进程 在文件系统网站下可以正常调试,但在IIS网站下就无效呢 第二贴
- 跪求下载文件中弹出一个保存文件对话框的代码,谢谢
- 为什么不能验证啊,,,提示找不到webuivalidation.js文件
- 关于DataGrid的一个问题
- 请问如何实现“验证码”的功能
- 有关IIS的一个让我困惑的问题!
- 请教使用owc编写动态线型图的详细代码(c#)
- (请高手帮忙!)如何根据服务器端excel模板文件,生成报表
- 请问要配置一台可以运行asp.net的服务器要装哪些软件
- DropDownList事件问题
- 关于Repeater嵌套datalist的问题
if da<>"" then
response.write "<img src="&da&" border=""0"">"
end if
%>我改成这,显示出来的图片变“X”了,但是地址和图片名称都对的,右键图片地址也正确
难道页面直接显示
<img src=img/aaa.jpg /> ?
this.litral.text="<img src=img/aaa.jpg />";
response.write "<img src="&da&" border=""0"">"
else
response.write da end if输出图片地址肯定是上面的判断问题了;因为datype !=1
所以才会输出图片地址
如 /img/aa.jpg
或者 ../img/aa.jpg(asp在根目录的下级子目录)
或者../../img.aa.jpg(asp在根目录下级的下级目录)