js 使用settimeout来循环提示更新的内容
<style>
#bom {
position:fixed;
left:0px;
width:50px;
height:20px;
font-size:10px;
font-family:Arial, Helvetica, sans-serif;
text-align:center;
border:solid 1px red;
color:red;
bottom:0;
position:absolute;
top:expression(document.documentElement.clientHeight + document.documentElement.scrollTop - this.offsetHeight);
}
</style>
<script>
/**************可以用作实时更新提示信息******************/
function uplocal(i){
i++;
$("#bom").html((i+1)+"、GPS"+i);
if(i<10){
setTimeout(function(){
uplocal(i);
},1000);
}else{
$("#bom").hide();
}
}
$(document).ready(function(e) {
uplocal(0)
});
</script>
</head>
<body>
<div id="bom"> </div>
</body>