Advertisement
SergioRP

Moving Background

Mar 23rd, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Agradecimentos a Phoenix
  2. bgCurrent = 3;
  3. bgSpeed = 0;
  4.  
  5. function doBG() {
  6.     bgCurrent += 0.7;
  7.     $("body").css("background-position", +bgCurrent + "px " + bgCurrent + "px");
  8. }
  9. setInterval("doBG()", bgSpeed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement