공지창 이미지 클릭후 링크 이동은? > 그누3질답

그누3질답

공지창 이미지 클릭후 링크 이동은? 정보

그누보드 공지창 이미지 클릭후 링크 이동은?

본문

=================================================
<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">&nbsp;</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">&nbsp;</td>
        </tr>
</table>
</form>
</body>
메인페이지에서 새창이 뜰때 새창의 바로가기 이미지 클릭하면 새창은 닫히고 메인페이지가 해당 페이지로 이동하는 것인데요... 위..이동할 페이지에 주소 넣어도 페이지 이동이 안됩니다....
© SIRSOFT
현재 페이지 제일 처음으로