휠로 이미지 크기 제어 > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

휠로 이미지 크기 제어 정보

기타 휠로 이미지 크기 제어

본문

돌아다니다 재밌는 소스 발견

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

<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에서 이동 됨]
추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로