묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이 스크립트좀 봐주십시오..
2002.05.10 00:39
공지사항을 크롬리스 윈도우로 자동으로 뜨게 하고 싶은데, 잘 안되네요.
도대체 모가 문제인 것인지.. 답변을 부탁드립니다. -.-
++++++++++++이건 본문서 구요++++++++++++++
<html>
<head>
<title>::::: 공지사항 :::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript" type="text/javascript" src="chromeless_35.js"></script>
<script language="javascript">
function openIT(u,W,H,X,Y,n,b,x,m,r) {
var cU ='close_up.gif'
var cO ='close_ovr.gif'
var cL ='clock.gif'
var mU ='min_up.gif'
var mO ='min_ovr.gif'
var xU ='max_up.gif'
var xO ='max_ovr.gif'
var rU ='res_up.gif'
var rO ='res_ovr.gif'
var tH ='<font face=gulim size=2>::::::::::::: 가입에 관한 공지사항 :::::::::</font>'
var tW ='오픈공지'
var wB ='#000000'
var wBs ='#FFFFFF'
var wBG ='#C8E9B2'
var wBGs='#69AF8B'
var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
var fSO ='scrolling=no noresize'
var brd =b||0;
var max =x||false;
var min =m||false;
var res =r||false;
var tsz =20;
return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
}
</script>
</head>
<body bgcolor="#333333" text="#FFFFFF" leftmargin="0" topmargin="64">
<a href="#" onClick="clwin=openIT('popup.htm',230,180,730,280,'win04',10,false,false,true);">오픈공지</a>
<table width="780" border="0" cellspacing="0" height="424" align="center">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="837" height="455">
<param name=movie value="newmain.swf">
<param name=quality value=high>
<embed src="newmain.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="837" height="455">
</embed>
</object></td>
</tr>
<tr>
<td><font size="2"><font color="#56AF83"><img src="copyright.gif" width="837" height="35"><br>
</font><font color="#009966"> </font> </font></td>
</tr>
</table>
</body>
</html>
++++++++++++++++++이건 팝업으로 뜰 공지사항 문서 입니당+++++++++++++++++++++++
<html>
<head>
<title>오픈과 함께 드리는 공지말씀</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
<!--
function setCookie(name,value,expiredays) {
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin() {
if(document.checkClose.ncook.checked == true) {
setCookie("ncook", "done" ,7);
}
self.close();
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<p> </p>
<form name="checkClose">
<input type="checkbox" name="ncook">다음부터 이 창 띄우지 않음
<input type="button" value="닫기" onClick="closeWin()">
</form>
</body>
</html>
제발 해결해 주세요~~꾸벅
도대체 모가 문제인 것인지.. 답변을 부탁드립니다. -.-
++++++++++++이건 본문서 구요++++++++++++++
<html>
<head>
<title>::::: 공지사항 :::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript" type="text/javascript" src="chromeless_35.js"></script>
<script language="javascript">
function openIT(u,W,H,X,Y,n,b,x,m,r) {
var cU ='close_up.gif'
var cO ='close_ovr.gif'
var cL ='clock.gif'
var mU ='min_up.gif'
var mO ='min_ovr.gif'
var xU ='max_up.gif'
var xO ='max_ovr.gif'
var rU ='res_up.gif'
var rO ='res_ovr.gif'
var tH ='<font face=gulim size=2>::::::::::::: 가입에 관한 공지사항 :::::::::</font>'
var tW ='오픈공지'
var wB ='#000000'
var wBs ='#FFFFFF'
var wBG ='#C8E9B2'
var wBGs='#69AF8B'
var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
var fSO ='scrolling=no noresize'
var brd =b||0;
var max =x||false;
var min =m||false;
var res =r||false;
var tsz =20;
return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
}
</script>
</head>
<body bgcolor="#333333" text="#FFFFFF" leftmargin="0" topmargin="64">
<a href="#" onClick="clwin=openIT('popup.htm',230,180,730,280,'win04',10,false,false,true);">오픈공지</a>
<table width="780" border="0" cellspacing="0" height="424" align="center">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="837" height="455">
<param name=movie value="newmain.swf">
<param name=quality value=high>
<embed src="newmain.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="837" height="455">
</embed>
</object></td>
</tr>
<tr>
<td><font size="2"><font color="#56AF83"><img src="copyright.gif" width="837" height="35"><br>
</font><font color="#009966"> </font> </font></td>
</tr>
</table>
</body>
</html>
++++++++++++++++++이건 팝업으로 뜰 공지사항 문서 입니당+++++++++++++++++++++++
<html>
<head>
<title>오픈과 함께 드리는 공지말씀</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
<!--
function setCookie(name,value,expiredays) {
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin() {
if(document.checkClose.ncook.checked == true) {
setCookie("ncook", "done" ,7);
}
self.close();
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<p> </p>
<form name="checkClose">
<input type="checkbox" name="ncook">다음부터 이 창 띄우지 않음
<input type="button" value="닫기" onClick="closeWin()">
</form>
</body>
</html>
제발 해결해 주세요~~꾸벅
댓글 1
-
KYJ
2002.05.10 01:10
크롬레스 윈도우에 자세한 스펙은 저도 모르겠으나 팝업을 자동으로 뜨게 하실려면 HTML 문서안에 body 테그안에 onLoad 란 명령어가 들어가야 합니다. html 문서안에 팝업기능을 추가하신뒤 body 테그안에 onload="팝업기능" 이런식으로 불러 주시면 되는거죠. 물론 팝업기능안에는 님이 띄우실려고 하는 공지 HTML 문서가 있어야하구요. 도움이 되었으며 합니다.