공지창 이미지 클릭후 링크 이동은? 정보
그누보드 공지창 이미지 클릭후 링크 이동은?
본문
=================================================
<script language="JavaScript">
<!-- JavaScript
function notice_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function notice_closeWin()
{
if ( document.forms[0].Notice.checked )
notice_setCookie( "Notice", "done" , 1); // 1=하룻동안 공지창 열지 않음
self.close();
}
// - JavaScript - -->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="form1">
<table width="300" height="330" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="290" colspan="3" width="299"><a href="http://이동할 페이지"><img src="새창이미지.gif" width="300" height="300">
</a>
</td>
</tr>
<tr>
<td width="2" valign="center" align="right" bgcolor="#E5E5E5" height="39">
</td>
<td width="289" valign="center" bgcolor="#E5E5E5" height="39">
<table width="283" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD width="195">
<p style="font-size:12px" align="center">
<input type="checkbox" name="Notice">오늘은 이창을 다시 열지않음
</TD>
<TD width="88">
<p align="right"><input type="image" src="image/close.gif" name="close" OnClick="notice_closeWin()" width="95" height="39">
</p>
</TD>
</tr>
</table>
</td>
<td width="8" align="right" bgcolor="#E5E5E5" height="39"> </td>
</tr>
</table>
</form>
</body>
=====================================================================
위 소스에서
새창 이미지를 클릭했을때
해당 페이지로 이동하게 하려면 어떻게 하나요?...
<script language="JavaScript">
<!-- JavaScript
function notice_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function notice_closeWin()
{
if ( document.forms[0].Notice.checked )
notice_setCookie( "Notice", "done" , 1); // 1=하룻동안 공지창 열지 않음
self.close();
}
// - JavaScript - -->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="form1">
<table width="300" height="330" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="290" colspan="3" width="299"><a href="http://이동할 페이지"><img src="새창이미지.gif" width="300" height="300">
</a>
</td>
</tr>
<tr>
<td width="2" valign="center" align="right" bgcolor="#E5E5E5" height="39">
</td>
<td width="289" valign="center" bgcolor="#E5E5E5" height="39">
<table width="283" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD width="195">
<p style="font-size:12px" align="center">
<input type="checkbox" name="Notice">오늘은 이창을 다시 열지않음
</TD>
<TD width="88">
<p align="right"><input type="image" src="image/close.gif" name="close" OnClick="notice_closeWin()" width="95" height="39">
</p>
</TD>
</tr>
</table>
</td>
<td width="8" align="right" bgcolor="#E5E5E5" height="39"> </td>
</tr>
</table>
</form>
</body>
=====================================================================
위 소스에서
새창 이미지를 클릭했을때
해당 페이지로 이동하게 하려면 어떻게 하나요?...
댓글 전체
최종 수정코드 입니다..혹시 참고하실분을 위해..
<script language="JavaScript">
<!--
function notice_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function notice_closeWin()
{
if ( document.form1.Notice.checked )
notice_setCookie( "Notice", "done" , 1); // 1=하룻동안 공지창 열지 않음
self.close();
}
function move_url(){
opener.location.href = "./?doc=bbs/gnuboard.php&bo_table=webmail";
window.close();
}
//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="form1">
<table width="300" height="330" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="290" colspan="3" width="299">
<a href="javascript:move_url();"><img src="image/pop_up/webmailservice.gif" width="300" height="300" border="0"></a></td>
</tr>
<tr>
<td width="2" valign="center" align="right" bgcolor="#E5E5E5" height="39">
</td>
<td width="289" valign="center" bgcolor="#E5E5E5" height="39">
<table width="283" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD width="195">
<p style="font-size:12px" align="center">
<input type="checkbox" name="Notice">오늘은 이창을 다시 열지않음
</TD>
<TD width="88">
<p align="right"><input type="image" src="image/close.gif" name="close" OnClick="notice_closeWin()" width="95" height="39">
</p>
</TD>
</tr>
</table>
</td>
<td width="8" align="right" bgcolor="#E5E5E5" height="39"> </td>
</tr>
</table>
</form>
</body>
<script language="JavaScript">
<!--
function notice_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function notice_closeWin()
{
if ( document.form1.Notice.checked )
notice_setCookie( "Notice", "done" , 1); // 1=하룻동안 공지창 열지 않음
self.close();
}
function move_url(){
opener.location.href = "./?doc=bbs/gnuboard.php&bo_table=webmail";
window.close();
}
//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="form1">
<table width="300" height="330" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="290" colspan="3" width="299">
<a href="javascript:move_url();"><img src="image/pop_up/webmailservice.gif" width="300" height="300" border="0"></a></td>
</tr>
<tr>
<td width="2" valign="center" align="right" bgcolor="#E5E5E5" height="39">
</td>
<td width="289" valign="center" bgcolor="#E5E5E5" height="39">
<table width="283" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD width="195">
<p style="font-size:12px" align="center">
<input type="checkbox" name="Notice">오늘은 이창을 다시 열지않음
</TD>
<TD width="88">
<p align="right"><input type="image" src="image/close.gif" name="close" OnClick="notice_closeWin()" width="95" height="39">
</p>
</TD>
</tr>
</table>
</td>
<td width="8" align="right" bgcolor="#E5E5E5" height="39"> </td>
</tr>
</table>
</form>
</body>
sjsjin님..
늦은 새벽까지..오류 잡아주시고..고생하셨습니다..^..
정말 감사드립니다..^^
늦은 새벽까지..오류 잡아주시고..고생하셨습니다..^..
정말 감사드립니다..^^
sjsjin님..쪽지로 url 보냈는데요..이것도 안되네요.. 왜 그런걸까?...
훔....왜 안될까?......ㅜ.ㅡ
메인페이지에서 새창이 뜰때 새창의 바로가기 이미지 클릭하면 새창은 닫히고 메인페이지가 해당 페이지로 이동하는 것인데요... 위..이동할 페이지에 주소 넣어도 페이지 이동이 안됩니다....