You have 3 options for this.
1) Write your own program (the hardest way).
2) Manually get it through viewing the page source.
3) Using an out-of-the-box, ready to go software, such as HTTrack.
If the background happens to be an image, then you'll need that very same image stored locally or accessible through a URL.