一、页面5秒后跳转:
<!--js-->
<script>
function init(){
window.setTimeout("tiao()",3000);
}
function tiao(){
window.location.href="<%=basePath%>login.do";
}
</script>
<!--jsp-->
......
<body οnlοad="init();">
......
二、内容的监听:即"您还可以输入25个字...":
<textarea name="" id="tsendm" οnkeyup="change_tsendm(this)" class="fabu_area"></textarea>
<script>
function change_tsendm(obj){
document.getElementById("szxz").innerHTML=140-obj.value.length;
}
</script>