ASP图片调用换行问题

来源:百度知道 编辑:UC知道 时间:2024/05/24 09:06:02
<!--#include file="inc/conn.asp"-->
<%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>
<%
t=0
sql="select top 6 * from news where firstImageName<>'' and ok=true order by id desc"
set rs=conn.execute(sql)
rs.Open sql,conn,1,1
if not Rs.eof then
%>
<table width=250 height=100 align=center class=border01 bgcolor=#FFFFFF>
<tr>
<%
do while not rs.eof
t=t+1
%>
<td width="100%"><a href="shownews.asp?id=<%=rs("id")%>" target="_blank" ></a><a href="shownews.asp?id=<%=rs("id")%>" target="_blank" ><img src="<%=trim(rs("firstImageName"))%>" width="123" hei

<!--#include file="inc/conn.asp"-->
<%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>
<%
t=0
sql="select top 6 * from news where firstImageName<>'' and ok=true order by id desc"
set rs=conn.execute(sql)
rs.Open sql,conn,1,1
if not Rs.eof then
%>
<table width=250 height=100 align=center class=border01 bgcolor=#FFFFFF>

<%
do while not rs.eof
t=t+1
%>
<%if (t+2) mod 2=1 then'如果是剞数就在前面加<tr>%>
<tr>
<%end if%>
<td width="100%"><a href="shownews.asp?id=<%=rs("id")%>" target="_blank" ></a><a href="shownews.asp?id=<%=rs("id")%>" target="_blank" ><