[求助]window.setTimeout怎么用
问问大家window.setTimeout是怎么用的最好详细点
<SCRIPT>
var g_oToHide = null;
function fnHide(oToHide){
g_oToHide = oToHide;
window.setTimeout(fnHide2, 3000);
}
function fnHide2(sID){
if (g_oToHide) {
g_oToHide.style.display="none";
}
}
function a()
{
document.form1.oHideButton.style.display="none";
}
</SCRIPT>
<form name="form1">
<INPUT TYPE=button VALUE="Now you see me ..." ID="oHideButton" name="oHideButton"onclick="return a()">
</form>