请问如何控制菜单的消失与显示?settimeout如何应用?

truemichael 2000-07-21 09:01:00
...全文
168 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
truemichael 2000-07-21
  • 打赏
  • 举报
回复
微软中国主页
Tyro 2000-07-21
  • 打赏
  • 举报
回复
settimeout和setInterval可以达到类似于定时器的效果
与之相关的函数有cleartimeout和clearinterval

settimeout指定一定时间后调用某个函数
setinterval指定一个时间间隔循环调用某个函数

软主页是什么意思呀?
truemichael 2000-07-21
  • 打赏
  • 举报
回复
类似为软主页的菜单,谢谢
VictorYu 2000-07-21
  • 打赏
  • 举报
回复
菜单是指明是什么菜单?
setTimeout("要调用的函数名",时间)
时间的单位是0.001秒.
huntout 2000-07-21
  • 打赏
  • 举报
回复
setTimeout
------------------------------------------------------------------------
描述︰Evaluates an expression after a specified number of milliseconds has elapsed.

語法︰timeoutID = object.setTimeout(expression, msec [, language])

參數描述︰
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.

返回值︰Returns an identifier that is used only to cancel the evaluation with the clearTimeout method.

應用於︰window

範例︰
var t = window.setTimeout("alert('time is out')", 1000);
VictorYu 2000-07-21
  • 打赏
  • 举报
回复
那是一个DIV, 可以用DIV的style.display在控制菜单显示和隐藏.

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧