웹프로그래밍

Global It Leader!!


그누보드


 
 

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

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 12,227회 작성일 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
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
31 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4058 06-14
30 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5734 08-08
29 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3903 12-25
28 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4786 07-22
27 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3897 07-21
26 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3802 05-06
25 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4485 05-06
24 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3743 04-15
23 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4710 09-12
22 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4516 03-21
21 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4518 02-14
20 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7170 02-14
19 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4539 01-30
18 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3929 08-20
17 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4325 06-24
16 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4410 03-27
15 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4235 03-26
14 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4339 03-20
13 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3839 03-13
12 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4351 02-25