매번 적당한 이미지 크기를 찾기 힘들어서 퍼센트로 제어 해 봤습니다~
예로 가로 1000 세로 600 짜리 이미지면 옆에 퍼센트로 10을 입력하면
크기가 가로 100 세로 60 으로 변합니다!
별거 아닌 보잘것 없는 팁이지만 한번 올려봅니다.. ^^;
먼저 제로보드 폴더 내에 있는 imga_box.php 파일을 열어주세요 ^^
1. 이렇게 되있는 부분을 찾아서
———————————————————
function imagecheck(str,iwidth,iheight) {
document.imageList.i_filename.value=str;
document.imageList.i_width.value=iwidth;
document.imageList.i_height.value=iheight;
var obj=document.all[‘inputTable’];
obj.style.visibility=’visible’;
}
———————————————————
} 안에 이걸 을 넣어줍니다.
———————————————————
document.imageList.iv_width.value=iwidth;
document.imageList.iv_height.value=iheight;
———————————————————
넣으면 이렇게 되겠죠
———————————————————
function imagecheck(str,iwidth,iheight) {
document.imageList.i_filename.value=str;
document.imageList.i_width.value=iwidth;
document.imageList.i_height.value=iheight;
document.imageList.iv_width.value=iwidth;
document.imageList.iv_height.value=iheight;
var obj=document.all[‘inputTable’];
obj.style.visibility=’visible’;
}
———————————————————
2. 그리고 쫌 밑에 내려가서 이부분을 찾습니다.
—————————————————————————————–
가로 :
세로 :
—————————————————————————————–
그리고 밑에 이걸 넣습니다. 대략 난잡하죠?
주의!! [% : <input type=input value="100" ~ 어쩌구 저쩌구는 한줄로 꼭 써주셔야 합니다 !!!]
—————————————————————————————–
% :
—————————————————————————————–
넣은 모습은 이러합니다.
—————————————————————————————–
가로 :
세로 :
% :
—————————————————————————————–
에.. 보잘것없이 작은팁인데다가.. 실력이 형편없어서 소스가 저 따위로 깁니다. ^^
그럼 보잘것없지만 잘 사용해주세요~
Leave a Reply