Contents

조회 수 7473 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

IMG 태그 안에 삽입하여 해당 이미지 사이즈를 동적으로 조정

<html>
<head>
<title>image resize</title>
<style>
body,table,tr,td {font-size:9pt;}
</style>

<script>
function img_resize(img){
    var mywidth = 200;

    if( img.width > mywidth ){
        r = mywidth / img.width;
        w = img.width * r;
        h = img.height * r;

        img.width = w;
        img.height = h;
    }
}
</script>
</head>

<body>

<table border=0 cellpadding=0 cellspacing=0>
<tr>
        <td><img src="test.jpg" border=0 onLoad="img_resize(this);"></td>
</tr>
</table>

</body>
</html>


?

  1. [js] 네이버에서 그림 퍼올 때.. URL Encoding 관련ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views7222
    Read More
  2. [php] 그래프 그리는 프로그램..

    Date2013.04.23 CategoryDevelop Byhooni Views8471
    Read More
  3. [c#] 툴바 소스.. 개인적으로 만드는거..

    Date2013.04.23 CategoryDevelop Byhooni Views3304
    Read More
  4. [js] 부모창에서 자식창으로 문자열 전달..

    Date2013.04.23 CategoryDevelop Byhooni Views7458
    Read More
  5. [js] 이미지 사이즈를 동적으로 조절..

    Date2013.04.23 CategoryDevelop Byhooni Views7473
    Read More
  6. [c++] 가짜 인증서(하나은행) 프로그램

    Date2013.04.23 CategoryDevelop Byhooni Views10760
    Read More
  7. [c++] 디렉토리 내의 파일 찾기 FindFirstFile() 함수

    Date2013.04.23 CategoryDevelop Byhooni Views20583
    Read More
  8. [c++] 웹폼(webform)전송과 http 파일 업로드 샘플

    Date2013.04.23 CategoryDevelop Byhooni Views33076
    Read More
  9. [doc] 유료 방송 제어 시스템 (CAS) 발표자료

    Date2013.04.23 CategoryDevelop Byhooni Views8508
    Read More
  10. [doc] 테크니컬 레포트 (BHO 취약점을 이용한 공격)

    Date2013.04.23 CategoryDevelop Byhooni Views27082
    Read More
  11. OPT와 CAS에 대한 자료.. (교수님 메일로 보내드린 자료..)

    Date2013.04.23 CategoryDevelop Byhooni Views13923
    Read More
  12. 스파이웨어(BHO) 탐지하는 방법..

    Date2013.04.23 CategoryEtc Byhooni Views44409
    Read More
Board Pagination Prev 1 ... 45 46 47 48 49 50 51 52 53 54 ... 98 Next
/ 98