Hi
$(window).load(function(){
var p = 0;
function moveit(target,shift) {
p += 0.01;
var r = 135;
var xcenter = 700;
var ycenter = 350;
var newLeft = Math.floor(xcenter + (r * Math.sin(p + (shift || 0))));
var newTop = Math.floor(ycenter + (r * Math.cos(p + (shift || 0))));
target.animate({
top: newTop,
left: newLeft,
}, 35, function() {
moveit(target,shift)
});
}
$(document).ready(function() {
moveit($("#master"),0);
moveit($("#add"),1);
moveit($("#entry"),2);
moveit($("#display"),3);
moveit($("#exit"),4) ;
});
$(this).hover (
function()
{
$(this).stop(true,true).animate({top:0,left:0},35);
}
)
});
The above code is working properly with rotating the content. but the hover event is not working properly i want when mouse is over on any link then cicular motion stoppped so please help to solve this.