연후아빠님의 왼쪽링크메뉴와 동영상 최근게시물에 관하여... 정보
연후아빠님의 왼쪽링크메뉴와 동영상 최근게시물에 관하여...본문

연후아빠님이 올려 주신 왼쪽링크메뉴에 관하여 질문드립니다.
적용하면 나타나는 현상 첫번째 보여질때 01, 02, 03이 모두 한페이지에 3개가 나란히
밑으로 3개가 보입니다. 물론 게시물 갯수는 1로 했습니다.
그리고 01, 02, 03 페이지가 변하면서는 정상적으로 됩니다.
문제는 처음 보여질때 01, 02, 03 모두가 아래로 보인다는 것입니다.
이것을 처음 보여질때 01만 보여지면서 02, 03으로 변하게 하고 싶습니다.
적용한 auto_menu.php파일 입니다.
<SCRIPT type=text/javascript>
<!--
old_debate='1';
<!--
old_debate='1';
function Comeon(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}
var objid = 1;
var interval_best;
function best_change()
{
if( objid == 3 )
objid = 1;
else
objid++;
{
if( objid == 3 )
objid = 1;
else
objid++;
Comeon(objid);
}
}
function setInterval_best()
{
interval_best = setInterval("best_change()",4000);//속도조절
}
function clearInterval_best()
{
clearInterval(interval_best);
}
setInterval_best();
//-->
</SCRIPT>
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign=bottom>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD width="40" height=25 id=debate1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><A href='javascript://'><b><img src="<?=$g4['path']?>/auto_img/on_1.gif" border="0"></TD>
<TD width="40" height=25 id=debate1#1 style="DISPLAY: none;"><span onmouseover="javascript:Comeon('1')"><img src="<?=$g4['path']?>/auto_img/img_127.gif" border="0"></TD>
<TD width="40" id=debate2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/auto_img/on_2.gif" border="0"></TD>
<TD width="40" id=debate2#1><span onmouseover="javascript:Comeon('2')" onfocus='this.blur()'><img src="<?=$g4['path']?>/auto_img/img_129.gif" border="0"></TD>
<TD width="40" id=debate3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/auto_img/on_3.gif" border="0"></TD>
<TD width="40" id=debate3#1><span onmouseover="javascript:Comeon('3')" onfocus='this.blur()'><img src="<?=$g4['path']?>/auto_img/img_131.gif" border="0"></TD>
</TR>
</TABLE>
</td>
<td width=62 height=25><img src="<?=$g4['path']?>/auto_img/img_126.gif" border="0"></td>
</tr>
<tr>
<td colspan=2 align=center>
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan=3 height=1 bgcolor="#E5E5E5"></td></tr>
<tr><td width=1 bgcolor="#E5E5E5"></td>
<td width=188>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr><td height=3></td></tr>
<tr>
<td height='127' vAlign='top'>
<DIV id=debate_content1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("movie", moving_image, 1, 30)?></DIV>
<DIV id=debate_content2 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", photo_room, 1, 30)?></DIV>
<DIV id=debate_content3 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", others, 1, 30)?></DIV>
</td>
</tr>
</table>
</td>
<td width=1 bgcolor="#E5E5E5"></td>
</tr>
<tr><td colspan=3 height=1 bgcolor="#E5E5E5"></td></tr>
</table>
</td>
</tr>
</table>
</SCRIPT>
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign=bottom>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD width="40" height=25 id=debate1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><A href='javascript://'><b><img src="<?=$g4['path']?>/auto_img/on_1.gif" border="0"></TD>
<TD width="40" height=25 id=debate1#1 style="DISPLAY: none;"><span onmouseover="javascript:Comeon('1')"><img src="<?=$g4['path']?>/auto_img/img_127.gif" border="0"></TD>
<TD width="40" id=debate2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/auto_img/on_2.gif" border="0"></TD>
<TD width="40" id=debate2#1><span onmouseover="javascript:Comeon('2')" onfocus='this.blur()'><img src="<?=$g4['path']?>/auto_img/img_129.gif" border="0"></TD>
<TD width="40" id=debate3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/auto_img/on_3.gif" border="0"></TD>
<TD width="40" id=debate3#1><span onmouseover="javascript:Comeon('3')" onfocus='this.blur()'><img src="<?=$g4['path']?>/auto_img/img_131.gif" border="0"></TD>
</TR>
</TABLE>
</td>
<td width=62 height=25><img src="<?=$g4['path']?>/auto_img/img_126.gif" border="0"></td>
</tr>
<tr>
<td colspan=2 align=center>
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan=3 height=1 bgcolor="#E5E5E5"></td></tr>
<tr><td width=1 bgcolor="#E5E5E5"></td>
<td width=188>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr><td height=3></td></tr>
<tr>
<td height='127' vAlign='top'>
<DIV id=debate_content1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("movie", moving_image, 1, 30)?></DIV>
<DIV id=debate_content2 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", photo_room, 1, 30)?></DIV>
<DIV id=debate_content3 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", others, 1, 30)?></DIV>
</td>
</tr>
</table>
</td>
<td width=1 bgcolor="#E5E5E5"></td>
</tr>
<tr><td colspan=3 height=1 bgcolor="#E5E5E5"></td></tr>
</table>
</td>
</tr>
</table>
그리고 하나 더 질문드립니다. 동영상 최근게시물에 관하여...
최근게시물을 적용했는데 이미지가 나타나지 않습니다.
no이미지때 나타나는 이미지만 적용되고 실제 이미지를 적용해도 최근게시물에 이미지가 나타나지 않습니다.
latest.skin.php파일에 이렇게 적용했습니다.
<a href=javascript:// onClick="window.open('<?=$g4[path]?>/skin/board/moviefl/movie.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=100,left=100,width=810,height=557');"><img src='<?=$img?>' width='70' height="53" border=0></a>
이미지가 나오는 부분은 img src='<?=$img?>' 이렇게 적용하면 되는 것 아니나요.
어떻게 적용해야 하는지 답변좀 부탁드립니다.
이렇게 글을 읽어 주셔서 감사드립니다.
모두들 행복하시고 건강하세요!!!
댓글 전체
<SCRIPT type=text/javascript>
<!--
old_debate='1';
function Comeon(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}
var objid = 1;
var interval_best;
function best_change()
{
if( objid == 4 )
objid = 1;
else
objid++;
Comeon(objid);
}
function setInterval_best()
{
interval_best = setInterval("best_change()",4000);//속도조절
}
function clearInterval_best()
{
clearInterval(interval_best);
}
setInterval_best();
//-->
</SCRIPT>
<div style='height:10px;'></div>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/auto_menu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/auto_menu/img/outline_left.gif">
</td>
<td width="180" align="center">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr><td height="5" align="center"></td></tr>
<tr>
<td align="right" valign=bottom><img src="<?=$g4['path']?>/include/auto_menu/img/img_126.gif" border="0"></TD>
</TR>
</TABLE>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign=bottom>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD width="50" height=25 id=debate1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_1.gif" border="0"></TD>
<TD width="50" height=25 id=debate1#1 style="DISPLAY: none;"><span onmouseover="javascript:Comeon('1')"><img src="<?=$g4['path']?>/include/auto_menu/img/img_127.gif" border="0"></TD>
<TD width="50" id=debate2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_2.gif" border="0"></TD>
<TD width="50" id=debate2#1 ><span onmouseover="javascript:Comeon('2')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img_129.gif" border="0"></TD>
<TD width="50" id=debate3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_3.gif" border="0"></TD>
<TD width="50" id=debate3#1><span onmouseover="javascript:Comeon('3')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img_131.gif" border="0"></TD>
<TD width="50" id=debate4 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_4.gif" border="0"></TD>
<TD width="50" id=debate4#1><span onmouseover="javascript:Comeon('4')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img_133.gif" border="0"></TD>
</TR>
</TABLE>
</td>
<!--
<td width=62 height=25><img src="<?=$g4['path']?>/include/auto_menu/img/img_126.gif" border="0"></td>
-->
</tr>
<tr>
<td colspan=2 align=center>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr><td height=3></td></tr>
<tr>
<td height='127' vAlign='top'>
<DIV id=debate_content1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", z1_1, 1, 30)?></DIV>
<DIV id=debate_content2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("img_text", z2_1, 1, 30)?></DIV>
<DIV id=debate_content3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("img_text", z2_3, 1, 30)?></DIV>
<DIV id=debate_content4 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("img_text", z2_4, 1, 30)?></DIV>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="5" background="<?=$g4['path']?>/include/auto_menu/img/outline_right.gif">
</td>
</tr>
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/auto_menu/img/outline_bottom.gif" width="190" height="5" border="0"></p>
</td>
</tr>
</table>
<!--
old_debate='1';
function Comeon(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}
var objid = 1;
var interval_best;
function best_change()
{
if( objid == 4 )
objid = 1;
else
objid++;
Comeon(objid);
}
function setInterval_best()
{
interval_best = setInterval("best_change()",4000);//속도조절
}
function clearInterval_best()
{
clearInterval(interval_best);
}
setInterval_best();
//-->
</SCRIPT>
<div style='height:10px;'></div>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/auto_menu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/auto_menu/img/outline_left.gif">
</td>
<td width="180" align="center">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr><td height="5" align="center"></td></tr>
<tr>
<td align="right" valign=bottom><img src="<?=$g4['path']?>/include/auto_menu/img/img_126.gif" border="0"></TD>
</TR>
</TABLE>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign=bottom>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD width="50" height=25 id=debate1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_1.gif" border="0"></TD>
<TD width="50" height=25 id=debate1#1 style="DISPLAY: none;"><span onmouseover="javascript:Comeon('1')"><img src="<?=$g4['path']?>/include/auto_menu/img/img_127.gif" border="0"></TD>
<TD width="50" id=debate2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_2.gif" border="0"></TD>
<TD width="50" id=debate2#1 ><span onmouseover="javascript:Comeon('2')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img_129.gif" border="0"></TD>
<TD width="50" id=debate3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_3.gif" border="0"></TD>
<TD width="50" id=debate3#1><span onmouseover="javascript:Comeon('3')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img_131.gif" border="0"></TD>
<TD width="50" id=debate4 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='javascript://'><b><img src="<?=$g4['path']?>/include/auto_menu/img/on_4.gif" border="0"></TD>
<TD width="50" id=debate4#1><span onmouseover="javascript:Comeon('4')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img_133.gif" border="0"></TD>
</TR>
</TABLE>
</td>
<!--
<td width=62 height=25><img src="<?=$g4['path']?>/include/auto_menu/img/img_126.gif" border="0"></td>
-->
</tr>
<tr>
<td colspan=2 align=center>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr><td height=3></td></tr>
<tr>
<td height='127' vAlign='top'>
<DIV id=debate_content1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", z1_1, 1, 30)?></DIV>
<DIV id=debate_content2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("img_text", z2_1, 1, 30)?></DIV>
<DIV id=debate_content3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("img_text", z2_3, 1, 30)?></DIV>
<DIV id=debate_content4 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("img_text", z2_4, 1, 30)?></DIV>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="5" background="<?=$g4['path']?>/include/auto_menu/img/outline_right.gif">
</td>
</tr>
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/auto_menu/img/outline_bottom.gif" width="190" height="5" border="0"></p>
</td>
</tr>
</table>
네, 연후아빠님께사 직접 답변을 해주셨네요.
감사! 감사!
올려 주신 소스를 다시 적용해 봐도 똑 같은 현상이 나타납니다.
어디가 잘 못 적용 되어 있는지 설명좀 부탁드릴께요.
<DIV id=debate_content1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("movie", moving_image, 1, 30)?></DIV>
<DIV id=debate_content2 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", photo_room, 1, 30)?></DIV>
<DIV id=debate_content3 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", others, 1, 30)?></DIV>
이 부분이 잘 못 적용 됐는지 잘 모르겠네요.
설명좀 부탁드릴께요.
다시 감사~~ 감사~~
이제 너무 졸려서 자야 할 것 같네요.
감사! 감사!
올려 주신 소스를 다시 적용해 봐도 똑 같은 현상이 나타납니다.
어디가 잘 못 적용 되어 있는지 설명좀 부탁드릴께요.
<DIV id=debate_content1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("movie", moving_image, 1, 30)?></DIV>
<DIV id=debate_content2 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", photo_room, 1, 30)?></DIV>
<DIV id=debate_content3 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("img_text", others, 1, 30)?></DIV>
이 부분이 잘 못 적용 됐는지 잘 모르겠네요.
설명좀 부탁드릴께요.
다시 감사~~ 감사~~
이제 너무 졸려서 자야 할 것 같네요.
홈페이지를 구경좀~~
같은 스크립트를 사용하는게 있나요?
같은 스크립트를 사용하는게 있나요?
연후아빠님께 감사!
http://www.hbws2006.co.kr/gnuboard4/
그리고 동영상 최근게시물에서 이미지 적용이 안됩니다.
no이미지때 나타나는 이미지만 적용되고 실제 이미지를 적용해도 나타나지 않습니다.
함께 바주셨으면 하는 부탁드립니다.
감사~~ 감사~~
행복한 하루 되세요!!!
http://www.hbws2006.co.kr/gnuboard4/
그리고 동영상 최근게시물에서 이미지 적용이 안됩니다.
no이미지때 나타나는 이미지만 적용되고 실제 이미지를 적용해도 나타나지 않습니다.
함께 바주셨으면 하는 부탁드립니다.
감사~~ 감사~~
행복한 하루 되세요!!!
동영상 최근게시물에서 이미지 적용이 안되는 부분은 해결했습니다.
<? for ($i=0; $i<count($list); $i++) {
$img="$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
?>
위에 부분을 이렇게 변경해서 해결했습니다.
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
왼쪽링크부분만 연후아빠님 답변 부탁드립니다.
<? for ($i=0; $i<count($list); $i++) {
$img="$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
?>
위에 부분을 이렇게 변경해서 해결했습니다.
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
왼쪽링크부분만 연후아빠님 답변 부탁드립니다.
상단에 보시면 공지사항에 쓰시는 스크립트와 중복이 될 가능성이 있습니다...
확인해 보세요~~
확인해 보세요~~
답변해 주셔서 감사드립니다.
말씀해 주신 스크립트에 중복이 있을 수 있어서 공지사항 부분을 모두 빼고 적용해 보아도
똑 같은 현상만 나타납니다.
다시 한번 답변 부탁드립니다.
감사~~ 감사~~
말씀해 주신 스크립트에 중복이 있을 수 있어서 공지사항 부분을 모두 빼고 적용해 보아도
똑 같은 현상만 나타납니다.
다시 한번 답변 부탁드립니다.
감사~~ 감사~~
소스내의 게시판을 기본으로 바꾸어 보세요..
다른 사이트 설치 해 봤는데 아무 이상이 없이 잘되고 있습니다~!
다른 사이트 설치 해 봤는데 아무 이상이 없이 잘되고 있습니다~!
아직 적용 못했습니다.
다음 홈페이지 만들때 적용해 볼께요.
도움 주셔서 감사드립니다.
다음 홈페이지 만들때 적용해 볼께요.
도움 주셔서 감사드립니다.