📄 songlist.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="PRAGMA" CONTENT="CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="TUE,04 Dec 2096 21:29:02 GMT">
<title>蓝雨聊天室(点歌台)</title>
<style type="text/css">
<!--
td, p, input, font, select, option, textarea, form { font-family:"宋体"; font-size: 12px }
.p9 {font-size: 9pt; line-height: 14pt }
-->
</style>
</head>
<script language="javascript">
function OnControl(svalue)
{
if(svalue!="")
opener.playMusic(svalue);
document.form1.songctl.selectedIndex=0;
}
function getSelSong()
{
var idx=document.form1.songlist.selectedIndex;
if(idx>=0)
return document.form1.songlist.options[idx].value;
else
return "";
}
function playMe()
{
var isel=getSelSong();
if(isel=="")
alert("请选择歌曲。");
else if(confirm("你决定自己欣赏 [" + isel + "] 这首歌吗?"))
opener.playMusic(isel);
}
function playUser()
{
var isel=getSelSong();
var iuser=opener.parent.chatmain.chatApp.getSelUser();
var imoney=opener.parent.chatmain.document.ChatGame.getMoney();
var rmoney=opener.parent.chatmain.chatApp.getSysParameter(27);
if(isel=="")
alert("请选择歌曲。");
else if(iuser=="" || iuser=="-")
alert("请选择你要送歌的人!");
else if(imoney<rmoney)
alert("送一首歌给别人需要花费银子["+rmoney+"]两,你带的现金不够哦。");
else if(confirm("送一首歌给别人需要花费银子["+rmoney+"]两。\n你决定送歌曲 ["+isel+"] 给 [" + iuser + "] 吗?"))
{
opener.parent.chatmain.chatApp.OrderSong(isel);
window.close();
}
}
</script>
<body bgcolor="#C0C0C0" topmargin="5" leftmargin="5" oncontextmenu="self.event.returnValue=false">
<form name="form1" onsubmit="return false">
<table border="0" width="100%" cellspacing="4" bgcolor="#B4B4B4" height="100%">
<tr>
<td width="95%" ><b>蓝雨聊天室(点歌台)</b></td>
<td width="5%" ><input type="button" value="关 闭" onclick="window.close()"></td>
</tr>
<tr>
<td width="100%" bgcolor="#E2E2E4" colspan="2" height="95%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="100%" height="100%" valign="top">
<table border="0" width="100%">
<tr>
<td width="65%"><SELECT name="songctl" onchange="OnControl(this.value)" style="width:100%;">
<OPTION value="">== 音乐控制 ==</OPTION>
<OPTION value="0">停止播放音乐</OPTION>
<OPTION value="1">开始播放音乐</OPTION>
<OPTION value="" style="BACKGROUND:darkblue; COLOR:white;">==当前播放歌曲==</OPTION>
<script>
document.write("<OPTION value=\"\">"+opener.CurMusic+"</OPTION>");
</script>
<OPTION value="" style="BACKGROUND:darkblue; COLOR:white;">==已播放歌曲列表==</OPTION>
<script>
for(var i=0;i<opener.MyMusic.length;i++)
document.write("<OPTION value="+opener.MyMusic[i]+">"+opener.MyMusic[i]+"</OPTION>");
</script>
</SELECT><br>
<SELECT name="songlist" size="26" style="width:100%;">
<script>
for(var i=0;i<opener.MusicBox.length;i++)
{
var ix=i+1;
document.write("<OPTION value="+opener.MusicBox[i].Name+">"+ix+". "+opener.MusicBox[i].Name+"</OPTION>");
}
</script>
</select>
</td>
<td width="35%" valign="top" nowrap>
<br><br>
共有[<font color=#ff0000><script>document.write(opener.MusicBox.length);</script></font>]首歌曲<br><br>
<input type="button" value=" 送 人 " onclick="playUser();"><br><br>
<input type="button" value="自己欣赏" onclick="playMe();">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -