Generation

generate functionMon, 05 Dec 2022

背景に動画を流したい

function myVideoPlay(){ let video = document.getElementById("myVideo"); let body = document.getElementsByTagName("body")[0]; body.style.background = "black"; video.style.display = "block"; video.play(); video.loop = true; video.muted = true; } myVideoPlay();

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant