여기 소미홈에 보면 dosirak 음악듣기에서요
전체선택, 전체취소 전체듣기 선택듣기 등의 스크립트가 듣질 않습니다.
제홈에서도 마찬가지고요.
소스 복사해서 올립니다.
function myfolder()
{
var id;
var checkedcount;
id = "";
checkedcount = 0;
for (i = 0 ; i < checkchoice.length ; i++)
{
if (checkchoice(i).checked)
{
id = id + checkchoice(i).value + ",";
checkedcount = checkedcount + 1;
}
}
if (checkedcount == 0){
alert("선택된 음악이 없습니다.");
return;
}
window.open('../abc/player.php?id='+id,'viewbox','left=0,top=0,width=354,height=500,scrollbars=no');
}
function selectall()
{
for (i = 0 ; i < checkchoice.length ; i++)
if (checkchoice(i).value != ""){
checkchoice(i).checked = true;
}
}
function unselectall()
{
for (i = 0 ; i < checkchoice.length ; i++)
checkchoice(i).checked = false;
}
function alllisten()
{
var id
id = "";
for (i = 0 ; i < checkchoice.length ; i++)
{
id = id + checkchoice(i).value + ",";
}
window.open("../abc/player.php?id="+id,"player","left=0,top=0,width=354,height=500");
}
function selectlisten()
{
var id
var cnt
id = "";
cnt = 0;
for (i = 0 ; i < checkchoice.length ; i++)
{
if (checkchoice(i).checked)
{
id = id + checkchoice(i).value + ",";
cnt = cnt + 1;
}
}
if (cnt == 0)
{
alert("선택된 음악이 없습니다.");
return;
}
window.open("../abc/player.php?id="+id,"player","left=0,top=0,width=354,height=500");
}
<table width=670 border=0 cellspacing=1 cellpadding=0 bgcolor=#E6E6E6>
<tr bgcolor=#ffffff>
<img src="../music_1/msntop50_button.gif" width="47" height="21" border="0" onclick="selectall();" onFocus="blur()" style='cursor:hand'>
<img src="../music_1/msntop50_button2.gif" width="47" height="21" hspace="2" border="0" onclick="unselectall();" onFocus="blur()" style='cursor:hand'>
<img src="../music_1/msntop50_button3.gif" width="57" height="21" border="0" hspace="2" onclick="alllisten();" onFocus="blur()" style='cursor:hand'>
<img src="../music_1/msntop50_button4.gif" width="57" height="21" border="0" onclick="selectlisten();" onFocus="blur()" style='cursor:hand'>
<img src="../music_1/msntop50_button5.gif" width="57" height="21" border="0" hspace="2" onclick="myfolder();" onFocus="blur()" style='cursor:hand'></td>
</tr>
</table>