请高手帮帮忙
<tr><td><tablewidth="100%"border="0"align="center"cellpadding="0"cellspacing="0"><tr>...
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%set rs_Product=conn.execute("select * from tProduct where IsHot=1 order by Addtime desc")
n=1
while not rs_Product.eof and n<=4
%>
<td align="center"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank">
<%if trim(rs_Product("ProductPic"))="" or isnull(rs_Product("ProductPic")) then response.write "<img src='../UploadFile/default.gif' border='0'>" else response.write "<img src=../UploadFile/ProductFile/"&rs_Product("ProductPic")&" height='100' width='125' border=0"%>
</a><span class="fontls"><br><br>
<a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank"><%=left(rs_Product("Title"),16)%></a></span> </td>
<% rs_Product.movenext
n=n+1
wend
rs_Product.close
%>
</tr>
<tr>
<td align="center"><div align="right"></div></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%set rs_Product=conn.execute("select * from tProduct where IsHot=1 order by Addtime ")
n=1
while not rs_Product.eof and n<=4
%>
<td align="center"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank">
<%if trim(rs_Product("ProductPic"))="" or isnull(rs_Product("ProductPic")) then response.write "<img src='../UploadFile/default.gif' border='0'>" else response.write "<img src=../UploadFile/ProductFile/"&rs_Product("ProductPic")&" height='100' width='125' border=0"%>
</a><span class="fontls"><br><br>
</span><span class="fontls"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank"> <%=left(rs_Product("Title"),16)%></a></span> </td>
<% rs_Product.movenext
n=n+1
wend
rs_Product.close
%>
</tr>
<tr>
<td align="center"><div align="right"></div></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%set rs_Product=conn.execute("select * from tProduct where IsHot=1 order by Addtime ")
n=1
while not rs_Product.eof and n<=4
%>
<td align="center"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank">
<%if trim(rs_Product("ProductPic"))="" or isnull(rs_Product("ProductPic")) then response.write "<img src='../UploadFile/default.gif' border='0'>" else response.write "<img src=../UploadFile/ProductFile/"&rs_Product("ProductPic")&" height='100' width='125' border=0"%>
</a><span class="fontls"><br><br>
<a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank"> <%=left(rs_Product("Title"),16)%></a></span> </td>
<% rs_Product.movenext
n=n+1
wend
rs_Product.close
%>
</tr>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
这是三段网页代码,显示出来的下面三行中,最下面两行中内容一样,请问如何使最后一行内容与前两行不一样,代码要如何修改,是否要修改ACCESS中的量和有关数据信息,请高手给予相关帮助,谢谢! 展开
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%set rs_Product=conn.execute("select * from tProduct where IsHot=1 order by Addtime desc")
n=1
while not rs_Product.eof and n<=4
%>
<td align="center"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank">
<%if trim(rs_Product("ProductPic"))="" or isnull(rs_Product("ProductPic")) then response.write "<img src='../UploadFile/default.gif' border='0'>" else response.write "<img src=../UploadFile/ProductFile/"&rs_Product("ProductPic")&" height='100' width='125' border=0"%>
</a><span class="fontls"><br><br>
<a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank"><%=left(rs_Product("Title"),16)%></a></span> </td>
<% rs_Product.movenext
n=n+1
wend
rs_Product.close
%>
</tr>
<tr>
<td align="center"><div align="right"></div></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%set rs_Product=conn.execute("select * from tProduct where IsHot=1 order by Addtime ")
n=1
while not rs_Product.eof and n<=4
%>
<td align="center"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank">
<%if trim(rs_Product("ProductPic"))="" or isnull(rs_Product("ProductPic")) then response.write "<img src='../UploadFile/default.gif' border='0'>" else response.write "<img src=../UploadFile/ProductFile/"&rs_Product("ProductPic")&" height='100' width='125' border=0"%>
</a><span class="fontls"><br><br>
</span><span class="fontls"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank"> <%=left(rs_Product("Title"),16)%></a></span> </td>
<% rs_Product.movenext
n=n+1
wend
rs_Product.close
%>
</tr>
<tr>
<td align="center"><div align="right"></div></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%set rs_Product=conn.execute("select * from tProduct where IsHot=1 order by Addtime ")
n=1
while not rs_Product.eof and n<=4
%>
<td align="center"><a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank">
<%if trim(rs_Product("ProductPic"))="" or isnull(rs_Product("ProductPic")) then response.write "<img src='../UploadFile/default.gif' border='0'>" else response.write "<img src=../UploadFile/ProductFile/"&rs_Product("ProductPic")&" height='100' width='125' border=0"%>
</a><span class="fontls"><br><br>
<a href="../Product/ShowProduct.asp?ID=<%=rs_Product("ID")%>" target="_blank"> <%=left(rs_Product("Title"),16)%></a></span> </td>
<% rs_Product.movenext
n=n+1
wend
rs_Product.close
%>
</tr>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
这是三段网页代码,显示出来的下面三行中,最下面两行中内容一样,请问如何使最后一行内容与前两行不一样,代码要如何修改,是否要修改ACCESS中的量和有关数据信息,请高手给予相关帮助,谢谢! 展开
2个回答
展开全部
<tr>
<td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
< %定rs_product = conn.execute ( "选择*从tproduct那里ishot = 1命令addtime递减" )
1例;
虽然不是rs_product.eof和n < = 4
% >
<td align="center"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " >
< % ,如果修剪( rs_product ( " productpic "))=""或isnull ( rs_product ( " productpic " ) ) ,然后response.write "的元素src='../uploadfile/default.gif' border='0'> "否则response.write "的元素src=../uploadfile/productfile/"&rs_product("productpic")&" height='100' width='125' border=0"%>
< / >进球class="fontls"> <br> <br>
<一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank "><%=左( rs_product ( "标题" ) , 16 ) % > < / > < /跨度> < /运输署>
< % rs_product.movenext
例N +1个
wend
rs_product.close
% >
< /的TR >
<tr>
<td align="center"> <div align="right"> < /理学系> < /运输署>
< /的TR >
< /表>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
< %定rs_product = conn.execute ( "选择*从tproduct那里ishot = 1命令addtime " )
1例;
虽然不是rs_product.eof和n < = 4
% >
<td align="center"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " >
< % ,如果修剪( rs_product ( " productpic "))=""或isnull ( rs_product ( " productpic " ) ) ,然后response.write "的元素src='../uploadfile/default.gif' border='0'> "否则response.write "的元素src=../uploadfile/productfile/"&rs_product("productpic")&" height='100' width='125' border=0"%>
< / >进球class="fontls"> <br> <br>
< /跨度>进球class="fontls"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " > < % =左( rs_product ( "标题" ) , 16 )%></ 1 > < /跨度> < /运输署>
< % rs_product.movenext
例N +1个
wend
rs_product.close
% >
< /的TR >
<tr>
<td align="center"> <div align="right"> < /理学系> < /运输署>
< /的TR >
< /表>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
< %定rs_product = conn.execute ( "选择*从tproduct那里ishot = 1命令addtime " )
1例;
虽然不是rs_product.eof和n < = 4
% >
<td align="center"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " >
< % ,如果修剪( rs_product ( " productpic "))=""或isnull ( rs_product ( " productpic " ) ) ,然后response.write "的元素src='../uploadfile/default.gif' border='0'> "否则response.write "的元素src=../uploadfile/productfile/"&rs_product("productpic")&" height='100' width='125' border=0"%>
< / >进球class="fontls"> <br> <br>
<一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " > < % =左( rs_product ( "标题" ) , 16 ) % > < / > < /跨度> < /运输署>
< % rs_product.movenext
例N +1个
wend
rs_product.close
% >
< /的TR >
< /的TR >
< /表> < /运输署>
< /的TR >
< /表>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
Arabic to EnglishChinese to EnglishChinese (Simplified to Traditional)Chinese (Traditional to Simplified)Dutch to EnglishEnglish to ArabicEnglish to Chinese (Simplified)English to Chinese (Traditional)English to DutchEnglish to FrenchEnglish to GermanEnglish to GreekEnglish to ItalianEnglish to JapaneseEnglish to KoreanEnglish to PortugueseEnglish to RussianEnglish to SpanishFrench to EnglishFrench to GermanGerman to EnglishGerman to FrenchGreek to EnglishItalian to EnglishJapanese to EnglishKorean to EnglishPortuguese to EnglishRussian to EnglishSpanish to English
<td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
< %定rs_product = conn.execute ( "选择*从tproduct那里ishot = 1命令addtime递减" )
1例;
虽然不是rs_product.eof和n < = 4
% >
<td align="center"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " >
< % ,如果修剪( rs_product ( " productpic "))=""或isnull ( rs_product ( " productpic " ) ) ,然后response.write "的元素src='../uploadfile/default.gif' border='0'> "否则response.write "的元素src=../uploadfile/productfile/"&rs_product("productpic")&" height='100' width='125' border=0"%>
< / >进球class="fontls"> <br> <br>
<一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank "><%=左( rs_product ( "标题" ) , 16 ) % > < / > < /跨度> < /运输署>
< % rs_product.movenext
例N +1个
wend
rs_product.close
% >
< /的TR >
<tr>
<td align="center"> <div align="right"> < /理学系> < /运输署>
< /的TR >
< /表>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
< %定rs_product = conn.execute ( "选择*从tproduct那里ishot = 1命令addtime " )
1例;
虽然不是rs_product.eof和n < = 4
% >
<td align="center"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " >
< % ,如果修剪( rs_product ( " productpic "))=""或isnull ( rs_product ( " productpic " ) ) ,然后response.write "的元素src='../uploadfile/default.gif' border='0'> "否则response.write "的元素src=../uploadfile/productfile/"&rs_product("productpic")&" height='100' width='125' border=0"%>
< / >进球class="fontls"> <br> <br>
< /跨度>进球class="fontls"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " > < % =左( rs_product ( "标题" ) , 16 )%></ 1 > < /跨度> < /运输署>
< % rs_product.movenext
例N +1个
wend
rs_product.close
% >
< /的TR >
<tr>
<td align="center"> <div align="right"> < /理学系> < /运输署>
< /的TR >
< /表>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
< %定rs_product = conn.execute ( "选择*从tproduct那里ishot = 1命令addtime " )
1例;
虽然不是rs_product.eof和n < = 4
% >
<td align="center"> <一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " >
< % ,如果修剪( rs_product ( " productpic "))=""或isnull ( rs_product ( " productpic " ) ) ,然后response.write "的元素src='../uploadfile/default.gif' border='0'> "否则response.write "的元素src=../uploadfile/productfile/"&rs_product("productpic")&" height='100' width='125' border=0"%>
< / >进球class="fontls"> <br> <br>
<一方式href ="../产品/ showproduct.asp ?身分= < % = rs_product ( "身份证")%>"目标= " _blank " > < % =左( rs_product ( "标题" ) , 16 ) % > < / > < /跨度> < /运输署>
< % rs_product.movenext
例N +1个
wend
rs_product.close
% >
< /的TR >
< /的TR >
< /表> < /运输署>
< /的TR >
< /表>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
Arabic to EnglishChinese to EnglishChinese (Simplified to Traditional)Chinese (Traditional to Simplified)Dutch to EnglishEnglish to ArabicEnglish to Chinese (Simplified)English to Chinese (Traditional)English to DutchEnglish to FrenchEnglish to GermanEnglish to GreekEnglish to ItalianEnglish to JapaneseEnglish to KoreanEnglish to PortugueseEnglish to RussianEnglish to SpanishFrench to EnglishFrench to GermanGerman to EnglishGerman to FrenchGreek to EnglishItalian to EnglishJapanese to EnglishKorean to EnglishPortuguese to EnglishRussian to EnglishSpanish to English
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询