풀스크린 홈페이지에서 음악(embed)팝업창을 띄우면,,계속 팝업창이 뜹니다... 소스 수정 도움을 주십시오 정보
풀스크린 홈페이지에서 음악(embed)팝업창을 띄우면,,계속 팝업창이 뜹니다... 소스 수정 도움을 주십시오본문
안녕하세요,,새해 복 많이 받으세요 !!
제가 홈페이지를 풀스크린(전체큰팝업창으로)으로 제작중인데요,,
항상 메인에서 팝업창을 띄워서 음악플레이어를 재생합니다..
근데,, 이미 팝업창이 떠 있는데,, 계속해서 새로고침 하거나,, 메인 에 오면,,
팝업창이 뜹니다,,
인터넷에서 다중 방지 팝업 소스라 해서
적용해 보려고 테스트 하면,, 계속 팝업창이 뜹니다..
맨 아래 부분에서 다중 방지를 체크 하는것 같은데,, 어떻게 주물러야 할지
모르겠습니다..
<script language="javascript">
<!--
//팝업윈도우, 스크린 중앙에 위치, 다중 오픈 방지
var winname_1;
var openF = 0;
function popup_music(fileName, intWidth, intHeight, intLeft, intTop, vScrollbars, vResizable, vStatus){
today = new Date();
winName = today.getTime();
var fileName, intWidth, intHeight;
var screenWidth = screen.availwidth;
var screenHeight = screen.availheight;
if(intWidth >= screenWidth){
intWidth = screenWidth - 40;
vScrollbars = 1;
}
if(intHeight >= screenHeight){
intHeight = screenHeight - 40;
intWidth = intWidth + 20;
vScrollbars = 1;
}
if(intLeft == 'auto' || intTop == 'auto'){
var intLeft = (screenWidth - intWidth) / 2;
var intTop = (screenHeight - intHeight) / 2;
}
var features = eval("'width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ",top=" + intTop + ",scrollbars=" + vScrollbars + ",resizable=" + vResizable + ",status=" + vStatus + "'");
if(openF == 1){
if(winname_1.closed){
winname_1 = window.open(fileName,winName,features);
}else{
winname_1.close();
winname_1 = window.open(fileName,winName,features);
}
}else{
winname_1 = window.open(fileName,winName,features);
openF = 1;
}
}
//-->
</script>
제가 홈페이지를 풀스크린(전체큰팝업창으로)으로 제작중인데요,,
항상 메인에서 팝업창을 띄워서 음악플레이어를 재생합니다..
근데,, 이미 팝업창이 떠 있는데,, 계속해서 새로고침 하거나,, 메인 에 오면,,
팝업창이 뜹니다,,
인터넷에서 다중 방지 팝업 소스라 해서
적용해 보려고 테스트 하면,, 계속 팝업창이 뜹니다..
맨 아래 부분에서 다중 방지를 체크 하는것 같은데,, 어떻게 주물러야 할지
모르겠습니다..
<script language="javascript">
<!--
//팝업윈도우, 스크린 중앙에 위치, 다중 오픈 방지
var winname_1;
var openF = 0;
function popup_music(fileName, intWidth, intHeight, intLeft, intTop, vScrollbars, vResizable, vStatus){
today = new Date();
winName = today.getTime();
var fileName, intWidth, intHeight;
var screenWidth = screen.availwidth;
var screenHeight = screen.availheight;
if(intWidth >= screenWidth){
intWidth = screenWidth - 40;
vScrollbars = 1;
}
if(intHeight >= screenHeight){
intHeight = screenHeight - 40;
intWidth = intWidth + 20;
vScrollbars = 1;
}
if(intLeft == 'auto' || intTop == 'auto'){
var intLeft = (screenWidth - intWidth) / 2;
var intTop = (screenHeight - intHeight) / 2;
}
var features = eval("'width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ",top=" + intTop + ",scrollbars=" + vScrollbars + ",resizable=" + vResizable + ",status=" + vStatus + "'");
if(openF == 1){
if(winname_1.closed){
winname_1 = window.open(fileName,winName,features);
}else{
winname_1.close();
winname_1 = window.open(fileName,winName,features);
}
}else{
winname_1 = window.open(fileName,winName,features);
openF = 1;
}
}
//-->
</script>
댓글 전체