User:Allisontu/common.js: Difference between revisions

Jump to navigation Jump to search
(Created page with "$("#wpSave").hover(function() { $(this).css('top', rand(1,1000) + 'px').css('left', rand(1,1000) + 'px'); });")
 
No edit summary
Line 1: Line 1:
$("#wpSave").hover(function() { $(this).css('top', rand(1,1000) + 'px').css('left', rand(1,1000) + 'px'); });
$("#wpSave").hover(function () {
    $(this).css('top', Math.floor((Math.random() * 1000) + 1) + 'px').css('left', Math.floor((Math.random() * 1000) + 1) + 'px').css('position','absolute');
});

Revision as of 15:57, 24 July 2017

$("#wpSave").hover(function () {
    $(this).css('top', Math.floor((Math.random() * 1000) + 1) + 'px').css('left', Math.floor((Math.random() * 1000) + 1) + 'px').css('position','absolute');
});