Comment to 'Site with multiple Background options?'
  • JavaScript can't be inserted into Custom Styles block, it's for CSS only. Also I recommend another approach. Add "raw" block to your page with content like this:

    <style>
    insert custom CSS styles here for background image
    </style>