Hi guys,
I wanted to create a page with a simple button which runs away from the user when he tries to click it. Lets call it the Run away button?
Is there a simple 'jQuery' snippet which will allow me to do the same?
Regards, Karan Misra
Hi guys,
I wanted to create a page with a simple button which runs away from the user when he tries to click it. Lets call it the Run away button?
Is there a simple 'jQuery' snippet which will allow me to do the same?
Regards, Karan Misra
$('button').hover(function()
{
$(this).css('top', rand(1,1000) + 'px').css('left', rand(1,1000) + 'px');
});
No plugin needed.