그림은 네이버 초기화면의 중간 아래 부분입니다.
그림의 화살표에 있는 아이콘처럼 동영상이면 동영상, 다른 거면 다른 거 아이콘을 썸네일 위에 올리는 방법이 있나요?
현재는 동영상만 표시하면 되거든요..
방법을 아시는 분은 알려 주시면 감사하겠습니다.
그림의 화살표에 있는 아이콘처럼 동영상이면 동영상, 다른 거면 다른 거 아이콘을 썸네일 위에 올리는 방법이 있나요?
현재는 동영상만 표시하면 되거든요..
방법을 아시는 분은 알려 주시면 감사하겠습니다.
첨부파일
댓글을 작성하시려면 로그인이 필요합니다.
댓글 7개
아이콘을 이미지태크로 올리시면, 가능하겠네요.
아직 해보지 않았지만 그렇게 하면 되겠군요^^
그런데 보통 ucc처럼 반투명 아이콘을 올리는 방법은 따로 있나요?
반투명이라면...... 포토샵이나, 이미지툴에서, transparent값을 50%나 그 밑으로 적용시키셔야
할듯..
이미지만 뜨고 백그라운드는 안나오는군요..
png라 그런가 해서 gif로 다시했는데 마찬가지네요
이런... 실력이 짧아놔서.....
$img_png = "$g4[path]/img/video.gif";
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$all_cnt][file][0][file]);
if (!file_exists($img) || !$list[$all_cnt][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$stitle = cut_str($list[$all_cnt][subject],$cut_len,"...");
echo <<<HEREDOC
<td width='<?=$subject_len?>' valign='top' align='center'>
<table width='<?=$subject_len?>' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='<?=$subject_len?>' height='5' align='center'></td>
</tr>
<tr>
<td width='<?=$subject_len?>' height='<?=$height?>' align='center' background='<?=$img?>'>
<div style='width:<?=$subject_len?>px;height:<?=$height?>px;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'><img src='{$img_png}' width='$subject_len' height='$height' border='0' align='absmiddle' title='$title'></a>
그런데 백그라운드라
<img src='{$img_png}' width='$subject_len' height='$height'
사이즈 조정이 안되니 문제가 있군요....
이걸 해결할 방법은 없을까요
<div style='width:<?=$subject_len?>px;height:<?=$height?>px;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'><img src='{$img_png}' width='$subject_len' height='$height' border='0' align='absmiddle' title='$title'></a><div>
<div>로 한번 더 감싸면서 스타일에 여러 시도를 해보세요^^
position:absolute...등등