블레스님의 펍업소스로 작업중인데 자바에러가 나는군요. > 그누4 질문답변

그누4 질문답변

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

블레스님의 펍업소스로 작업중인데 자바에러가 나는군요. 정보

블레스님의 펍업소스로 작업중인데 자바에러가 나는군요.

본문

단독파일로 테스트하면 이상이없는데, 스킨에 넣어서 돌리면 자바에러가 나오는군요?
 
해당파일의 소스를 아래 첨부합니다.
 
<?
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]);
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:100px; top:50; 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'><img src='<?=$latest_skin_path?>/img/bg_02.gif' width='194' height='31'></td>
    <td background='<?=$latest_skin_path?>/img/bg_04.gif'><div align='right'><img src='<?=$latest_skin_path?>/img/bg_03.gif' width='114' height='31'></div></td>
    <td width='7'><img src='<?=$latest_skin_path?>/img/bg_07.gif' width='7' height='31'></td>
  </tr>
  <tr>
    <td background='<?=$latest_skin_path?>/img/bg_22.gif'><img src='<?=$latest_skin_path?>/img/bg_22.gif' width='7' height='1'></td>
    <td colspan='2' valign='top'>
 <?
if ($list[$i][file][0][file])
{
 echo  "<a href='{$list[$i][href]}'><img src='{$img}' border='0'></a>";
 }
 else
 {
 echo "<table width='367' height='450' 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 height='350' width=100% border=0 cellspacing=0 cellpadding=0 align=center style=table-layout:fixed>";
 echo "<tr><td height=25><font color=#416B01>♣ <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>";
 echo "<td height='350' valign=top colspan=2 style=padding-top:10px;><a href={$list[$i][href]} >{$content}</a></td>";
 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' style='filter:Alpha(style=2,opacity=80,finishopacity=30)' ></td>";
 echo "<td><img src='{$latest_skin_path}/img/bg_29.gif' width='24' height='66'></td>";
 echo "</tr>";
 echo "</table>";
  }
?></td>
    <td background='<?=$latest_skin_path?>/img/bg_18.gif'><img src='<?=$latest_skin_path?>/img/bg_18.gif' width='7' height='1'></td>
  </tr>
  <tr>
    <td><img src='<?=$latest_skin_path?>/img/bg_30.gif' width='7' height='31'></td>
    <td colspan='2' background='<?=$latest_skin_path?>/img/bg_32.gif'> 
   <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();"><img src='<?=$latest_skin_path?>/img/bg_34.gif' width='67' height='31' align='absmiddle' border='0'></a></td>
  </tr>
</table>
  </form>
 </td>
    <td><img src='<?=$latest_skin_path?>/img/bg_35.gif' width='7' height='31'></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>
<? }?>
<? }?>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로