노니맨님의 블랙갤러리 스크롤 최신글 적용후 문제점을 알수 없어서 질문드립니다. 정보
노니맨님의 블랙갤러리 스크롤 최신글 적용후 문제점을 알수 없어서 질문드립니다.관련링크
http://wawait.mireene.com
145회 연결
본문
까만화면만 보입니다...
정말 초보는 힙드네요..
고수님들 부탁드립니다.
적용소스(홈피 http://wawait.mireene.com)
배경은 백색으로 했습니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/menu.lib.php");
include_once("$g4[path]/head.php");
include_once("$g4[path]/tail.sub.php");
$g4['title'] = "";
?>
<!-- 메인화면 최신글 시작 -->
<table width="634" cellpadding=0 cellspacing=0 height="265">
<tr>
<td valign=top colspan="3">
</td>
</tr>
<tr style="border-width:1; border-style:solid;">
<td height="27" valign="top" colspan="3">
<TABLE cellSpacing=0 cellPadding=0 width="648" align="center">
<TR>
<TD id=eventFlash width=295
background="../images/main_02.gif">
배경은 백색으로 했습니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/menu.lib.php");
include_once("$g4[path]/head.php");
include_once("$g4[path]/tail.sub.php");
$g4['title'] = "";
?>
<!-- 메인화면 최신글 시작 -->
<table width="634" cellpadding=0 cellspacing=0 height="265">
<tr>
<td valign=top colspan="3">
</td>
</tr>
<tr style="border-width:1; border-style:solid;">
<td height="27" valign="top" colspan="3">
<TABLE cellSpacing=0 cellPadding=0 width="648" align="center">
<TR>
<TD id=eventFlash width=295
background="../images/main_02.gif">
<a href="/home/order.htm" target="_self"><OBJECT id=daumActiveXObject37
codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0
type=application/x-shockwave-flash height=240 width=295
classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 name=daumActiveXObject37>
<PARAM NAME="_cx" VALUE="7805">
<PARAM NAME="_cy" VALUE="6350">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="movie" VALUE="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf">
<PARAM NAME="src" VALUE="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf">
<PARAM NAME="WMode" VALUE="Transparent">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="0">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="always">
<PARAM NAME="Scale" VALUE="NoScale">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAddress" VALUE="">
<PARAM NAME="ProfilePort" VALUE="0">
<embed id="daumActiveXObject58" name="daumActiveXObject58"
type="application/x-shockwave-flash" width="295" height="240"
movie="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf"
src="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf"
Quality="High" WMode="Transparent" AllowScriptAccess="always" BGColor="FFFFFF"
FlashVars / Play="-1" Loop="-1" SAlign Menu="0" Base Scale="NoScale" DeviceFont="0" EmbedMovie="0" SWRemote MovieData SeamlessTabbing="1" Profile="0" ProfileAddress ProfilePort="0"></OBJECT></a></TD>
<TD width="353" valign="middle"><IMG height="236"
src="images/main_01.gif" width="358"
useMap="#Map2" border=0></TD>
</TR>
</TABLE>
</td>
</tr>
<tr style="border-width:1; border-color:rgb(153,153,153); border-style:solid;">
<td height="7" valign="top" colspan="2">
</td>
<td width="350" height="7" valign="top">
<p></p>
</td>
</tr>
<tr style="border-width:1; border-color:rgb(153,153,153); border-style:solid;">
<td width="301" height="12" valign="top"><?=latest("vozzang_latest_blue_01", "admin_01", 1, 25);?></td>
<td width="4" height="12" valign="top"> </td>
<td width="350" height="12" valign="top">
<p align="center"><? include_once("tap_menu.php");?></p>
</td>
</tr>
</table>
<table border="0" width="67%" cellpadding="0" cellspacing="0">
<tr>
<td width="656"> 이부분을 적용 -----><?
echo latest("black_scroll",admin_06, 2, 20);
echo "<p>\n";
codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0
type=application/x-shockwave-flash height=240 width=295
classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 name=daumActiveXObject37>
<PARAM NAME="_cx" VALUE="7805">
<PARAM NAME="_cy" VALUE="6350">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="movie" VALUE="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf">
<PARAM NAME="src" VALUE="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf">
<PARAM NAME="WMode" VALUE="Transparent">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="0">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="always">
<PARAM NAME="Scale" VALUE="NoScale">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAddress" VALUE="">
<PARAM NAME="ProfilePort" VALUE="0">
<embed id="daumActiveXObject58" name="daumActiveXObject58"
type="application/x-shockwave-flash" width="295" height="240"
movie="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf"
src="http://files.hanmail.net/hanmail/event/0606/xpeed_search2/powercomm_daum_060601.swf"
Quality="High" WMode="Transparent" AllowScriptAccess="always" BGColor="FFFFFF"
FlashVars / Play="-1" Loop="-1" SAlign Menu="0" Base Scale="NoScale" DeviceFont="0" EmbedMovie="0" SWRemote MovieData SeamlessTabbing="1" Profile="0" ProfileAddress ProfilePort="0"></OBJECT></a></TD>
<TD width="353" valign="middle"><IMG height="236"
src="images/main_01.gif" width="358"
useMap="#Map2" border=0></TD>
</TR>
</TABLE>
</td>
</tr>
<tr style="border-width:1; border-color:rgb(153,153,153); border-style:solid;">
<td height="7" valign="top" colspan="2">
</td>
<td width="350" height="7" valign="top">
<p></p>
</td>
</tr>
<tr style="border-width:1; border-color:rgb(153,153,153); border-style:solid;">
<td width="301" height="12" valign="top"><?=latest("vozzang_latest_blue_01", "admin_01", 1, 25);?></td>
<td width="4" height="12" valign="top"> </td>
<td width="350" height="12" valign="top">
<p align="center"><? include_once("tap_menu.php");?></p>
</td>
</tr>
</table>
<table border="0" width="67%" cellpadding="0" cellspacing="0">
<tr>
<td width="656"> 이부분을 적용 -----><?
echo latest("black_scroll",admin_06, 2, 20);
echo "<p>\n";
?> <---적용부분입니다. 배경은 검정에서 백색으로 바꿨습니다. </td>
</tr>
</table>
<p><?
include_once("./_tail.php");
?></p>
</tr>
</table>
<p><?
include_once("./_tail.php");
?></p>
댓글 전체
스킨 파일도 올리세요. (black_scroll)
우선은 이것부터 해 보세요.
echo latest("black_scroll", "admin_06", 2, 20);
echo latest("black_scroll", "admin_06", 2, 20);
감사합니다...
위의 방법으로 해도 않되구요..
black_scroll 최근갤러리 소스는 아래와 같습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$sliderwidth=650;// 스크롤러의 가로크기
$img_width=150 ;// 이미지의 폭
$img_height=110 ;// 이미지의 높이
$sliderheight=130 ;// 스크롤러의 높이 ; 이미지높이보다 조금 길게
$slidespeed=4 ;// 스크롤 속도 (클수록 빠릅니다 1-10)
$slidebgcolor="#ffffff" ;// 배경색상
?>
<table width="<?=$sliderwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr><td width=23 height=35><img src='<?=$latest_skin_path?>/img/top_left.gif' border=0></td>
<td width=100% height=20 align="left" background="<img src='<?=$latest_skin_path?>/img/top_bg.gif"><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color=#FF8900><?=$board[bo_subject]?></font></a></strong></td>
<td align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sfl=wr_8&stx=y'><img src='<?=$latest_skin_path?>/img/top_more.gif' border=0></a></td>
</tr>
<tr>
<td colspan=3 height=1 bgcolor=#3F3F3F></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0>
<tr><td bgcolor=yellow>
<script language="JavaScript1.2">
var sliderwidth=<?=$sliderwidth?>;
var sliderheight=<?=$sliderheight?> ;
var slidespeed=<?=$slidespeed?>;
slidebgcolor="<?=$slidebgcolor?>";
var leftrightslide=new Array()
var finalslide=''
<?
echo "leftrightslide[0]=\"<table border=0 cellpadding=0 cellspacing=0><tr>\";"."\r";
$c_cnt=0;
for ($i=0; $i<count($list); $i++) { //@@@@@@@@@@@@@@@@@@@@@@@
if( $list[$i][wr_8] == 'y') {
$c_cnt=$c_cnt+1;
$data_temp ="";
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$img="<img src='".$img."' width='".$img_width."' height='".$img_height."' border='0' align='absmiddle' title='".$title."'>";
$data_temp ="";
$data_temp .="leftrightslide[".$c_cnt."]=\"";
$data_temp .="<td style='padding-left:5pt;padding-right:5pt;'>";
$data_temp .="<TABLE cellSpacing=1 cellPadding=0 bgColor=#00000 border=0><TR><TD> <TABLE cellSpacing=3 cellPadding=0 bgColor=#000000 border=0><TR><TD align=middle bgColor=#000000 >"; //테두리선
//실제내용시작
$data_temp .="<table border=0 cellpadding=0 cellspacing=0><tr><td align=center ><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$img}</a></td></tr><tr><td align=center valign=middle> <a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><font color=#ffffff>{$list[$i][subject]}</font></a> </td></tr></table>";
//실제내용끝
$data_temp .="</td></tr></table></td></tr></table>"; //테두리선
$data_temp .="</td>";
$data_temp .="\";"."\r";
echo $data_temp ;
}}//@@@@@@@@@@@@@@@@@@@
echo "leftrightslide[".($c_cnt+1)."]=\"</tr></table>\";";
?>
var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(" ")+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000">'+leftrightslide+'</span>')
var actualwidth='0' ;
var cross_slide, ns_slide
function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+0
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+0
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",40)
}
window.onload=fillup
function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+0
if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+0
}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+0
if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+0
}
}
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0;top:0;width:'+sliderwidth+';height:'+sliderheight+';"></div>')
write('<div id="test3" style="position:absolute;left:-1000;top:0;width:'+sliderwidth+';height:'+sliderheight+';"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>
</td></tr>
</table>
위의 방법으로 해도 않되구요..
black_scroll 최근갤러리 소스는 아래와 같습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$sliderwidth=650;// 스크롤러의 가로크기
$img_width=150 ;// 이미지의 폭
$img_height=110 ;// 이미지의 높이
$sliderheight=130 ;// 스크롤러의 높이 ; 이미지높이보다 조금 길게
$slidespeed=4 ;// 스크롤 속도 (클수록 빠릅니다 1-10)
$slidebgcolor="#ffffff" ;// 배경색상
?>
<table width="<?=$sliderwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr><td width=23 height=35><img src='<?=$latest_skin_path?>/img/top_left.gif' border=0></td>
<td width=100% height=20 align="left" background="<img src='<?=$latest_skin_path?>/img/top_bg.gif"><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color=#FF8900><?=$board[bo_subject]?></font></a></strong></td>
<td align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sfl=wr_8&stx=y'><img src='<?=$latest_skin_path?>/img/top_more.gif' border=0></a></td>
</tr>
<tr>
<td colspan=3 height=1 bgcolor=#3F3F3F></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0>
<tr><td bgcolor=yellow>
<script language="JavaScript1.2">
var sliderwidth=<?=$sliderwidth?>;
var sliderheight=<?=$sliderheight?> ;
var slidespeed=<?=$slidespeed?>;
slidebgcolor="<?=$slidebgcolor?>";
var leftrightslide=new Array()
var finalslide=''
<?
echo "leftrightslide[0]=\"<table border=0 cellpadding=0 cellspacing=0><tr>\";"."\r";
$c_cnt=0;
for ($i=0; $i<count($list); $i++) { //@@@@@@@@@@@@@@@@@@@@@@@
if( $list[$i][wr_8] == 'y') {
$c_cnt=$c_cnt+1;
$data_temp ="";
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$img="<img src='".$img."' width='".$img_width."' height='".$img_height."' border='0' align='absmiddle' title='".$title."'>";
$data_temp ="";
$data_temp .="leftrightslide[".$c_cnt."]=\"";
$data_temp .="<td style='padding-left:5pt;padding-right:5pt;'>";
$data_temp .="<TABLE cellSpacing=1 cellPadding=0 bgColor=#00000 border=0><TR><TD> <TABLE cellSpacing=3 cellPadding=0 bgColor=#000000 border=0><TR><TD align=middle bgColor=#000000 >"; //테두리선
//실제내용시작
$data_temp .="<table border=0 cellpadding=0 cellspacing=0><tr><td align=center ><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$img}</a></td></tr><tr><td align=center valign=middle> <a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><font color=#ffffff>{$list[$i][subject]}</font></a> </td></tr></table>";
//실제내용끝
$data_temp .="</td></tr></table></td></tr></table>"; //테두리선
$data_temp .="</td>";
$data_temp .="\";"."\r";
echo $data_temp ;
}}//@@@@@@@@@@@@@@@@@@@
echo "leftrightslide[".($c_cnt+1)."]=\"</tr></table>\";";
?>
var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(" ")+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000">'+leftrightslide+'</span>')
var actualwidth='0' ;
var cross_slide, ns_slide
function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+0
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+0
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",40)
}
window.onload=fillup
function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+0
if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+0
}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+0
if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+0
}
}
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0;top:0;width:'+sliderwidth+';height:'+sliderheight+';"></div>')
write('<div id="test3" style="position:absolute;left:-1000;top:0;width:'+sliderwidth+';height:'+sliderheight+';"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>
</td></tr>
</table>