asp代码问题 在线求救
要做1.2.3.4.5.---10然后做四个图片按钮(上一页,下一页,首页,尾页)我自己写了代码老是出错,希望高手们帮帮忙。代码如下<formmethod="post"a...
要做 1 . 2 . 3. 4. 5. ---10 然后做四个图片按钮(上一页,下一页,首页,尾页)我自己写了代码 老是出错,希望高手们帮帮忙。
代码如下
<form method="post" action="../newhouse/introduction.asp">
<%if Page<2 then
response.write "<img src=/faq/photo/ico_5.gif border=0 /> <img src=/faq/photo/ico_2.gif border=0 /> "
else
response.write "<a href=introduction.asp?page=1><img src=/faq/photo/ico_5.gif border=0 /></a> "
response.write "<a href=introduction.asp?page=" & Page-1 & "><img src=/faq/photo/ico_2.gif border=0 /></a> "
end if
if rs.pagecount-page<1 then
response.Write( page &"<span class=STYLE82>|</span>")
else
if rs.pagecount<10 then
for i=1 to rs.pagecount
if page=i then
response.Write( i &"<span class=STYLE82>|</span>")
else
response.Write("<a href=introduction.asp?page=" & i & ">"& i &"</a><span class=STYLE82>|</span>")
end if
next
else
for p=1 to 5
response.Write("<a href=introduction.asp?page=" & page+p-5 & ">"& page+p-5 &"</a><span class=STYLE82>|</span>")
next
response.Write( i &"<span class=STYLE82>|</span>")
for p=1 to 5
response.Write("<a href=introduction.asp?page=" & page+p & ">"& page+p&"</a><span class=STYLE82>|</span>")
next
end if
end if
if rs.pagecount-page<1 then
response.write "<img src=/faq/photo/ico_3.gif border=0 /> <img src=/faq/photo/ico_4.gif />"
else
response.write "<a href=introduction.asp?page=" & (page+1) & ">"
response.write "<img src=/faq/photo/ico_3.gif border=0 /></a> <a href=introduction.asp?page="&rs.pagecount&"><img src=/faq/photo/ico_4.gif border=0 /></a>"
end if
%>
</form></td>
</tr>
</table>
<%end if%>
我的网址是(韩文)http://www.qdbdc.com/introduction.asp 最下面那个 如果解决了可以在给100分 谢谢 展开
代码如下
<form method="post" action="../newhouse/introduction.asp">
<%if Page<2 then
response.write "<img src=/faq/photo/ico_5.gif border=0 /> <img src=/faq/photo/ico_2.gif border=0 /> "
else
response.write "<a href=introduction.asp?page=1><img src=/faq/photo/ico_5.gif border=0 /></a> "
response.write "<a href=introduction.asp?page=" & Page-1 & "><img src=/faq/photo/ico_2.gif border=0 /></a> "
end if
if rs.pagecount-page<1 then
response.Write( page &"<span class=STYLE82>|</span>")
else
if rs.pagecount<10 then
for i=1 to rs.pagecount
if page=i then
response.Write( i &"<span class=STYLE82>|</span>")
else
response.Write("<a href=introduction.asp?page=" & i & ">"& i &"</a><span class=STYLE82>|</span>")
end if
next
else
for p=1 to 5
response.Write("<a href=introduction.asp?page=" & page+p-5 & ">"& page+p-5 &"</a><span class=STYLE82>|</span>")
next
response.Write( i &"<span class=STYLE82>|</span>")
for p=1 to 5
response.Write("<a href=introduction.asp?page=" & page+p & ">"& page+p&"</a><span class=STYLE82>|</span>")
next
end if
end if
if rs.pagecount-page<1 then
response.write "<img src=/faq/photo/ico_3.gif border=0 /> <img src=/faq/photo/ico_4.gif />"
else
response.write "<a href=introduction.asp?page=" & (page+1) & ">"
response.write "<img src=/faq/photo/ico_3.gif border=0 /></a> <a href=introduction.asp?page="&rs.pagecount&"><img src=/faq/photo/ico_4.gif border=0 /></a>"
end if
%>
</form></td>
</tr>
</table>
<%end if%>
我的网址是(韩文)http://www.qdbdc.com/introduction.asp 最下面那个 如果解决了可以在给100分 谢谢 展开
11个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询