asp中添加提示音

来源:百度知道 编辑:UC知道 时间:2024/06/19 02:51:05
<!--#include file="conn.asp"-->
<!-- #include file="Upload.asp" -->
<link href="Style.Css" rel="stylesheet" type="text/css">
<%
if session("dl")<>"1" then
response.write "<script language=JavaScript>" & chr(13) & "alert('您还未登陆或者超时,请重登陆!');location='index.asp' </script>"
response.end
end if
%>

<%
bmid=session("bm")
send=session("name")
Server.ScriptTimeout = 9999

path = "UploadFiles"

set Upload = new DoteyUpload

Upload.ProgressID = Request.QueryString("ProgressID")
Upload.SaveTo(path)

if Upload.ErrMsg <> "" then
Response.Write(Upload.ErrMsg)
Response.End()
end if

if Upload.Files.Count > 0 then
Items = U

response.write"<embed src=""你的声音文件"" autostart=""true"" loop=""false"" hidden=""true""></embed>"
但你这里加了跳转的话,可能声音没有播放完就转到其他页去了
response.write "<script>alert('上传成功!');location='upfiles.asp';</script>"

可以用JS来控制中转

response.write"<embed src=""你的声音文件"" autostart=""true"" loop=""false"" hidden=""true""></embed>"

<script>
setTimeout("turntopage()",5000)
function turntopage()
{
window.location.href='upfiles.asp';
}
</script>

关注