팝업 5개 띄우기는 어떻게 하나요 ?? > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

팝업 5개 띄우기는 어떻게 하나요 ?? 정보

팝업 5개 띄우기는 어떻게 하나요 ??

본문

아래의... 팝업창 스킨을 다운받아서 사용중입니다.
이 팝업창에서...팝업을 5개가지 띄우고 싶은데 어떻게 해야 되는지 ..???

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=85213&sca=%EA%B2%8C%EC%8B%9C%ED%8C%90&sfl=wr_subject%7C%7Cwr_content&stx=%ED%8C%9D%EC%97%85+%EA%B2%8C%EC%8B%9C%ED%8C%90&sop=and&page=4


위의 스킨에서....
메인에..<?=latest('popup_latest','popup',1);?> 이것을 =>
<?=latest('popup_latest','popup',5);?> 로 수정했는데도 않되네요...

아무래도.. list.skin 에서 수정해이 변겨되야 할것같은데 고수님의 조언부탁합니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
$title = get_text($list[$i][wr_subject]);
$content = nl2br($list[$i][wr_content]);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
$left = get_text($list[$i][wr_3]); //by 김정훈(모니) 팝업창 좌측위치
$top = get_text($list[$i][wr_4]); //by 김정훈(모니) 팝업창 상단 위치
if (!file_exists($img) || !$list[$i][file][0][file])
echo "";
if ($list[$i][wr_1] == "사용")
{
?>

<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.notice_form.chkbox.checked ){
setCookie( "maindiv", "done" , 1 );
}
document.all['divpop'].style.visibility = "hidden";
}
//-->
</script>
<SCRIPT language=javascript>
<!-- 
clicked = false;
function startDrag(cx,cy) {
        clicked = true;
        pleft=parseInt(document.getElementById("divpop").style.left);
  ptop=parseInt(document.getElementById("divpop").style.top);
        dragxcoor=cx;       
  dragycoor=cy;       
}
               
function stopDrag() {
        clicked = false;
}
       
function dragBox(evt) {
e = evt || event;
        if (clicked == true) {
      newx = pleft+e.clientX-dragxcoor;
          newy = ptop+e.clientY-dragycoor;
                document.getElementById("divpop").style.left=newx;
                document.getElementById("divpop").style.top=newy;
                return false;
  }
}
document.onmousemove = dragBox;
-->
</SCRIPT>

<div id="divpop" style="position:absolute; left:<?=$left?>px; top:<?=$top?>; z-index:200; visibility:hidden; display: table; cursor:move" onmousedown="startDrag(event.clientX,event.clientY)" onmouseup="stopDrag()">
<table border='0' cellspacing='0' cellpadding='0' bgcolor="#FFFFFF">
  <!-----<tr>
    <td width='7'><img src='<?=$latest_skin_path?>/img/bg_01.gif' width='7' height='31'></td>
    <td background='<?=$latest_skin_path?>/img/bg_04.gif'> <B><? echo $list[$i][wr_subject] ?></B>  </td>
    <td background='<?=$latest_skin_path?>/img/bg_04.gif'></td>
    <td width='7'><img src='<?=$latest_skin_path?>/img/bg_07.gif' width='7' height='31'></td>
  </tr> ---->
  <tr>
    <td></td>
    <td colspan='2' valign='top'>

 

<?
if (preg_match("/(\.swf)$/i", $img))
{   
 echo "<embed src='{$img}' width='400' height='300' ></embed>";
  }
  else
  {
  if ($list[$i][file][0][file])
{
echo  "<a href=http://{$list[$i][wr_link1]} target={$list[$i][wr_2]}><img src='{$img}' border='0'></a>";
}
  else
{
echo "<table width='367' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr>";
  echo "<td width='23'><img src='{$latest_skin_path}/img/bg_09.gif' width='23' height='27'></td>";
echo "<td width='320' background='{$latest_skin_path}/img/bg_11.gif'><div align='center'><img src='{$latest_skin_path}/img/bg_11.gif' width='1' height='27'></div></td>";
  echo "<td width='24'><img src='{$latest_skin_path}/img/bg_13.gif' width='24' height='27'></td>";
  echo "</tr>";
  echo "<tr>";
  echo "<td background='{$latest_skin_path}/img/bg_23.gif'><img src='{$latest_skin_path}/img/bg_23.gif' width='23' height='1'></td>";
  echo "<td valign='top'>";  
echo "<table width=100% border=0 cellspacing=0 cellpadding=0 align=center>";
  echo "<tr><td height=25><font color=#416B01>♣&nbsp;<b>{$list[$i][wr_subject]}</b></font></td><td align=right>{$list[$i][datetime]}</td></tr>";
  echo "<tr><td height=1 colspan=2 bgcolor=#cccccc></td></tr>";
  echo "<tr><td height=2 colspan=2 bgcolor=#efefef></td></tr>";
 
 if ($list[$i][wr_link1]) { //by 김정훈(모니)
 echo "<td valign=top colspan=2 style=padding-top:10px;><a href={$list[$i][wr_link1]} target={$list[$i][wr_2]}>{$content}</a></td>";
 } else {
 echo "<td valign=top colspan=2 style=padding-top:10px;>{$content}</td>";
 } //by 김정훈(모니)
 
 echo "</tr>";
 echo "</table>";
 echo "</td>";
 echo "<td background='{$latest_skin_path}/img/bg_19.gif'><img src='{$latest_skin_path}/img/bg_19.gif' width='24' height='8'></td>";
 echo "</tr>";
 echo "<tr>";
 echo "<td><img src='{$latest_skin_path}/img/bg_26.gif' width='23' height='66'></td>";
 echo "<td background='{$latest_skin_path}/img/bg_28.gif'><img src='{$latest_skin_path}/img/bg_27.gif' width='320' height='66'></td>";
 echo "<td><img src='{$latest_skin_path}/img/bg_29.gif' width='24' height='66'></td>";
 echo "</tr>";
 echo "</table>";
  }
}
?></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td colspan='2'>
  <form name="notice_form">
<table width='256' border='0' cellspacing='0' cellpadding='0' align='right'>
  <tr>
    <td width="20"><a href="#"><input type="checkbox" name="chkbox" value="checkbox" onclick="closeWin();"></a></td>
    <td width="167">오늘은 이창을 다시 열지않음</td>
    <td width="67"><a href="javascript:closeWin();"><input type="checkbox" name="chkbox" value="checkbox" onclick="closeWin();">닫음</a></td>
  </tr>
</table>
  </form>
</td>
    <td></td>
  </tr>
</table>
</div>
<script language="Javascript">
cookiedata = document.cookie;
if ( cookiedata.indexOf("maindiv=done") < 0 ){
document.all['divpop'].style.visibility = "visible";
}
else {
document.all['divpop'].style.visibility = "hidden";
}
</script>
<? }?>
<? }?>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT