Played.aspx
上传用户:whzhongbo
上传日期:2022-07-31
资源大小:1531k
文件大小:3k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Played.aspx.vb" Inherits="YDMusic.Played"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  6. <title>无标题文档</title>
  7. <style>
  8. body {repeat-x 0px 0px; font-family: 宋体,Arial,serif; margin:auto; padding:auto; font-size:12px; color:#000; text-align: center;}
  9. .tingguodegeq{ color:#666666; font-size:12px;}
  10. .tingguodegeq{color:#666666;}
  11. .tingguodegeq a {color:#666666;}
  12. .tingguodegeq a:link   {color:#666666;}
  13. .tingguodegeq a:visited{color:#666666;}
  14. .tingguodegeq a:hover  {color:#FF6801;}
  15. </style>
  16. <script>
  17. //全选
  18. function qxs(form){
  19. for(var i=0;i<form.elements.length;i++){
  20. var e = form.elements[i];
  21. e.checked = true;
  22. }
  23. }
  24. //反选
  25. function fxs(form)
  26. {
  27. for (var i=0;i<form.elements.length;i++)
  28. {
  29. var e = form.elements[i];
  30. if (e.checked==false){
  31. e.checked = true;
  32. }else{
  33. e.checked = false;
  34. }
  35. }
  36. }
  37. //连播
  38. function checkall(myform)
  39. {
  40. var strCBValue = "";
  41. for (var i=0;i<myform.elements.length;i++)  //用来历遍form中所有控件,
  42. {
  43. var e = myform.elements[i];
  44. if (e.Type="checkbox") //当是checkbox时才执行下面
  45. {
  46. if(e.checked) //当是checkbox被选取时才执行下面
  47. {
  48. strCBValue = strCBValue + e.value+",";
  49. }
  50. }
  51. }
  52. if(strCBValue=="")
  53. {
  54. alert("请选择要播放的歌曲(可多选)");
  55. return;
  56. }
  57. else
  58. {
  59. strCBValue=strCBValue.substring(0,strCBValue.length-1);
  60. top.location.href="/PlayList.aspx?ID="+strCBValue;
  61. }
  62. }
  63. </script>
  64. </head>
  65. <body>
  66. <form name="usermusic">
  67. <div  style="height:250px; width:290px; margin-top:10px;margin-left:0px; ">
  68. <table width="275" height="200" border="0" cellpadding="0" cellspacing="0">
  69.   <tr>
  70. <td valign="top" class="tingguodegeq">
  71. <table width="100%" border="0" cellspacing="0" cellpadding="0" >
  72.   <tr>
  73. <td width="10%" align="center"> </td> 
  74. <div style="padding:5px 5px 0px 0px;" align="center" class="tingguodegeq">
  75. <IMG style="cursor:hand" src="/Images/Tquanxuan.gif" id="qx" onClick="qxs(usermusic)">
  76. <IMG style="cursor:hand" src="/Images/Tfanxuan.gif" id="qx" onClick="fxs(usermusic)">
  77. <IMG style="cursor:hand" src="/Images/Tbofang.gif" id="qx" onClick="checkall(usermusic)">
  78. </div>
  79. <td width="11%"> </td>
  80. </tr>
  81. </table>
  82.  <DIV id="mn" style="height:200px; width:260px; overflow-y:auto" >
  83. <%# ShowMusic%>
  84.  </DIV>
  85. </td>
  86.   </tr>
  87. </table>
  88. </div>
  89. </form>
  90. </body>
  91. </html>