js 怎么让图片出现、消失
我想让img1出现5s然后就消失,可这么写img1没有消失。请问是什么问题呢?<scriptlanguage="javascript">functionShowImg(S...
我想让img1出现5s然后就消失,可这么写img1没有消失。
请问是什么问题呢?
<script language="javascript">
function ShowImg(SampleImg){
SampleImg.visibility = "visible";
}
function HideImg(SampleImg){
SampleImg.visibility = "hidden";
}
var img1 = document.getElementById("img1");
ShowImg(img1);
HideImg(img1);
setTimeout("HideImg(img1)", 5000);
</script> 展开
请问是什么问题呢?
<script language="javascript">
function ShowImg(SampleImg){
SampleImg.visibility = "visible";
}
function HideImg(SampleImg){
SampleImg.visibility = "hidden";
}
var img1 = document.getElementById("img1");
ShowImg(img1);
HideImg(img1);
setTimeout("HideImg(img1)", 5000);
</script> 展开
1个回答
2015-08-26
展开全部
<script language="javascript">
function ShowImg(SampleImg){
SampleImg.style.visibility = "visible";
}
function HideImg(SampleImg){
SampleImg.style.visibility = "hidden";
}
var img1 = document.getElementById("img1");
ShowImg(img1);
HideImg(img1);
setTimeout("HideImg(img1)", 5000);
</script>
function ShowImg(SampleImg){
SampleImg.style.visibility = "visible";
}
function HideImg(SampleImg){
SampleImg.style.visibility = "hidden";
}
var img1 = document.getElementById("img1");
ShowImg(img1);
HideImg(img1);
setTimeout("HideImg(img1)", 5000);
</script>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询