ASP提取当前URL中的参数

ASP提取当前URL中的参数,第1张

你可以这样的

<%

dim url,adc

url=RequestServerVariables("URL") '取得当前不带域名的网址,如:/adc/123

adc=split(url,"/")(1) ‘用/对取到的网址进行拆分,因为下标是从0开始的,所以adc在1上

responsewrite ""&adc&""

responseend

%>

脚本不全。

var myDate=new dateSelector();

这个应该是创建了一个日期选择器对象

myDateinputName='start_date'

这个应该是告诉input的名称,是需要人为设置的。

如果你要在asp中调用这个参数,就用request("start_date")

<html>

<body>

<style>

TD{

font-size: 9pt; color: #66DDDD}

out{

font-size: 9pt; color: #66DDDD;border-width:1px;border-style:solid;border-color:0090c0 0070b0 0070b0 0090c0;cursor:hand; background:0080c0; text-align: center}

out2 {

text-align: center}

in,out2{

font-size: 9pt; color: #66DDDD;border-width:1px;border-style:solid;border-color:0070b0 0090c0 0090c0 0070b0;background:0078b8;cursor:default}

</style>

<script>

var temp_num = null;

var now_num = null;

var the_top = 127; //表单的最高,最低

var the_bottom = 146

var no_can_do = false;

function Show_menu(u_num,d_num)

{

eventsrcElementclassName = "out2";

if(no_can_do)

{

return;

}

now_num = d_num;

if(temp_num)

{

if(documentgetElementById("menu_"+temp_num)doing)

{

clearInterval(documentgetElementById("menu_"+temp_num)doing);

}

}

else

{

temp_num = u_num;

}

documentgetElementById("menu_"+temp_num)doing = setInterval("set_menu()",10);

}

function set_menu()

{

no_can_do = true;

documentgetElementById("form_"+temp_num)styledisplay = "none";

var if_move = documentgetElementById("div_"+temp_num)stylepixelHeight - 6;

if(if_move>1)

{

documentgetElementById("div_"+temp_num)stylepixelHeight = if_move;

}

else

{

documentgetElementById("div_"+temp_num)stylepixelHeight = 1;

var if_stop = documentgetElementById("menu_"+temp_num)stylepixelTop - 1;

if(if_stop>the_top)

{

documentgetElementById("menu_"+temp_num)stylepixelTop = if_stop;

documentgetElementById("menu_"+now_num)stylepixelTop += 1;

}

else

{

documentgetElementById("menu_"+temp_num)stylepixelTop = the_top;

documentgetElementById("menu_"+now_num)stylepixelTop = the_bottom;

var if_end = documentgetElementById("div_"+now_num)stylepixelHeight + 6;

if(if_end < 182)

{

documentgetElementById("div_"+now_num)stylepixelHeight = if_end

}

else

{

documentgetElementById("div_"+now_num)stylepixelHeight = 182;

clearInterval(documentgetElementById("menu_"+temp_num)doing);

documentgetElementById("menu_"+temp_num)doing = false;

documentgetElementById("form_"+now_num)styledisplay = "block";

temp_num = null;

no_can_do = false;

}

}

}

}

function returnIT()

{

eventsrcElementclassName = "out";

}

</script>

<div id="menu_0" style="position: absolute; top: 127; left: 176; width: 339; height: 201">

<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="19">

<tr>

<td width="277" class="out" height="19" style="cursor: default"> </td>

<td width="58" class="out" height="19" onmousedown="Show_menu(1,0)" onmouseup="returnIT()">老师登录</td>

</tr>

</table>

<div id="div_0" style="position: relative; width: 339; height: 1; overflow: hidden">

<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="182">

<tr>

<td width="100%" height="182">

<form id="form_0" style="position: relative; left:70; top:10;font-family: Arial; display: none" action="javascript:;" method="post" align="center">

当前用户类型:老师

<br>

<br>

用户: <input class="in" style="WIDTH: 100px" size="20"> mailcn<br>

口令: <input class="in" type="password" size="20"><br>

<br>

<input class="out" onfocus="thisblur()" type="button" value="登录服务器">

</form>

</td>

</tr>

</table>

</div>

</div>

<div id="menu_1" style="position: absolute; top: 146; left: 176; width: 339; height: 219">

<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="19">

<tr>

<td width="277" class="out" height="19" style="cursor: default"> </td>

<td width="58" class="out" height="19" onmousedown="Show_menu(0,1)" onmouseup="returnIT()">学生登录</td>

</tr>

</table>

<div id="div_1" style="position: relative; width: 339; height: 182; overflow: hidden">

<table border="0" width="100%" style="background-color: #0080C0" cellspacing="0" cellpadding="0" height="100%">

<tr>

<td width="100%" height="182">

<form id="form_1" style="position: relative; left:70; top:10;font-family: Arial; display: block" action="javascript:;" method="post" align="center">

当前用户类型:学生

<br>

<br>

用户: <input class="in" style="WIDTH: 100px" size="20"> mailcn<br>

口令: <input class="in" type="password" size="20"><br>

<br>

<input class="out" onfocus="thisblur()" type="button" value="登录服务器">

</form>

</td>

</tr>

</table>

</div>

</div>

</body>

</html>

以上就是关于ASP提取当前URL中的参数全部的内容,包括:ASP提取当前URL中的参数、ASP高手请指教,这里如何调用参数、asp中如何通过鼠标点击按钮来获得参数等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/9322827.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-27
下一篇 2023-04-27

发表评论

登录后才能评论

评论列表(0条)

保存