Develop
2013.04.23 16:12
[js] 이미지 사이즈를 동적으로 조절..
조회 수 7501 댓글 0
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>
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
673 | Develop | [c] 프로세스 정보 출력하기.. | hooni | 2003.04.23 | 6938 |
672 | Develop | [c] i2osp 임시로.. ㅋㅋ | hooni | 2003.04.23 | 7859 |
671 | Develop | [asem] CMOS 패스워드 알아내기.. 소스.. | hooni | 2003.04.23 | 8754 |
670 | Develop | [c++] namespace 사용 예 | hooni | 2003.04.23 | 8709 |
669 | Develop | [c++] template 사용예 | hooni | 2003.04.23 | 7206 |
668 | Develop | [c] 최대공약수, 최소공배수, 서로소 구하기 (펌) | hooni | 2013.04.23 | 11207 |
667 | Develop | [c++] RSA Sample 4 CPP | hooni | 2013.04.23 | 9248 |
666 | Develop | [js] One Time Pad key generatorㅡ.,ㅡ; | hooni | 2013.04.23 | 6826 |
665 | Develop | [php] 웹 응용프로그램(engines) 모음 | hooni | 2013.04.23 | 7570 |
664 | Develop | [c] 간단한 점 이동 샘플 소스코드 | hooni | 2013.04.23 | 6583 |
663 | Develop | [php] 웹 터미널 & 업로드 소스.. | hooni | 2013.04.23 | 7261 |
662 | Develop | [c] 도스 공격(DoS Attack) 프로그램 | hooni | 2013.04.23 | 11598 |