这段ASP代码怎么转换成静态页面可用的代码
<%ifrequest("word")<>""thenresponse.redirect"http://www.XXX.com/k?wd=dddd+"&request.f...
<%if request("word")<>"" then
response.redirect "http://www.XXX.com/k?wd=dddd+"&request.form("word")&"&tnd=sss"
else%>
<form name="f1" action="" method=post>
<input name=word size="30" maxlength="100">
<input type="submit" value="搜索"></form>
<%end if%> 展开
response.redirect "http://www.XXX.com/k?wd=dddd+"&request.form("word")&"&tnd=sss"
else%>
<form name="f1" action="" method=post>
<input name=word size="30" maxlength="100">
<input type="submit" value="搜索"></form>
<%end if%> 展开
2个回答
展开全部
<html>
<script>
function gp(param)
{
var query = window.location.search;
var iLen = param.length;
var iStart = query.indexOf(param);
if (iStart == -1)
return "";
iStart += iLen + 1;
var iEnd = query.indexOf("&", iStart);
if (iEnd == -1)
return query.substring(iStart);
return query.substring(iStart, iEnd);
}
if (gp("word")!=""){
location.href="http://www.XXX.com/k?wd=dddd+"+gp("word")+"&tnd=sss";
}
</script>
<form name="f1" action="aa.html" method=get>
<input name=word size="30" maxlength="100">
<input type="submit" value="搜索"></form>
</html>
<script>
function gp(param)
{
var query = window.location.search;
var iLen = param.length;
var iStart = query.indexOf(param);
if (iStart == -1)
return "";
iStart += iLen + 1;
var iEnd = query.indexOf("&", iStart);
if (iEnd == -1)
return query.substring(iStart);
return query.substring(iStart, iEnd);
}
if (gp("word")!=""){
location.href="http://www.XXX.com/k?wd=dddd+"+gp("word")+"&tnd=sss";
}
</script>
<form name="f1" action="aa.html" method=get>
<input name=word size="30" maxlength="100">
<input type="submit" value="搜索"></form>
</html>
Storm代理
2023-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询