首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

关于页面 跳转的有关问题

2012-03-26 
关于页面 跳转的问题selectname sel_page onChange javascript:locationthis.options[this.selecte

关于页面 跳转的问题
<select   name= "sel_page "   onChange= "javascript:location=this.options[this.selectedIndex].value; ">
            <%
              for   i   =   1   to   rscyc.PageCount
              if   i   =   intpage   then%>
              <option   value= " <%=url%> ?count= <%=i%> "selected> <%=i%> </option>
          <%else%>
              <option   value= " <%=url%> ?count= <%=i%> "> <%=i%> </option>
            <%
              end   if
                next
                %>
          </select> 页
我这样写   怎么不能跳转的呢   还需要些什么啊   谢谢大家

[解决办法]
<select name= "sel_page " onChange= "javascript:window.location=this.options[this.selectedIndex].value; ">

[解决办法]
<select onChange= "javascript:window.location.href=this.options[this.selectedIndex].value; ">

[解决办法]
太长啦,有点不想看,你可以参考一下:我给你做的这个示例
<%
page=request.querystring( "page ")
If page= " " Then page=1 '首次打开默认为第一页
response.write "你现在打开的是 第 " & page & "页 "
url= "http://192.168.1.120/intest1.asp "
%>
<select onChange= "javascript:window.location=this.options[this.selectedIndex].value; ">
>
<%For i=1 To 5%>
<option value= " <%=url%> ?page= <%=i%> " <%If CInt(page)=CInt(i) Then response.write "selected " %> > <%=i%> </option>
<%next%>
</select>

热点排行