我再msdn上找到了这么一个函数,请问这个函数可以起到这个作用吗??
并且请告诉我怎么用好吗??
因为我对js不熟setTimeout--------------------------------------------------------------------------------DescriptionEvaluates an expression after a specified number of milliseconds has elapsed. Syntax
timeoutID = object.setTimeout(expression, msec [, language])Parameter Description
expression (String) Code to be executed at the specified interval.
msec (Long) Numeric value or numeric string in millisecond units.
language Optional. (String) String that specifies the language in which the code is executed. Return ValueReturns an identifier that is used only to cancel the evaluation with the clearTimeout method. Applies Towindow
并且请告诉我怎么用好吗??
因为我对js不熟setTimeout--------------------------------------------------------------------------------DescriptionEvaluates an expression after a specified number of milliseconds has elapsed. Syntax
timeoutID = object.setTimeout(expression, msec [, language])Parameter Description
expression (String) Code to be executed at the specified interval.
msec (Long) Numeric value or numeric string in millisecond units.
language Optional. (String) String that specifies the language in which the code is executed. Return ValueReturns an identifier that is used only to cancel the evaluation with the clearTimeout method. Applies Towindow
解决方案 »
- 在弹出一个遮照层时,层里的内容大家一般是用jquery来Load另一个页面呢,还是直接写好了放在层里面,还有什么更恰当的方法么
- 弹出层日历显示当前月和下个月的咋弄-Web开发/JavaScript
- 怎样使flash变成灰色
- Div展开效果,代码不多,希望大大们帮忙看看问题在哪?
- js的传值问题
- insertBefore
- -----------------------------<><><><><><><><><>-------------------------------------- 菜鸟 正则 问题。 快来拿分!
- 层移动问题
- 如何捕捉网页被关闭事件,并进行相应处理?
- 如何动态改变文本框的大小?很急呀?
- 如何捕获窗口大小改变的事件?
- 再问一次,关于点击事件对象的问题
<script>
function myTime()
{
d = new Date();
obao.innerText=d;
setTimeout('myTime()',500)
}
</script>
<body onload="myTime()">
<div id="obao"></div>
看看,和vb里面的timer很象的哦.
那里就有这个属性哦.