![]() |
#2
liyang04302010-05-06 09:47
|

<%
Call openDataBase()
set gsxw = Server.CreateObject("Adodb.recordset")
gsxw.open "SELECT top 3 * FROM Sbe_News WHERE TID<>8 and datepart('yyyy',newsdate)=datepart('yyyy',now()) and photoNew = -1 order by newsdate desc ",conn,1,1
%>
<%for i=0 to gsxw.recordcount%>
<%if i=0 then%>
<img id="pic" src="uploadfile/<%=gsxw("pic")%>" width="280" height="164" />
<%end if%>
<%gsxw.movenex%>
<%next%>
查看IE 图片没的。。。。Call openDataBase()
set gsxw = Server.CreateObject("Adodb.recordset")
gsxw.open "SELECT top 3 * FROM Sbe_News WHERE TID<>8 and datepart('yyyy',newsdate)=datepart('yyyy',now()) and photoNew = -1 order by newsdate desc ",conn,1,1
%>
<%for i=0 to gsxw.recordcount%>
<%if i=0 then%>
<img id="pic" src="uploadfile/<%=gsxw("pic")%>" width="280" height="164" />
<%end if%>
<%gsxw.movenex%>
<%next%>
只显示 src="uploadfile/"
保证路径是正确的
只有本站会员才能查看附件,请 登录
[ 本帖最后由 等待冰柠檬 于 2010-5-6 09:54 编辑 ]