Advertisement
Guest User

Untitled

a guest
Jul 30th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if(ev.clientY < ($(window).height() - 330) && ev.clientX < ($(window).width() - 220)) {
  2. $activeDiv.css({
  3. 'top': ev.clientY + 10,
  4. 'left': ev.clientX + 10
  5. });
  6. }
  7. else {
  8. if(ev.clientY > ($(window).height() - 330)) {
  9. $activeDiv.css({
  10. 'top': ev.clientY - 310
  11. });
  12. }
  13. if(ev.clientX > ($(window).width() - 220)) {
  14. $activeDiv.css({
  15. 'top': ev.clientX - 230
  16. });
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement