Thanks for replying so quickly.
I have used this code a few times on another website-builder, and it worked fine. I used filenames of images on my computer (one was websitebackground3.jpg
).
So if I wanted to use one of these images on WordPress, I would have to upload it to the directory?
Also, I tested the code today on W3Schools, where it had worked before, and it does nothing now.