에디터로 삽이한 이미지... 정보
에디터로 삽이한 이미지...본문
에디터로 삽입한 이미지를
최근게시글에 나타나게 하고싶어요.
좋고 쉬운 방법이 없을까요?
최근게시글에 나타나게 하고싶어요.
좋고 쉬운 방법이 없을까요?
댓글 전체
말씀 하신 곳 수정하였는데도....ㅠㅠ
스킨 소스 보여드릴까요???
스킨 소스 보여드릴까요???
앞으로 새로 작성되는 글들은 적용되지 않는지요??
안되는데..
첨부파일로 첨부하면...미리보기처럼 섬네일이 맞는지는 모르겠지만 화면에 보이구요.
에디트로 삽입한 그림역시 리스트 상에는 잘보이는데..
최근게시글에는 액박으로 나온답니다..물론 첨부를 한 이미지는 잘나오구요...ㅠ
첨부파일로 첨부하면...미리보기처럼 섬네일이 맞는지는 모르겠지만 화면에 보이구요.
에디트로 삽입한 그림역시 리스트 상에는 잘보이는데..
최근게시글에는 액박으로 나온답니다..물론 첨부를 한 이미지는 잘나오구요...ㅠ
최근게시물도 수정해야겠군요;;
해당 스킨 소스입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//이미지 한줄스크롤되는 최신글
?>
<script>
function scroll() {
this.name = "scroll";
this.item = new Array();
this.itemcount = 0;
this.currentspeed = 0;
this.scrollspeed = 50;
this.pausedelay = 1000;
this.pausemouseover = false;
this.stop = false;
this.type = 1;
this.height = 165;
this.width = 210;
this.stopHeight=0;
this.add =function () {
var text = arguments[0];
this.item[this.itemcount] = text;
this.itemcount = this.itemcount + 1;
};
this.start = function () {
this.display();
this.currentspeed = this.scrollspeed;
setTimeout(this.name+'.scroll()',this.currentspeed);
};
this.display =function () {
document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
for(var i = 0; i < this.itemcount; i++) {if ( this.type == 1) {
document.write('<div id="'+this.name+'item'+i+'"style="left:0px;width:'+this.width+';position:absolute;top:'+(this.height*i+1)+'px;">');
document.write(this.item[i]);
document.write('</div>');
}
else if ( this.type == 2 ) {
document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i+1)+'px;width:'+this.width+';position:absolute;top:0px;">');
document.write(this.item[i]);
document.write('</div>');
}
}
document.write('</div>');
};
this.scroll = function () {
this.currentspeed = this.scrollspeed;if ( !this.stop ) {
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;if ( this.type == 1 ) {
obj.top = parseInt(obj.top) - 1;
if ( parseInt(obj.top) <= this.height*(-1) ) obj.top = this.height * (this.itemcount-1);
if ( parseInt(obj.top) == 0 || ( this.stopHeight > 0 && this.stopHeight - parseInt(obj.top) == 0 ) ) this.currentspeed = this.pausedelay;
}
else if ( this.type == 2 ) {
obj.left = parseInt(obj.left) - 1;
if ( parseInt(obj.left) <= this.left*(-1) ) obj.left = this.left* (this.itemcount-1);
if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
}
}
}
window.setTimeout(this.name+".scroll()",this.currentspeed);
};
this.onmouseover = function () {
if ( this.pausemouseover ) {
this.stop = true;}
};
this.onmouseout = function () {
if ( this.pausemouseover ) {
this.stop = false;
}
};
}
</script>
<table width="230" BORDER=0 CELLPADDING=0 CELLSPACING=0 valign="top">
<tr>
<td><img src="<?=$latest_skin_path?>/img/up-1_1.gif" width="230" height="9"></td></tr>
<tr>
<td background="<?=$latest_skin_path?>/img/back-up-1_1.gif" width="230" align="center">
<table width="210" height="31" border="0" cellpadding="0" cellspacing="0">
<tr><td align='center'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><IMG src="<?=$latest_skin_path?>/img/title.gif" border=0 width="210" height="31"></a></td></tr></table>
<table border="0" cellpadding="1" cellspacing="0" bgcolor='#E1E1E1'>
<tr>
<td><table width="210" height="165" border="0" cellpadding="3" cellspacing="0" bgcolor='#FFFFFF'>
<tr>
<td align='center'>
<script>
cont = new scroll();
cont.name = "cont";
cont.height = 165;
cont.width = 210;
cont.scrollspeed = 20;
cont.pausedelay = 3000;
cont.pausemouseover = true;
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image))
$data_path = $g4[path]."/data/file/$bo_table";
$thum_path = $data_path.'/thumb'; //썸네일경로
$thumb = $thum_path.'/'.$list[$i][wr_id];
if ( file_exists($thumb) )
{ // 썸네일
$img = "<img src='$thumb' width='210' height='165' border='0'>";
}
else {
$img = "<img src='$g4[path]/data/file/$bo_table/$image' width='210' height='165' border='0'>";
}
?>
cont.add("<a href='<?=$list[$i][href]?>'><?=$img?></a>");
<?}?>
cont.start(); </script>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr><td><img src="<?=$latest_skin_path?>/img/end-1_1.gif" width="230" height="8"></td></tr>
</table>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//이미지 한줄스크롤되는 최신글
?>
<script>
function scroll() {
this.name = "scroll";
this.item = new Array();
this.itemcount = 0;
this.currentspeed = 0;
this.scrollspeed = 50;
this.pausedelay = 1000;
this.pausemouseover = false;
this.stop = false;
this.type = 1;
this.height = 165;
this.width = 210;
this.stopHeight=0;
this.add =function () {
var text = arguments[0];
this.item[this.itemcount] = text;
this.itemcount = this.itemcount + 1;
};
this.start = function () {
this.display();
this.currentspeed = this.scrollspeed;
setTimeout(this.name+'.scroll()',this.currentspeed);
};
this.display =function () {
document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
for(var i = 0; i < this.itemcount; i++) {if ( this.type == 1) {
document.write('<div id="'+this.name+'item'+i+'"style="left:0px;width:'+this.width+';position:absolute;top:'+(this.height*i+1)+'px;">');
document.write(this.item[i]);
document.write('</div>');
}
else if ( this.type == 2 ) {
document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i+1)+'px;width:'+this.width+';position:absolute;top:0px;">');
document.write(this.item[i]);
document.write('</div>');
}
}
document.write('</div>');
};
this.scroll = function () {
this.currentspeed = this.scrollspeed;if ( !this.stop ) {
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;if ( this.type == 1 ) {
obj.top = parseInt(obj.top) - 1;
if ( parseInt(obj.top) <= this.height*(-1) ) obj.top = this.height * (this.itemcount-1);
if ( parseInt(obj.top) == 0 || ( this.stopHeight > 0 && this.stopHeight - parseInt(obj.top) == 0 ) ) this.currentspeed = this.pausedelay;
}
else if ( this.type == 2 ) {
obj.left = parseInt(obj.left) - 1;
if ( parseInt(obj.left) <= this.left*(-1) ) obj.left = this.left* (this.itemcount-1);
if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
}
}
}
window.setTimeout(this.name+".scroll()",this.currentspeed);
};
this.onmouseover = function () {
if ( this.pausemouseover ) {
this.stop = true;}
};
this.onmouseout = function () {
if ( this.pausemouseover ) {
this.stop = false;
}
};
}
</script>
<table width="230" BORDER=0 CELLPADDING=0 CELLSPACING=0 valign="top">
<tr>
<td><img src="<?=$latest_skin_path?>/img/up-1_1.gif" width="230" height="9"></td></tr>
<tr>
<td background="<?=$latest_skin_path?>/img/back-up-1_1.gif" width="230" align="center">
<table width="210" height="31" border="0" cellpadding="0" cellspacing="0">
<tr><td align='center'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><IMG src="<?=$latest_skin_path?>/img/title.gif" border=0 width="210" height="31"></a></td></tr></table>
<table border="0" cellpadding="1" cellspacing="0" bgcolor='#E1E1E1'>
<tr>
<td><table width="210" height="165" border="0" cellpadding="3" cellspacing="0" bgcolor='#FFFFFF'>
<tr>
<td align='center'>
<script>
cont = new scroll();
cont.name = "cont";
cont.height = 165;
cont.width = 210;
cont.scrollspeed = 20;
cont.pausedelay = 3000;
cont.pausemouseover = true;
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image))
$data_path = $g4[path]."/data/file/$bo_table";
$thum_path = $data_path.'/thumb'; //썸네일경로
$thumb = $thum_path.'/'.$list[$i][wr_id];
if ( file_exists($thumb) )
{ // 썸네일
$img = "<img src='$thumb' width='210' height='165' border='0'>";
}
else {
$img = "<img src='$g4[path]/data/file/$bo_table/$image' width='210' height='165' border='0'>";
}
?>
cont.add("<a href='<?=$list[$i][href]?>'><?=$img?></a>");
<?}?>
cont.start(); </script>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr><td><img src="<?=$latest_skin_path?>/img/end-1_1.gif" width="230" height="8"></td></tr>
</table>