Skip to content
Advertisement

Tag: background-image

How can I change the background image of an HTML id, via a radio button, using Javascript

I’m working on/struggling with some Javascript for a project. Currently I have only an index.html, which contains five sections, each with their own id, and each with a different background-image allocated to these sections. I have a button in the footer, which when clicked, should change each of these section background-images to a different image. The current background-image for #landingImage

How to add konami code in a website based on html?

I was asked to implement the Konami Code in a website I’m currently working on. It should do the following: Change Background Image Play sound Bring some pop-up What’s the easiest way to achieve this using javascript? Answer Place the code below in a file js/konami.js and reference it in the body of your html file like this: <script src=”js/konami.js”></script>

Advertisement