📄 list.htm
字号:
<HTML>
<HEAD>
<TITLE>播放列表</TITLE>
<META name="Author" content="CnSide MP V1.0.1, Hoja T">
<META name="Keywords" content="CnSide MP V1.0.1 MPlaylist">
<META name="Description" content="mp3,asf,wav,mid,网上媒体播放">
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE TYPE="text/css">
<!--
a:visited,a:link,a:active
{
color: #cccccc;
text-decoration: none;
}
a:hover
{
color:gold;
text-decoration: none ;
cursor:hand;
}
body
{
scrollbar-face-color:white;
scrollbar-shadow-color:#666666;
scrollbar-highlight-color:#666666;
scrollbar-3dlight-color:white;
scrollbar-darkshadow-color:white;
scrollbar-track-color:white;
scrollbar-arrow-color:#666666;
font-size:9pt;
background: #000000;
}
.text
{
font-family: "times new roman", "times", "serif";
font-size: 8pt;
color:#a0b0c0;
text-decoration: none;
}
td
{
font-family:"times new roman", "times", "serif";
font-size: 8pt;
color:#a0b0c0;
text-decoration: none;
}
-->
</STYLE>
<script language="JavaScript">
<!--
//File:cnsidepl.html
//Writen by hoja
//via:the opener document.
//Tmv Tgasa Tnew replace the images of the list menu title(only for the access version).
//elmABlock:how many songs in one page.
//cookie_path:save the list cookie used of cookie_path.
//cookie_domain:save the list cookie used of cookie_domain.
//you can also change the day to change the cookies expdate
var via = opener;
var write_via = "opener";
var iLoc= self.location.href;
function playSel(){via.wmpStop();via.startExobud();}
function refreshPl(){ self.location=iLoc;}
function chkSel(){via.chkAllSel();refreshPl();}
function chkDesel(){via.chkAllDesel();refreshPl();}
function dspList(n){
var elmABlock= 13;
var totElm = via.intMmCnt;
var totBlock= Math.floor((via.intMmCnt -1) / elmABlock)+1;
var cblock;
if(n==null){cblock=1;}
else{cblock=n;}
var seed;
var limit;
if(cblock < totBlock){seed= elmABlock * (cblock-1); limit = cblock*elmABlock -1}
else{seed=elmABlock * (cblock-1); limit= totElm-1;}
if(via.intMmCnt >0 ){
var list_num=0;
mmList.innerHTML='<p>';
pageList.innerHTML=' Page ';
for (var i=seed; i <= limit; i++)
{
var Tmv='<img src=img/mv.gif alt=MV width=14 height=14 border=0 align=absbottom>';
var TGasa='<img src=img/gasa3.gif alt=有歌词 width=14 height=14 border=0 align=absbottom>';
var Tnew='<img src=img/up.gif alt=新歌速递 width=12 height=9 border=0 align=absbottom>';
var TitleInfo=via.objMmInfo[i].mmTit.replace(Tmv," ").replace(TGasa," ").replace(Tnew," ");
list_num = i + 1;
if(via.objMmInfo[i].selMm=="t"){elm='<input type=checkbox style="cursor:hand;" onClick='+ write_via + '.chkItemSel('+ i +'); checked>' ;}
else{elm = '<input type=checkbox style="cursor:hand;" onClick='+ write_via + '.chkItemSel('+ i +');>' ;}
elm = elm + ' <font face="Webdings">4</font>' + list_num + '. '
elm = elm + '<a href=javascript:' + write_via + '.selPlPlay(' + i + ');'
elm = elm + ' onclick=\"this.blur();\" title=\"' + TitleInfo + '\">' + via.objMmInfo[i].mmTit + '</a><br>';
mmList.innerHTML=mmList.innerHTML+elm;
}
var pmin=cblock-3;
var pmax=cblock+3;
var ppre=cblock-1;
var pnext=cblock+1;
if(pmin<=3){pmin=1;pmax=7;}
if(pmax>totBlock){pmax=totBlock;}
if(ppre<=1){ppre=1;}
if(pnext>totBlock){pnext=totBlock;}
for(var j=pmin; j<=pmax; j++){
page='<a href=javascript:dspList('+j+') title=第'+j+'页>['+j+']</a> ';
pageList.innerHTML=pageList.innerHTML+page;
}
pageInfo.innerHTML=''
+'<br>'
+'<a href=javascript:dspList(1) title=首页>|<<</a> <a href=javascript:dspList('+ppre+') title=上一页><</a> 第<font color=#3399FF><b>'+cblock+ '</b></font>页 共'+ totBlock+'页 共'+totElm+'首 <a href=javascript:dspList('+pnext+') title=下一页>></a> <a href=javascript:dspList('+totBlock+') title=尾页>>>|</a>';
}
else { mmList.innerHTML='<div align=center> x.s.Hows</div>'; }
}
//Cookie Function
function setCookies(n){
var cookie_path = location.pathname.replace('cnsidepl.html','');
var cookie_domain = location.hostname;
var days = 7;//设定Cookies过期时间
var expdate = new Date();
expdate.setTime (expdate.getTime() + (86400 * 1000 * days));
switch (n){
case 1:
var songlist = "";
document.cookie = "mylist=" + songlist + ";expires="+ expdate +"; path="+cookie_path+"; domain="+cookie_domain+"";
document.cookie = "mytype=" + songlist + ";expires="+ expdate +"; path="+cookie_path+"; domain="+cookie_domain+"";
changeList();
break;
case 2:
var songlist = "1";
document.cookie = "mytype=" + songlist + ";expires="+ expdate +"; path="+cookie_path+"; domain="+cookie_domain+"";
changeList();
break;
case 3:
var songlist = "2";
document.cookie = "mytype=" + songlist + ";expires="+ expdate +"; path="+cookie_path+"; domain="+cookie_domain+"";
changeList();
break;
case 4:
var songlist = "3";
document.cookie = "mytype=" + songlist + ";expires="+ expdate +"; path="+cookie_path+"; domain="+cookie_domain+"";
changeList();
break;
case 5:
var songlist = "4";
document.cookie = "mytype=" + songlist + ";expires="+ expdate +"; path="+cookie_path+"; domain="+cookie_domain+"";
changeList();
break;
case 6:
var songlist = "5";
document.cookie = "mytype=" + songlist + ";expires="+ expdate +"; path="+cookie_path+"; domain="+cookie_domain+"";
changeList();
break;
}
}
function changeList(){
via.location.reload();
}
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
-->
</script>
</HEAD>
<BODY oncontextmenu="return false" onselectstart="return false" ondragstart="return false"onLoad="dspList(); this.focus();na_preload_img(false, 'img/play_ovr.gif', 'img/allsel_ovr.gif', 'img/alldesel_ovr.gif', 'img/close_ovr.gif');" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" text="silver" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 style="border: 0px solid black; margin: 0pt;">
<table width="285" height="506" border="0" cellpadding="0" cellspacing="0" background="img/pl_skin4.gif">
<tr>
<td valign="top"><br> <br> <TABLE border=0 cellpadding=0 cellspacing=0 width=80% height=389 align=center>
<TR>
<TD width="100%" height="25" background="" align=center valign=middle><IMG src="" border=0 width="0" height="0"><IMG src="" width="0" height="0" border=0><IMG src="" border=0 width="0" height="0"></TD>
</TR>
<TR>
<TD width=100% height=344 align=left valign=top background="white" >
<DIV id="mmList"></DIV></TD>
</TR>
<TR>
<TD height="20" valign=bottom > <DIV id="pageList"></DIV></TD>
</TR>
</TABLE>
<TABLE border=0 cellpadding=0 cellspacing=0 width=100% height=34>
<TR>
<TD height="41" align=center valign=top> <SPAN id="pageInfo"></SPAN>
</td>
</TR>
</TABLE>
<table width="250" height="25" cellpadding="0" cellspacing="1">
<TR>
<td width="63" height="25" valign=top><p align="right"><A href="#" onClick="playSel();" onFocus="this.blur()" title="播放" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', 'img/play_ovr.gif', true)"><img src="./img/play.gif" width="33" height="14" border="0" name="image1"></A></p></td>
<td width="52" height="25" valign=top><p align="center"><A href="#" onClick="chkSel();" onFocus="this.blur()" title="全选" OnMouseOut="na_restore_img_src('image2', 'document')" OnMouseOver="na_change_img_src('image2', 'document', 'img/allsel_ovr.gif', true)"><img src="./img/allsel.gif" width="42" height="14" border="0" name="image2"></A></p></td>
<td width="43" height="25" valign=top><p align="left"><A href="#" onClick="chkDesel()" onFocus="this.blur()" title="清除" OnMouseOut="na_restore_img_src('image3', 'document')" OnMouseOver="na_change_img_src('image3', 'document', 'img/alldesel_ovr.gif', true)"><img src="./img/alldesel.gif" width="41" height="14" border="0" name="image3"></A></p></td>
<td width="92" height="25" valign=top><p align="right"><A href="#" onClick = "window.close();" onFocus='this.blur()' title="关闭" OnMouseOut="na_restore_img_src('image4', 'document')" OnMouseOver="na_change_img_src('image4', 'document', 'img/close_ovr.gif', true)"><img src="./img/close.gif" width="14" height="14" border="0" name="image4"></A></TD>
</tr>
</table></td>
</tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -