求帮忙写一个页面 ,5分钟吧 。

hack600 2015-05-16 11:27:05


效果就是如图的,访客在 文本框里输入任意一链接,点GO 后跳转就行。(目的就是加载一个js文件)
...全文
196 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Go 旅城通票 2015-05-18
  • 打赏
  • 举报
回复
<textarea id="url" style="width:100%;height:100px">http://bbs.163.com/</textarea>
<input type="button" value="Go" onclick="location.href=document.getElementById('url').value" />
公务程序猿 2015-05-17
  • 打赏
  • 举报
回复
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Dim formAction,goAddress
formAction = Request.QueryString("action")
goAddress = Request.Form("URL_Area")
If formAction = "go" Then
'此处可以加入goAddress合法性的判断,或在前台用JS决断跳转地址的合法性
Response.Redirect(goAddress)
End If

%>
<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body
{
text-align:center;
}
#URL_Area
{
width:99%;
height:80px;
overflow:hidden;
}
#Btn_Submit
{
margin:0 auto;
}
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="?action=go">
<textarea name="URL_Area" id="URL_Area" onfocus="this.value=''" >请在这里输入需要跳转的链接</textarea>
<input type="submit" value="Go" id="Btn_Submit" />
</form>
</body>
</html>

hack600 2015-05-16
  • 打赏
  • 举报
回复
大半夜的 估计没人在线

28,398

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧