Code
<script type="text/javascript" src="/js/jqueryrotate.2.1.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
// Функция статичного поворота на 45 градусов
jQuery("#rotate1").rotate(45);
// Постоянное вращение картинки
var angle = 0;
setInterval(function(){
angle+=3;
jQuery("#rotate2").rotate(angle);
},50);
// Поворот при наведении курсора на 180 градусов
jQuery("#rotate3").rotate({
bind:
{
mouseover : function() {
$(this).rotate({animateTo:180})
},
mouseout : function() {
$(this).rotate({animateTo:0})
}
}
});
});
</script>