输入帧:文件名input.asp

发表于:2007-06-30来源:作者:点击数: 标签:
输入帧:文件名input.asp % user=request(user) %html head meta http-equiv=Content-Type content=text/html; charset=gb2312 style type=text/css !-- .p9 {font-size: 9pt} a:visited {color: #0000FF; text-decoration: none} a:link {color: #0000FF; te
输入帧:文件名input.asp
<%
user=request("user")
%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.p9 {  font-size: 9pt}
a:visited {  color: #0000FF; text-decoration: none}
a:link {  color: #0000FF; text-decoration: none}
a:hover {  color: #FF0000}
input {font-size:9pt;line-height:9pt}
-->
</style>
<script language="JavaScript1.2">
function checksay()
{
var obj=document.inputform;
if (obj.msg.value==""){alert("发言内容不能为空!");obj.msg.focus();return false}
obj.SAYS.value=obj.msg.value
obj.msg.value="";
obj.msg.focus();

}
</script>
</head>
<body bgcolor="#EFF5FE">
<form  name=inputform action=‘’refresh.asp‘’ target=‘’r‘’ method=POST onsubmit="return checksay()">
<INPUT NAME="USER" TYPE="HIDDEN" VALUE="<% =user %>">
<input type=‘’hidden‘’ name=‘’SAYS‘’ value=‘’‘’>
  <table width="100%" align="left" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="590" colspan=2>对象 <input type="text" name="WHOTO" size="12" maxlength="18" value="所有人">
<span class="p9">表情<SELECT NAME="ACTION" onchange="document.inputform.msg.focus()">
<option VALUE="0">说话
<option VALUE="1">叫嚷
<option VALUE="2">亲亲
<option VALUE="3">拥抱
<option VALUE="4">暴怒
<option VALUE="5">轻推
<option VALUE="6">傻笑
<option VALUE="7">拳打
<option VALUE="8">脚踢
<option VALUE="9">抗议
<option VALUE="10">耳光
<option VALUE="11">鞠躬
<option VALUE="12">歉意
<option VALUE="13">惊讶
<option VALUE="14">哈欠
<option VALUE="15">微笑
<option VALUE="16">握手
<option VALUE="17">挥手
<option VALUE="18">耸肩
<option VALUE="19">安慰
<option VALUE="20">生气
<option VALUE="21">大哭
<option VALUE="22">抽泣
<option VALUE="23">承诺
<option VALUE="24">不舍
<option VALUE="25">深情
<option VALUE="26">迷惑
<option VALUE="27">不解
<option VALUE="28">幸灾
<option VALUE="29">大笑
<option VALUE="30">皱眉
<option VALUE="31">委屈
<option VALUE="32">高兴
<option VALUE="33">沮丧
<option VALUE="34">失望
<option VALUE="35">神经
<option VALUE="36">神秘
<option VALUE="37">撒娇
<option VALUE="38">鬼脸
<option VALUE="39">无奈
<option VALUE="40">伤感
<option VALUE="42">耳语
</SELECT><span class="p9">悄悄话<input type="checkbox" name="ws">
<span class="p9">滚屏<input type=‘’checkbox‘’ name="AutoS" checked onclick=‘’scrollit();‘’>
<span class="p9">图音<input type=‘’checkbox‘’ name=‘’AI‘’ defaultchecked=false onclick="if(AI.checked){document.aicontrolForm.AI.value=‘’on‘’;}else{document.aicontrolForm.AI.value=‘’off‘’;}document.aicontrolForm.DD.value=‘’0‘’;document.aicontrolForm.submit();">
<span class="p9">请勿打挠 <input type=‘’checkbox‘’ name=‘’DD‘’ defaultchecked=false onclick="if(DD.checked){document.aicontrolForm.AI.value=‘’on‘’;}else{document.aicontrolForm.AI.value=‘’off‘’;}document.aicontrolForm.DD.value=‘’1‘’;document.aicontrolForm.submit();">
</td></tr>
<tr>
<td> 信息 <input type="text" name="msg" MAXLENGTH="200" size="45"
><select name="color" onchange="document.inputform.msg.focus();">
<option style="COLOR: #000000" value="0000aa" selected>字色
<option style="COLOR: #000000" value="000000">黑色
<option style="COLOR: #7ec0ee" value="7ec0ee">淡蓝
<option style="COLOR: #0088ff" value="0088ff">海蓝
<option style="COLOR: #0000ff" value="0000ff">草蓝
<option style="COLOR: #000088" value="000088">深蓝
<option style="COLOR: #8800ff" value="8800ff">蓝紫
<option style="COLOR: #ab82ff" value="ab82ff">紫色
<option style="COLOR: #ff88ff" value="ff88ff">紫金
<option style="COLOR: #ff00ff" value="ff00ff">红紫
<option style="COLOR: #ff0088" value="ff0088">玫红
<option style="COLOR: #ff0000" value="ff0000">大红
<option style="COLOR: #f4a460" value="f4a460">棕色
<option style="COLOR: #bd8e8c" value="bd8e8c">浅褐
<option style="COLOR: #888800" value="888800">卡其
<option style="COLOR: #888888" value="888888">铁灰
<option style="COLOR: #c6c3c6" value="c6c3c6">古黑
<option style="COLOR: #90e090" value="90E090">绿色
<option style="COLOR: #008800" value="008800">橄榄
<option style="COLOR: #008888" value="008888">灰蓝
</select>  <input type="submit" src="send.gif" value=" 发送 "></td>
<td>
<% if session("admlevel")="9" then %>
<SELECT NAME="toolbox" onchange="if (this.options[selectedIndex].value!=‘’‘’){ gotool(this.options[selectedIndex].value)}">
<OPTION VALUE="" selected>_管理工具箱子_
<option VALUE=‘’admin/relename.asp‘’>_清除被踢名单_
<option VALUE=‘’admin/releip.asp‘’>_清除被踢IP_
</select>
<% end if %>
</td></tr>

<tr><td></form><FORM METHOD="POST" target="r" ACTION="admin/hideuser.asp" NAME="screenForm">
过滤 <INPUT NAME="WHOTO" TYPE="HIDDEN" VALUE=""
><input type=hidden name=kaction value=""
><INPUT NAME="USER" TYPE="HIDDEN" VALUE="<% =user %>"
><input type="hidden" name="hdish" value=""
><INPUT NAME="SCREEN" TYPE="button" onclick="document.screenForm.hdish.value=‘’1‘’;hideuser();" VALUE=" 屏蔽 "><INPUT NAME="SCREEN" TYPE="button" onclick="document.screenForm.hdish.value=‘’0‘’;hideuser();" VALUE=" 解除 "><INPUT NAME="SHOWSCREEN" onclick="document.screenForm.hdish.value=‘’2‘’;hideuser();" TYPE="button" VALUE=" 列表 "
>
<%
  if session("admlevel")="9" then
    response.write "<input type=‘’hidden‘’ name=‘’pwd‘’ value=‘’"&pwd&"‘’>"
    response.write "<input type=‘’button‘’ name=‘’adbut‘’ value=‘’ 查IP ‘’ onclick="&chr(34)&"admin(‘’sip‘’)"&chr(34)&">"
    response.write "<input type=‘’button‘’ value=‘’ 踢名 ‘’ onclick="&chr(34)&"admin(‘’name‘’)"&chr(34)&">"
    response.write "<input type=‘’button‘’ value=‘’ 踢IP ‘’ onclick="&chr(34)&"admin(‘’kip‘’)"&chr(34)&">"
  end if
%>
</form>
</td><td>
<FORM ACTION="chat.asp" target="_top" METHOD="POST" NAME="controlForm" onsubmit="this.userpwd.value=parent.userpwd"
><INPUT NAME="username" TYPE="HIDDEN" VALUE="<% =user %>"
><input type="hidden" name="userpwd" value=""
><INPUT NAME="GOBACK" TYPE="BUTTON" VALUE=" 清屏 " onClick="parent.cleanbody()">
<INPUT NAME="LEAVEIT" TYPE="BUTTON" VALUE=" 离开 " onClick="top.location.href = ‘’leave.asp?room=<% =room %>&user=<% =user %>‘’"></FORM></td><td align="right" valign=top>
<FORM ACTION="admin/dontimg.asp" target="r" METHOD="POST" NAME="aicontrolForm"
><INPUT NAME="USER" TYPE="HIDDEN" VALUE="<% =user %>"
><input type=‘’hidden‘’ name=‘’room‘’ value=<% =room %>><input type=‘’hidden‘’ name=‘’AI‘’ value=‘’‘’><input type=‘’hidden‘’ name=‘’DD‘’ value=‘’‘’></form>
</td>
</tr>
</table>
</body></html>

<script>
function hideuser()
{
if (document.screenForm.hdish.value==‘’2‘’||document.inputform.WHOTO.value=="所有人")
{
  document.screenForm.WHOTO.value=document.inputform.WHOTO.value;
  document.screenForm.submit();
}
else{
  for (var i=0;i<parent.list.length;i++)
  {
   if (parent.list[i]==document.inputform.WHOTO.value)
    {
     document.screenForm.WHOTO.value=document.inputform.WHOTO.value;
     document.screenForm.submit();
    }
  }
}
}
function scrollit()
{
  if (document.inputform.AutoS.checked){parent.autoscroll=true;parent.b.scroll(0,650000);}
  else  parent.autoscroll=false;
}
<% if session("admlevel")="9" then %>
function admin(kaction)
{
  document.screenForm.kaction.value=kaction;
  document.screenForm.action=‘’admin/admin.asp‘’;
  document.screenForm.hdish.value=document.inputform.WHOTO.value;
  document.screenForm.submit();
  document.screenForm.action=‘’admin/hideuser.asp‘’;
}

function gotool(goaction)
{
if (goaction=="admin/relename.asp"){ document.inputform.action=goaction;document.inputform.submit();document.inputform.action=‘’refresh.asp‘’;}
if (goaction=="admin/releip.asp"){ document.inputform.action=goaction;document.inputform.submit();document.inputform.action=‘’refresh.asp‘’;}
}
<% end if %>
//-->
</script>

原文转自:http://www.ltesting.net