Top

[Javascript] 마우스 드레그로 이미지 크기 조절. | Web-Programing
김경훈 (admin) | Editor | 2011/12/07 09:17:28 | 조회:6851

마우스 드래그로 이미지 크기를 마음대로 조절 가능한 스크립트.

  1. <html>
  2. <head>
  3. <script>
  4. function resize_Image()
  5. {
  6. resize_X=event.x;
  7. resize_Y=event.y;
  8. event.srcElement.width=resize_X;
  9. event.srcElement.height=resize_Y;
  10. }
  11. </script>
  12. </head>
  13. <body>
  14. <img src="/images/1.png" ondrag="resize_Image()" width="50" height="50">
  15. </body>
  16. </html>



출처 :
http://webjoy.kr/312
공유하기
공유하기
0
0
0


댓글을 불러오는 중입니다.
▲ 이전글 [Javascrip] 주민등록번호 예외처리 김경훈 (admin) 2011-12-09 10:00:25
▼ 다음글 회사 워크샵.. 김경훈 (admin) 2011-12-05 23:41:26