页面中有个控件,只有浏览页面超过2分钟的人才能看的见,怎么做啊?
页面中有个控件,用户刚登陆时是看不见的,只有用户登陆时间超过2分钟,这个控件才显示,怎么做啊,求代码,最后25分了
------解决方案-------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> 无标题文档 </title>
<script language= "javascript " type= "text/javascript ">
function showbutton(){
var objbtn=document.getElementById( "hidebutton ");
objbtn.style.visibility= "visible ";
}
window.setTimeout( "showbutton() ",120000);//120000为毫秒数
</script>
</head>
<body>
两分钟后你将看到一个控件: <input type= "button " id= "hidebutton " value= "两分钟到了! " style= "visibility:hidden "/>
</body>
</html>
------解决方案--------------------ls正确,或者AJAX