묻고답하기

배경음악 안멈추게 하려면??

2006.04.08 22:59

배용국


embed 를 이용해서 음악을 넣었는데, 새창 띄우기를 실행하면 음악이 멈추어버리네요..

원래 그런건가요??

계속 나오게 하려면 어떻게 해야하는지 아시면 좀 알려주세요.... ^^;;



관련 페이지
===========================
http://ygook.hubweb.net


음악 소스
===========================
<embed src="http://ygook.hubweb.net/rescue_me.mp3" width="80" height="22" style="FILTER: alpha(opacity=100 Style=1 FinishOpacity=100) invert()" autostart="true" loop="true">

새 창 띄우기 소스
===========================
<a href="javascript:CenterWin('http://ygook.hubweb.net/bbs/zboard.php?id=notice&page=1', '+ '+ 'Gook','width=740,height=520,toolbars=no,resizable=no,scrollbars=yes')">들어가기</a>


새 창 관련 head 부분 소스
===========================
<SCRIPT LANGUAGE="javaScript">
<!--
function CenterWin(url,winname,features)
{

features = features.toLowerCase();
len = features.length;
sumchar= "";
for (i=1; i <= len; i++)
{
onechar = features.substr(i-1, 1);
if (onechar != " ") sumchar += onechar;
}

features = sumchar;
sp = new Array();
sp = features.split(',', 10);
splen = sp.length;
for (i=0; i < splen; i++)
{
if (sp[i].indexOf("width=") == 0)
{
width = Number(sp[i].substring(6));
} else if (sp[i].indexOf("height=") == 0)
{
height = Number(sp[i].substring(7));
}
}
sleft = (screen.width - width) / 2;
stop = (screen.height - height) / 2;
features = features + ",left=" + sleft + ",top=" + stop;
popwin = window.open(url,winname,features);
}
// -->
</SCRIPT>