팝업을 2개 올릴 수 있는 팝업소스 없을까요?
본문
그누보드4를 사용중이구요.
현재 사용하고 있는 팝업 소스는 아래와 같습니다.
<script language="JavaScript">
function TripodShowPopup() {
var popupURL = "/popup.html";
var popup = window.open(popupURL,"TripodPopup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=470'); //팝업창 옵션,사이즈
if( navigator.appName.substring(0,8) == "Netscape" ) { popup.location = popupURL; }
}
TripodShowPopup();
</script>
이걸로는 팝업 2개 올리는게 힘들어서요
답변 3
<SCRIPT>//팝업창 열기
function MGetCookie(sName)
{
var aCookie = document.cookie.split("; ");
for (var i=0; i < aCookie.length; i++)
{
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
return unescape(aCrumb[1]);
}
return 0;
}
if ( MGetCookie("ckNoOpen_ass_1") == 0 ) popup = window.open("pop_up_1.htm","popup","scrollbars=no,width=600,height=820");
if ( MGetCookie("ckNoOpen_ass_1") == 0 ) popup1 = window.open("pop_61.htm","popup1","scrollbars=no,width=510,height=540");
//
</SCRIPT>
<script language="JavaScript">
function TripodShowPopup() {
var popupURL = "/popup.html";
var popup = window.open(popupURL,"TripodPopup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=470'); //팝업창 옵션,사이즈
if( navigator.appName.substring(0,8) == "Netscape" ) { popup.location = popupURL; }
}
TripodShowPopup();
function TripodShowPopup2() {
var popupURL2 = "/popup2.html";
var popup2 = window.open(popupURL2,"TripodPopup2",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=470'); //팝업창 옵션,사이즈
if( navigator.appName.substring(0,8) == "Netscape2" ) { popup2.location = popupURL2; }
}
TripodShowPopup2();
</script>
흠 능력 박인가봐요 미안합니다