www.gusucode.com > 要听音乐网完美修正版 1.0源码程序 > js/js.js

    function play(id)
{  window.open('about:blank','music','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=470,height=495,top=10,left=200"');
  document.form1.musicid.value = id;
  document.form1.action = "../play.asp";
  document.form1.target = "music";
  document.form1.submit();
}
function downting(ListenURL)
		{
		var downting = window.open(ListenURL,"downting","scrollbars=no,width=615,height=310,menubar=no,resizable=yes,scrollbars=yes,top=98,left=68");
		return false;
		}
function playall() 
{ 
form1.musicid.value = "";
var kk = 1
for ( i = 0 ; i < form1.id.length ; i++ ) 
 { 
   if ( form1.id(i).checked ) // 复选框中有选中的框 
      { 
			kk += 1;
       }
}
if ( kk < 3 ) {
alert ('Sorry!请选择至少两首连播歌曲!');
} else {
window.open('about:blank','music','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=470,height=495,top=10,left=200"');
  document.form1.action = "../play/play.asp";
  document.form1.target = "music";
  document.form1.submit();
        }
}


function CheckOthers(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
//		if (e.name != 'chkall')
			if (e.checked==false)
			{
				e.checked = true;// form.chkall.checked;
			}
			else
			{
				e.checked = false;
			}
	}
}
function CheckAll(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
//		if (e.name != 'chkall')
			e.checked = true// form.chkall.checked;
	}
}