YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Tech > Javascript
검색
멤버이름    오토
비밀번호 
 

실시간 이미지 불러와 width 와 height 가져오기

페이지 정보

작성자 MintState 댓글 0건 조회 14,816회 작성일 08-10-31 11:53

본문

실시간 이미지 불러와 width 와 height 가져오기

<script language="JavaScript" type="text/JavaScript">
<!--
function img_resize() { 
    img=Frm.img_id.src;
    foto1= new Image(); 
    foto1.src=(img);  
    if(foto1.width>500){
     Frm.img_id.width="500";
    }else{
     Frm.img_id.width=foto1.width;
    }
} 

function img_change(file_nm_val)
{
  img_url="/upload_data/" + file_nm_val;
document.all['img_id'].src=img_url
img=Frm.img_id.src;
    foto1= new Image(); 
    foto1.src=(img_url);  
    if(foto1.width>500){
     Frm.img_id.width="500";
    }else{
     Frm.img_id.width=foto1.width;
    }
}
// -->
</script> 

<img src="/upload_data/imgname.gif" name="img_id" width="410" height="305" class="imgborder" id="img_id">
<img src="/upload_data/img_name2.gif" width="130" height="90" border="0" onMouseOver="img_change('img_name2.gif')" style="cursor:hand">

댓글목록

등록된 댓글이 없습니다.

Total 178건 2 페이지
Javascript 목록
번호 제목 글쓴이 조회 날짜
158 MintState 16366 01-13
157 MintState 16357 11-17
156 MintState 16289 02-13
155 MintState 16149 11-17
154 MintState 16145 11-17
153 MintState 16140 11-17
152 MintState 16129 01-05
151 MintState 16092 11-17
150 MintState 15988 10-31
149 MintState 15956 11-17
148
세로롤링 댓글+ 1
MintState 15891 11-17
147 MintState 15874 11-17
146 MintState 15626 10-31
145 MintState 15606 04-29
144 MintState 15593 02-05
143 MintState 15574 11-17
142 MintState 15415 10-23
141 MintState 15330 11-17
140 MintState 15274 03-11
139 MintState 15085 04-11
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™