📄 song.asp
字号:
<%@ LANGUAGE=VBScript%>
<%username=Session("a_c_user_name")
if username="" or Session("a_c_user_outchat")=1 then
Response.Redirect "close.asp"
end if
n=Year(date())
y=Month(date())
r=Day(date())
s=Hour(time())
f=Minute(time())
m=Second(time())
if len(y)=1 then y="0" & y
if len(r)=1 then r="0" & r
if len(s)=1 then s="0" & s
if len(f)=1 then f="0" & f
if len(m)=1 then m="0" & m
sj1=n & "-" & y & "-" & r
sj2=s & ":" & f & ":" & m
sj3=sj1 & " " & sj2
Set fs=CreateObject("Scripting.FileSystemObject")
zjpath=Server.Mappath("mid")
zj=Request.QueryString("zj")%><html>
<head>
<title>点歌</title>
<meta http-equiv="refresh" content="100;URL=f3.asp">
<style type='text/css'>
<!--
body {line-height:150%;font-size:12pt;}
td {line-height:150%;font-size:9pt;}
.p9 {line-height:150%;font-size:9pt;}
A {color:white;text-decoration:none;}
A:Hover {color:black;text-decoration:none;}
A:Active {color:black}
-->
</style>
<script language="javaScript">
function load()
{var name=navigator.appName
var vers=navigator.appVersion
if(name=="Netscape")
{window.location.reload()
}else
{history.go(0)
}}
function gozj()
{url="song.asp?zj="+document.forms[0].songzj.options[document.forms[0].songzj.selectedIndex].value
window.location.href=url
}
function send()
{sendurl="sendsong.asp?zj=" + document.forms[0].songzj.options[document.forms[0].songzj.selectedIndex].value + "&songname=" + document.forms[0].song.options[document.forms[0].song.selectedIndex].value
window.location.href=sendurl
}</script>
</head>
<body bgcolor="008888" background="read/bg.gif" bgproperties="fixed" style="margin-left: 10px; margin-right: 5px; margin-top: 10px" text="#FFFFFF">
<form method="post" action="f4.asp" name="" target="f4">
<div align=center><font color="#FFFFFF" style="font-size:10.5pt"><%=Application("a_c_chatroom_name")%></font></div>
<center>
<hr size=1 color=FFFF00>
<font color="#FFFF00">点歌系统</font>
<table border="0" width="100%">
<tr>
<td>
<br><div><a href="javascript:load()" title="显示最新的曲目列表">刷新:<%=sj1%></a></div><br>
选择专辑:<br>
<select name="songzj" style="font-size:9pt" onchange="javascript:gozj()">
<%Set f=fs.GetFolder(zjpath)
Set fc=f.SubFolders
sss=0
For Each f1 in fc
fn=f1.name
if zj="" and sss=0 then zj=fn
sss=sss+1%><option value="<%=Server.URLEncode(fn)%>"<%if Server.HTMLEncode(zj)=Server.HTMLEncode(fn) then Response.Write " Selected"%>><%=fn%></option>
<%next%></select>
<br>
选择曲目:<br>
<select name="song" style="font-size:9pt"><%songpath=Server.Mappath("mid/"&zj)
Set f=fs.GetFolder(songpath)
Set fc=f.Files
For Each f1 in fc
fn=f1.name%><option value="<%=Server.URLEncode(fn)%>"><%=left(fn,(len(fn)-4))%></option>
<%next%></select>
<br>
播放方式:<br>
<input type="radio" name="loopok" value="1" checked>
只听一遍<br>
<input type="radio" name="loopok" value="infinite">
百听不厌
<p>
<input type="submit" name="play" value="播放" style="font-size:9pt">
<input type="submit" name="st" value="停止" style="font-size:9pt">
</p>
<p><input type="button" value="好歌赠好友" onClick="Javascript:send()" name="button" style="font-size:9pt"></p>
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -