定时器关闭广告
<!DOCTYPE html>
<html lang="en">
<head></head>
<body>
<img src="images/ad.jpg" alt="" class="ad" />
<script>
var ad = document.querySelector(".ad");
setTimeout(function () {
ad.style.display = "none";
}, 5000);
</script>
</body>
</html>