我需要旋转使用jQuery的jQuery的onmouseover功能
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功能?顺便说一句,我在互联网上找到了这个代码。 在JavaScript中没有函数调用rotate(),那么它如何工作?请给任何链接,以便我能理解。
如果它看起来像一个愚蠢的事情要问:)
为您http://jsfiddle.net/Db3CW/ – deltree
http://stackoverflow.com/questions/7936396/jquery-rotate-transform – disperse