웹프로그래밍

Global It Leader!!


그누보드


 
 

view.skin.php 이미지 사이즈 게시판 크기로 조절하기

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 12,218회 작성일 11-05-11 12:51

본문

<script language="Javascript">
window.onload=function() {
//    resizeBoardImage(<?=(int)$board[bo_image_width]?>); 주석처리
    drawFont();

var target = document.getElementsByName('target_resize_image[]');
<? 
$k=0;
 for ($i=0; $i<=count($view[file]); $i++) {
 if ( ($view[file][$i][image_type] >0 && $view[file][$i][image_type]<4) || $view[file][$i][image_type]==6){ // gif jpg png bmp 인지 확인
 echo "target[$k].tmp_width  ={$view[file][$i][image_width]}; target[$k].tmp_height ={$view[file][$i][image_height]};\n";
  $k++;
     }
    }
?>
}
</script>

안되는 분들은.....이미 onload()함수를 사용하고 있는 부분이 있어서 그렇습니다.

아래와 같이 소스를 수정해 사용하세요.

function img_init(){ 
     drawFont();
     var target = document.getElementsByName('target_resize_image[]');
<? 
$k=0;
 for ($i=0; $i<=count($view[file]); $i++) {
 if ( ($view[file][$i][image_type] >0 && $view[file][$i][image_type]<4) || $view[file][$i][image_type]==6) { // gif jpg png bmp 인지 확인
 echo "target[$k].tmp_width  ={$view[file][$i][image_width]}; target[$k].tmp_height ={$view[file][$i][image_height]};\n";
  $k++;
     }
    }
?>
}

if (window.addEventListener) window.addEventListener("load", img_init, false)
else if (window.attachEvent) window.attachEvent("onload", img_init)

댓글목록

등록된 댓글이 없습니다.

전체 71
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
71 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16970 03-15
70 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16141 04-28
열람중 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12219 05-11
68 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11431 04-28
67 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9443 05-04
66 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7949 04-28
65 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7515 09-29
64 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7156 02-14
63 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5717 08-08
62 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5536 08-09
61 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4774 07-22
60 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4696 09-12
59 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4599 07-16
58 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4529 01-30
57 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4502 03-21
56 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4499 02-14
55 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4475 05-06
54 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4400 03-27
53 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4335 02-25
52 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4328 03-20