휠로 이미지 크기 제어

· 18년 전 · 1464
돌아다니다 재밌는 소스 발견

이미지 위에서 휠을 돌려 보세요.
이미지의 크기가 변합니다.

<script> function resizepic(thispic) { if(thispic.width>570) thispic.width=570; } function bbimg(o) { var zoom=parseInt(o.style.zoom, 10)||100; zoom+=event.wheelDelta/12; if (zoom>0) o.style.zoom=zoom+'%'; return false; } function CheckComment(){ fcm.submit(); fcm.s.disabled=true; } function AddFav() { window.external.AddFavorite(location.href,document.title) } </script> <div style="width:640px; overflow: hidden;"> <A href="http://ec.ne.kr" target=_blank><IMG onmousewheel="return bbimg(this)" alt="" src="http://ec.ne.kr/logo.gif" onload=resizepic(this) border=0></A><BR></div>

 

[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 1,785
18년 전 조회 2,190
18년 전 조회 5,297
18년 전 조회 3,010
18년 전 조회 2,570
18년 전 조회 3,240
18년 전 조회 2,464
18년 전 조회 2,821
18년 전 조회 5,851
18년 전 조회 2,601
18년 전 조회 1,999
18년 전 조회 2,629
18년 전 조회 1,465
18년 전 조회 9,775
18년 전 조회 4,443
18년 전 조회 3,268
18년 전 조회 1,796
18년 전 조회 3,587
18년 전 조회 2,270
18년 전 조회 3,706
18년 전 조회 5,153
18년 전 조회 3,818
18년 전 조회 2,663
18년 전 조회 2,925
18년 전 조회 2,434
🐛 버그신고