首页   |  注册   |  登录   |  关于蓝鸟   |  技术文章   |  蓝鸟作品   |  给我留言   |  实用工具   |  繁体版
技术文章
   当前位置:首页 > 技术文章 > ASP专区 > ASP应用实例 > 所有信息
经典实用的基础asp程序整理
文章作者:不详    文章来源:gavinren    录入时间:2008-4-24    浏览次数:      字体: 放大 默认 缩小

1、关闭窗口在图片的连接上写

&#106avascript:window.close();

提交的图片连接写

&#106avascript:document.Form1.submit();

删除之前出现确认对话框:

以下为引用的内容:
 <a href="del.asp?id=<%=rs("rowid")%>" &#111nCLICK="&#106avascript:return confirm('真的要删除数据吗?')">删除</a>

2、用VBScript弹出提示框然后跳转到指定页面

以下为引用的内容:
    <%
  Response.Write "<script language='&#106avascript'>alert(""提交成功!"");location.href=""AddBook.asp"";</script>"
  %>

3、页面摘入等待。。。。脚本说明:

把如下代码加入<head>区域中

以下为引用的内容:
<SCRIPT LANGUAGE="&#106avascript">
  document.write("<font size=6 color=blue face='楷体_GB2312'><B>正在载入细溪驿站首页,请稍等..</B></font>");
  window.clear;
  window.location.href=;
  </SCRIPT>

4、在Text直接修改记录,然后点修改保存记录

以下为引用的内容:
       <%count=0
  do while not (rs.eof or rs.bof) and count<rs.PageSize %>
  <form action="webGroupEdit.asp" method="post" name="GroupEdit" onSubmit="return Checkedit()">
  <tr bgcolor="E9F3FF">
  <td>&nbsp;<%=rs("id")%> <input name="b" type="hidden" id="b" &#118alue="<%=rs("id")%>">
  <input name="currpage" type="hidden" id="currpage" &#118alue="<%=page%>"></td>
  <td height="18"><input name="a" type="text" id="a" &#118alue="<%=rs("MemGroupName")%>" size="20" maxlength="50">
  </td>
  <td height="18"><input name="c" type="text" id="c" &#118alue="<%=rs("Remark")%>" size="25" maxlength="30"></td>
  <td><input type="submit" name="Submit" &#118alue=" 修改 " ></td>
  <td><div align="center"><a href="webGroupDel.asp?id=<%=rs("id")%>&page=<%=page%>" &#111nClick="return check()">删除</a></div></td>
  </tr>
  </form>
  <%
  count=count+1
  rs.movenext
  loop
  %>


5、自动计算问题:

以下为引用的内容:
     <input type="hidden" name="sel&#118alue">
  <SELECT NAME="select1" onChage="&#106avascript:document.form1.sel&#118alue.&#118alue=this.options[this.options.selectedIndex].text">
  <option &#118alue="1">新浪</option>
  <option &#118alue="2">百度</option>
  <option &#118alue="3">中华网</option>
  <option &#118alue="4">腾讯</option>
  </SELECT> 

录入编辑:极速蓝鸟
www.roc3000.com 设计网
注意:本站《技术文章》栏目的文章内容大部份是<蓝鸟>从2003年来由网络上收集的,小部份由<蓝鸟>本人原创。本站《技术文章》栏目的创建不含任何商业目的,只限于网页设计爱好者间的技术经验交流,纯属个人爱好行为。如有个别文章内容与原创作者冲突,请与本站联系,本站会尽快删除原创者文章。本站任何文章和图片没有经原创作者许可,不可用于任何商业,营利行为,否则本站对其造成的后果概不负责,亦不承担任何法律责任。谢谢合作!