I'm trying to change the CSS of my website by the user clicking a div and when they do the website's background will turn into a gif, but I don't know how to do that on JavaScript!
here's my code
function easterFun(){
var changeBG = document.getElementById("body");
changeEaster.setAttribute("style","background-image:url(eatser.gif)")
also my div wont do anything when it is clicked. it wont execute this code can someone tell me the problem pls?? Welcome to the Holiday Spirit website!!!
<div id="easter"onclick="easterFun" style = "cursor: pointer"()>Easter!</div>
<div id = "xmas" onclick ="xmasFun()">Christmas</div>
</body>
</html>