Quick example:

$(document).ready(function(){
var floater = function(){
         $('img').animate( {'marginTop':(Math.random() * $(window).height())
+ 'px','marginLeft':(Math.random() * $(window).width()) + 'px'},
2000,'linear',function(){
                setTimeout(floater,10);
         } );
}
floater();
});

Hope that can give you someplace to start.

On Jun 29, 4:32 pm, Nic Hubbard <nnhubb...@gmail.com> wrote:
> I have been trying to find a solution to this for a while, but all I
> can find is about style:float which is not what I want.
>
> I would like to animate an image randomly around the screen.  So, it
> could slowly float across the screen, and would randomly choose its
> motion.
>
> Any ideas?

Reply via email to