User:Allisontu/common.js: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) (Created page with "$("#wpSave").hover(function() { $(this).css('top', rand(1,1000) + 'px').css('left', rand(1,1000) + 'px'); });") |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
$("#wpSave").hover(function() { $(this).css('top', | $("#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'); });