Advertisement
swaggboi

Untitled

Jun 25th, 2024
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let bodyStyle = document.body.style;
  2.  
  3. switch (new Date().getMonth()) {
  4.     case 10:
  5.         bodyStyle.backgroundImage = "url('/images/halloween_background_1.gif')";
  6.     case 11:
  7.         bodyStyle.backgroundImage = "url('/images/jwsfp1.gif')";
  8.     case 12:
  9.         bodyStyle.backgroundImage = "url('/images/christmas.gif')";
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement