팝업창에 관련하여 질문좀 드릴께요 정보
팝업창에 관련하여 질문좀 드릴께요본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
소스내용
<?
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]);
$wr_id = "pop".$list[$i][wr_id] ;
$ileft = $i +$i +$i +$i +$i +$i +$i +$i + 50;
$itop = $i +$i +$i +$i +$i +$i +$i +$i + 300;
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
echo "";
if ($list[$i][wr_1] == "실행")
{
?>
<SCRIPT language=javascript>
<!--
clicked = false;
function startDrag<?=$wr_id?>(cx,cy) {
<?=$wr_id?>clicked = true;
pleft=parseInt(document.getElementById("<?=$wr_id?>").style.left);
ptop=parseInt(document.getElementById("<?=$wr_id?>").style.top);
dragxcoor=cx;
dragycoor=cy;
document.onmousemove = dragBox<?=$wr_id?>;
}
function stopDrag<?=$wr_id?>() {
clicked = false;
}
function dragBox<?=$wr_id?>(evt) {
e = evt || event;
if (clicked == true) {
newx = pleft+e.clientX-dragxcoor;
newy = ptop+e.clientY-dragycoor;
document.getElementById("<?=$wr_id?>").style.left=newx;
document.getElementById("<?=$wr_id?>").style.top=newy;
// return false;
}
}
-->
</SCRIPT>
<script language="JavaScript">
<!--
function setCookie<?=$wr_id?>( name, value, expiredays ) {
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin<?=$wr_id?>() {
if ( document.notice_form<?=$wr_id?>.chkbox.checked ){
setCookie<?=$wr_id?>( "<?=$wr_id?>", "done" , 1 );
}
document.all['<?=$wr_id?>'].style.visibility = "hidden";
}
//-->
</script>
<div id="<?=$wr_id?>" style="position:absolute; left:<?=$ileft?>px; top:<?=$ileft?>; z-index:200; visibility:visible; display:table">
<table cellSpacing=1 cellPadding=0 width=500 bgColor=gray>
<tr>
<td>
<table cellSpacing=0 cellPadding=0 width=500 bgColor=white border=0>
<tr>
<td width=24><img height=28 src='<?=$latest_skin_path?>/img/info_front.gif'
width=24></td>
<td style="COLOR: white" width=476
bgColor=#2a75b6> <B>최근게시글</B> <span style="WIDTH: 332px"></span><a href="javascript:closeWin<?=$wr_id?>();"><img height=11 src='<?=$latest_skin_path?>/img/x.gif' align=middle width=12 border=0></a>
</td>
</tr>
<tr>
<td align=middle colSpan=2>
<table style="MARGIN-TOP: 10px" cellSpacing=0 cellPadding=0 width=450>
<tr>
<td height="3"><img height=3 src='<?=$latest_skin_path?>/img/info_round_top.gif' width=470></td>
</tr>
<tr bgColor=#b6c9d9 height=21>
<td style="BORDER-RIGHT: #5a9cd6 1px solid; BORDER-LEFT: #5a9cd6 1px solid; COLOR: white;BORDER-BOTTOM: #5a9cd6 1px solid"> <font class="title"><strong><?echo "{$list[$i][wr_subject]}";?></strong></font></td>
</tr>
<tr align=right bgColor=#f4f4f4 height=25>
<td style="BORDER-BOTTOM: #b6c9d9 1px dotted"><font class="title"><strong><?echo "{$list[$i][datetime]}"?></big></font></td>
</tr>
<?
if ($list[$i][file][0][file])
{
echo "<a href={$list[$i][wr_link1]} target={$list[$i][wr_2]}><img src='{$img}' border='0'></a>";
}
else
{
echo "<td style=text-align:justify;>{$content}</td>";
}
?>
</font></td>
</tr>
<tr>
<td height="4"><img height=4 src='<?=$latest_skin_path?>/img/info_round_bottom.gif' width=470></td>
</tr>
</table>
<p></p></td>
</tr>
<form name="notice_form<?=$wr_id?>">
<table width='256' border='0' cellspacing='0' cellpadding='0' style='BORDER-TOP: #4c4c4c 1px solid' align=right bgColor=#4c4c4c>
<tr>
<td><a href="#"><input type="checkbox" name="chkbox" value="checkbox" onclick="closeWin<?=$wr_id?>();"></a></td>
<td width="167" style='BORDER-TOP: #4c4c4c 1px solid' align=right bgColor=#4c4c4c>24시간 동안 이 창을 열지 않음</td>
<td width="67"><a href="javascript:closeWin<?=$wr_id?>();"><img src='<?=$latest_skin_path?>/img/info_close.gif' width=45 align='absmiddle' border='0'></a></td>
</tr>
</table>
</form>
</table>
</td>
</tr>
</table>
</div>
<script language="Javascript">
cookiedata = document.cookie;
if ( cookiedata.indexOf("<?=$wr_id?>=done") < 0 ){
document.all['<?=$wr_id?>'].style.visibility = "visible";
}
else {
document.all['<?=$wr_id?>'].style.visibility = "hidden";
}
</script>
<?
}
?>
<?
}
?>
오류 주소 :
소스내용
<?
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]);
$wr_id = "pop".$list[$i][wr_id] ;
$ileft = $i +$i +$i +$i +$i +$i +$i +$i + 50;
$itop = $i +$i +$i +$i +$i +$i +$i +$i + 300;
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
echo "";
if ($list[$i][wr_1] == "실행")
{
?>
<SCRIPT language=javascript>
<!--
clicked = false;
function startDrag<?=$wr_id?>(cx,cy) {
<?=$wr_id?>clicked = true;
pleft=parseInt(document.getElementById("<?=$wr_id?>").style.left);
ptop=parseInt(document.getElementById("<?=$wr_id?>").style.top);
dragxcoor=cx;
dragycoor=cy;
document.onmousemove = dragBox<?=$wr_id?>;
}
function stopDrag<?=$wr_id?>() {
clicked = false;
}
function dragBox<?=$wr_id?>(evt) {
e = evt || event;
if (clicked == true) {
newx = pleft+e.clientX-dragxcoor;
newy = ptop+e.clientY-dragycoor;
document.getElementById("<?=$wr_id?>").style.left=newx;
document.getElementById("<?=$wr_id?>").style.top=newy;
// return false;
}
}
-->
</SCRIPT>
<script language="JavaScript">
<!--
function setCookie<?=$wr_id?>( name, value, expiredays ) {
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin<?=$wr_id?>() {
if ( document.notice_form<?=$wr_id?>.chkbox.checked ){
setCookie<?=$wr_id?>( "<?=$wr_id?>", "done" , 1 );
}
document.all['<?=$wr_id?>'].style.visibility = "hidden";
}
//-->
</script>
<div id="<?=$wr_id?>" style="position:absolute; left:<?=$ileft?>px; top:<?=$ileft?>; z-index:200; visibility:visible; display:table">
<table cellSpacing=1 cellPadding=0 width=500 bgColor=gray>
<tr>
<td>
<table cellSpacing=0 cellPadding=0 width=500 bgColor=white border=0>
<tr>
<td width=24><img height=28 src='<?=$latest_skin_path?>/img/info_front.gif'
width=24></td>
<td style="COLOR: white" width=476
bgColor=#2a75b6> <B>최근게시글</B> <span style="WIDTH: 332px"></span><a href="javascript:closeWin<?=$wr_id?>();"><img height=11 src='<?=$latest_skin_path?>/img/x.gif' align=middle width=12 border=0></a>
</td>
</tr>
<tr>
<td align=middle colSpan=2>
<table style="MARGIN-TOP: 10px" cellSpacing=0 cellPadding=0 width=450>
<tr>
<td height="3"><img height=3 src='<?=$latest_skin_path?>/img/info_round_top.gif' width=470></td>
</tr>
<tr bgColor=#b6c9d9 height=21>
<td style="BORDER-RIGHT: #5a9cd6 1px solid; BORDER-LEFT: #5a9cd6 1px solid; COLOR: white;BORDER-BOTTOM: #5a9cd6 1px solid"> <font class="title"><strong><?echo "{$list[$i][wr_subject]}";?></strong></font></td>
</tr>
<tr align=right bgColor=#f4f4f4 height=25>
<td style="BORDER-BOTTOM: #b6c9d9 1px dotted"><font class="title"><strong><?echo "{$list[$i][datetime]}"?></big></font></td>
</tr>
<?
if ($list[$i][file][0][file])
{
echo "<a href={$list[$i][wr_link1]} target={$list[$i][wr_2]}><img src='{$img}' border='0'></a>";
}
else
{
echo "<td style=text-align:justify;>{$content}</td>";
}
?>
</font></td>
</tr>
<tr>
<td height="4"><img height=4 src='<?=$latest_skin_path?>/img/info_round_bottom.gif' width=470></td>
</tr>
</table>
<p></p></td>
</tr>
<form name="notice_form<?=$wr_id?>">
<table width='256' border='0' cellspacing='0' cellpadding='0' style='BORDER-TOP: #4c4c4c 1px solid' align=right bgColor=#4c4c4c>
<tr>
<td><a href="#"><input type="checkbox" name="chkbox" value="checkbox" onclick="closeWin<?=$wr_id?>();"></a></td>
<td width="167" style='BORDER-TOP: #4c4c4c 1px solid' align=right bgColor=#4c4c4c>24시간 동안 이 창을 열지 않음</td>
<td width="67"><a href="javascript:closeWin<?=$wr_id?>();"><img src='<?=$latest_skin_path?>/img/info_close.gif' width=45 align='absmiddle' border='0'></a></td>
</tr>
</table>
</form>
</table>
</td>
</tr>
</table>
</div>
<script language="Javascript">
cookiedata = document.cookie;
if ( cookiedata.indexOf("<?=$wr_id?>=done") < 0 ){
document.all['<?=$wr_id?>'].style.visibility = "visible";
}
else {
document.all['<?=$wr_id?>'].style.visibility = "hidden";
}
</script>
<?
}
?>
<?
}
?>
댓글 전체
위 그림은 팝업창을 이미지로 할때와 텍스트로 할때의 차이점입니다.
텍스트로 할때는 정상적으로 제목과 등록일자가 정상적 위치에 나옵니다.
그런데 이미지를 올릴경우에는 깨져버립니다.
문제점이 무엇인지좀 알려주세요
그리고 하나더 추가적인질문이 있습니다.
이미지가 엎으로 늘어나면 틀도 따라서 늘어나게 하고져 합니다.
어디를 어떻게 수정을 하면 되는지요
그리고 또
X표시가 오른쪽 끝으로 가야 하는데 어중간하게 보입니다.
어느정도 오른쪽 끝으로 보이게 하고져 합니다.
한수 부탁드립니다.
텍스트로 할때는 정상적으로 제목과 등록일자가 정상적 위치에 나옵니다.
그런데 이미지를 올릴경우에는 깨져버립니다.
문제점이 무엇인지좀 알려주세요
그리고 하나더 추가적인질문이 있습니다.
이미지가 엎으로 늘어나면 틀도 따라서 늘어나게 하고져 합니다.
어디를 어떻게 수정을 하면 되는지요
그리고 또
X표시가 오른쪽 끝으로 가야 하는데 어중간하게 보입니다.
어느정도 오른쪽 끝으로 보이게 하고져 합니다.
한수 부탁드립니다.
억지로 어떻게 수정을 하였습니다.
헉.. 확인해 보려 했더니, 직접 처리하셨군요..--;
ㅎㅎ 암튼 해결축하해요