⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 juke.js

📁 个人主页音乐程序 个人主页音乐程序 个人主页音乐程序 个人主页音乐程序 个人主页音乐程序
💻 JS
字号:
// Name of the main music player file
var thisfile = "index.php";

function mailFriend(album,artist,song,genre) {
	var id = (new Date()).getTime();
	eval("page" + id + " = window.open('" + thisfile + "?action=mailfriend&album=" + album + "&artist=" + artist + "&song=" + song + "&genre=" + genre + "', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=410,left = 362,top = 234');");
}

function showLyrics(song) {
	var id = (new Date()).getTime();
	eval("page" + id + " = window.open('" + thisfile + "?action=lyrics&song=" + song + "', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 362,top = 234');");
}

function rateSong(song) {
	var id = (new Date()).getTime();
	eval("page" + id + " = window.open('" + thisfile + "?action=rate&song=" + song + "', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=370,left = 362,top = 234');");
}

function playSong(song) {
  var str = thisfile + "?action=song&id=" + song;
  var id = "player";
  eval("page" + id + " = window.open('" + str + "', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=468,height=262,left = 362,top = 234');");
}


function playAll() { 
  var str = thisfile + "?action=song&array=yes&id=";
  for (var i=0;i<document.listing.elements.length;i++) 
  { 
    var curelement = document.listing.elements[i]; 
    if( curelement.checked == 1 ) {
		str = str + curelement.value + ",";
	}
  }
  var id = "player";
  eval("page" + id + " = window.open('" + str + "', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=468,height=262,left = 362,top = 234');");
}

function addToPlaylist(song) {
	var id = (new Date()).getTime();
	eval("page" + id + " = window.open('" + thisfile + "?action=playlist&id=" + song + "', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 362,top = 234');");
}

function removeFromPlaylist(song, playlist) {
	var id = (new Date()).getTime();
	eval("page" + id + " = window.open('" + thisfile + "?action=removefromplaylist&playlist=" + playlist + "&id=" + song + "', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 362,top = 234');");
}

function addAllToPlaylist() { 
  var str = "" + thisfile + "?action=playlist&id=";
  for (var i=0;i<document.listing.elements.length;i++) 
  { 
    var curelement = document.listing.elements[i]; 
    if( curelement.checked == 1 ) {
		str = str + curelement.value + ",";
	}
  }
  var id = (new Date()).getTime();
  eval("page" + id + " = window.open('" + str + "', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 362,top = 234');");
}

function selectAll() { 
  for (var i=0;i<document.listing.elements.length;i++) 
  { 
    var curelement = document.listing.elements[i]; 
    curelement.checked = 1;
  } 
}

function selectNone() { 
  for (var i=0;i<document.listing.elements.length;i++) 
  { 
    var curelement = document.listing.elements[i]; 
    curelement.checked = 0;
  } 
}
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -