file.js
$("#logo").rotate({
bind:
{
mouseover: function()
{$(this).rotate({ animateTo: 180 })},
mouseout: function()
{$(this).rotate({ animateTo: 0 })}
}
});
HTML
<script type="text/javascript" src="../script/file.js"></script>
<img id="logo" src="../images/logo.png" alt="none" />
이 코드에서 잘못된 있나요를 사용하여 이미지 onMouseover와 기능을 회전 할 필요가
? BTW, 나는이 코드를 인터넷에서 발견했다. JavaScript에서 rotate()와 같은 함수 호출이 없으면 어떻게 작동합니까? 내가 이해할 수 있도록 링크를주십시오. 이 :
당신이 http://jsfiddle.net/Db3CW/ – deltree
http://stackoverflow.com/questions/7936396/jquery-rotate-transform – disperse