아이콘 공유 메모장 질문이요 ... 정보
아이콘 공유 메모장 질문이요 ...관련링크
본문
http://sir.co.kr/bbs/tb.php/g4_skin_board/13819
어제 올라온 요 스킨을 적용해 보았는데요 ....
요걸 최신글에도 적용해서
올린 아이콘이랑 내용을 출력해 줄려면 어떻게 해야 하는지 알려 주시면 정말 감사 하겠습니다...
어제 올라온 요 스킨을 적용해 보았는데요 ....
요걸 최신글에도 적용해서
올린 아이콘이랑 내용을 출력해 줄려면 어떻게 해야 하는지 알려 주시면 정말 감사 하겠습니다...
댓글 전체


게시판 리스트나 최신글이나 크게 다른 것은 없습니다.

내용은...
<?=$list[$i][wr_content]?>
<?=$list[$i][wr_content]?>
안먹히는데요 ㅜ.ㅜ

예제
http://www.morssola.com/test.php
코드
latest.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
for ($i=0; $i<count($list); $i++) {
// 파일 출력
for ($j=0; $j<=count($list[$i][file]); $j++) {
//썸네일 코드 시작
$data_path = $g4['path'] . "/data/file/{$bo_table}";//라이브러리 파일 참조
$filename = $list[$i][file][$j][file]; //파일명
$thumb = $data_path.'/'.$filename; //파일 URL
if ($filename) {
echo "<IMG src=\"{$thumb}\" style=\"CURSOR: hand;\" name='target_resize_image[]'><p>";
}
}
}
?>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('100');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
http://www.morssola.com/test.php
코드
latest.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
for ($i=0; $i<count($list); $i++) {
// 파일 출력
for ($j=0; $j<=count($list[$i][file]); $j++) {
//썸네일 코드 시작
$data_path = $g4['path'] . "/data/file/{$bo_table}";//라이브러리 파일 참조
$filename = $list[$i][file][$j][file]; //파일명
$thumb = $data_path.'/'.$filename; //파일 URL
if ($filename) {
echo "<IMG src=\"{$thumb}\" style=\"CURSOR: hand;\" name='target_resize_image[]'><p>";
}
}
}
?>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('100');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>