最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 根据条件指定百度,goolge搜索
时间:2022-06-29 15:11:43 编辑:袖梨 来源:一聚教程网
...
keyword=split(request.form("textfield")) '用空格将多个关键字分隔,并保存在keyword数组中
str=""
for i=0 to ubound(keyword) 'ubound函数获得数组最大下标值,将多个关键字用“+”号连结
if i=ubound(keyword) then
str=str&keyword(i)
else
str=str&keyword(i)&"+"
end if
next
if request.form("select")="搜狐" then '选择“搜狐”
response.redirect("http://search.*so*h*u.com/web?query="&str) '转到搜狐搜索用户关键字的网页
'http://search.*so*h*u.com/web?query=asp+%cb%d1%cb%f7%d2%fd%c7%e6&radiobutton=0
end if
if request.form("select")="新浪" then '选择“新浪”
response.redirect("http://search.*sin**a.com.cn/cgi-bin/search/search.cgi?_searchkey="&str) '转到新浪搜索用户关键字的网页
'http://search.*sin**a.com.cn/cgi-bin/search/search.cgi?_searchkey=asp++%cb%d1%cb%f7%d2%fd%c7%e6
end if
if request.form("select")="百度" then '选择“百度”
response.redirect("http://www.**b*aidu.com/s?cl=3&wd="&str) '转到百度搜索用户关键字的网页
end if
%>
相关文章
- 土豆视频网页版入口-土豆视频高清在线播放 12-01
- Hitomi.la最新镜像网站入口 - 2026可用国内访问地址分享 11-26
- 土豆视频网页版入口地址-土豆视频在线播放入口 11-17
- 哔哩哔哩官方网页版入口地址-哔哩哔哩blibili手机电脑网页版入口地址 11-16
- AO3镜像网站最新入口汇总 - 2026可用镜像链接列表 11-16
- 超星学生通登录入口-超星官网网页版登录入口 11-13