链接到第几页的跳转按钮,跳转不到指定页面,虚心请求指教!
我是新手,请各位指点一下,现在把代码贴出来,帮帮忙看看问题出在哪里???对不起,新手只能出到5分了Ifn-currentpage<1ThenResponse.Write"...
我是新手,请各位指点一下,现在把代码贴出来,帮帮忙看看问题出在哪里???对不起,新手只能出到5分了
If n-currentpage<1 Then
Response.Write "<font class='contents'>下一页 末 页</font>"
Else
Response.Write "<a href="&filename&"?page="&(CurrentPage+1)&"&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>"
Response.Write "下一页</a> <a href="&filename&"?page="&n&"&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>末 页</a>"
End If
Response.Write "<font class='contents'> 页次:</font><font class='contents'>"&CurrentPage&"</font><font class='contents'>/"&n&"页</font> "
Response.Write "<font class='contents'> 共有"&totalnumber&"种商品 "
Response.Write "<font class='contents'>转到第:</font><input type='text' name='page' size=2 maxlength=10 class=smallInput value="¤tpage&">页"
Response.Write " <input type='submit' class='contents' value='跳转' name='cndok'></form>"
End Function
% 展开
If n-currentpage<1 Then
Response.Write "<font class='contents'>下一页 末 页</font>"
Else
Response.Write "<a href="&filename&"?page="&(CurrentPage+1)&"&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>"
Response.Write "下一页</a> <a href="&filename&"?page="&n&"&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>末 页</a>"
End If
Response.Write "<font class='contents'> 页次:</font><font class='contents'>"&CurrentPage&"</font><font class='contents'>/"&n&"页</font> "
Response.Write "<font class='contents'> 共有"&totalnumber&"种商品 "
Response.Write "<font class='contents'>转到第:</font><input type='text' name='page' size=2 maxlength=10 class=smallInput value="¤tpage&">页"
Response.Write " <input type='submit' class='contents' value='跳转' name='cndok'></form>"
End Function
% 展开
2个回答
展开全部
<input type='submit' class='contents' value='跳转' name='cndok'>这是一个提交功能的按钮,提交的什么。
给你一个源码,自己临时写的,希望对你有用。
<!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>
<label>跳转第
<select name="List" id="List">
<option value="http://www.163.com">1</option>
<option value="http://www.126.com">2</option>
</select>
页
<input type="button" name="button" onclick="javascript:window.location.href=document.getElementById('List').options[document.getElementById('List').selectedIndex].value" id="button" value="跳" />
</label>
</body>
</html>
给你一个源码,自己临时写的,希望对你有用。
<!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>
<label>跳转第
<select name="List" id="List">
<option value="http://www.163.com">1</option>
<option value="http://www.126.com">2</option>
</select>
页
<input type="button" name="button" onclick="javascript:window.location.href=document.getElementById('List').options[document.getElementById('List').selectedIndex].value" id="button" value="跳" />
</label>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询