<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>10秒后显示图片</title>
<script>
window.οnlοad=function(){
window.setTimeout("xianshi()",10000);
}
function xianshi(){
document.getElementById("imgs").style.display="block";
}
</script>
</head>
<body>
<img id="imgs"src="images/6.jpg" style="display: none">
</body>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>10秒后显示图片</title>
<script>
window.οnlοad=function(){
window.setTimeout("xianshi()",10000);
}
function xianshi(){
document.getElementById("imgs").style.display="block";
}
</script>
</head>
<body>
<img id="imgs"src="images/6.jpg" style="display: none">
</body>
</html>
图片内容涉及到肖像问题,我就不上传运行的结果了 自己复制代码 自己弄图片