简单问题,懂ASP或JS的进
下面是一段重定向查找搜索引擎的程序,但由于网速和对方数据库的关系。想在跳转过程中做个友好显示,比如:“正在查找中,稍候”,怎么做?
<html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Select Case request.form("select")
Case "1"
Response.Redirect "http://.../search.aspx?word=" & Request.form("textfield") & "&ie=GB2312&hl=zh-CN&lr=lang_zh-CN%7Clang_zh-TW"
Case "2"
Response.Redirect "http://.../search.aspx?word=" & Request.form("textfield") & "&ie=GB2312&hl=zh-CN&lr=lang_zh-CN%7Clang_zh-TW"
Case Else
Response.Redirect "http://.../search.aspx?word=" & Request.form("textfield") & "&ie=GB2312&hl=zh-CN&lr=lang_zh-CN%7Clang_zh-TW"
End Select
%>
</html>
参考答案:<html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<div id="loding">正在查找中,稍候...</div>
<%
response.flush()
Select Case request.form("select")
Case "1"
Response.Redirect "" & Request.form("textfield") & "&ie=GB2312&hl=zh-CN&lr=lang_zh-CN%7Clang_zh-TW"
Case "2"
Response.Redirect "" & Request.form("textfield") & "&ie=GB2312&hl=zh-CN&lr=lang_zh-CN%7Clang_zh-TW"
Case Else
Response.Redirect "" & Request.form("textfield") & "&ie=GB2312&hl=zh-CN&lr=lang_zh-CN%7Clang_zh-TW"
End Select
%>
</html>