中山php|最优网络中山做网站 中山php建站

最优良人

Posts Tagged With: javascript

常用JS语句

2011/08/14 at 01:20 » Comments (277)

//显示与隐藏 document.getElementById('s1').style.display=''; //js返回上次页面 window.history.back(); history.go(-2); //隔一段时间执行一次函数 intervalID = setInterval("showTime()", 5000); //延迟一段时间执行函数 timeoutID = setTimeout("showTime()", 5000); // 停止: 主要是利用 window.clearInterval(intervalID); window.clearTimeout(timeoutID); //表单提交 name.submit()或者javascript:this.submit()(必须处在form表单内) //取得id document.getElementById("bbac").value more »