停止函数执行 如果是id=setTimeout("*",1000)的话,clearTimeout(id); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有时需要return false或return true 大家注意了,不是这样的。我的内容提交了,由于网络速度问题,昨天没成功。我有两个Frame:A BFrame B中有函数BFunction(),Settimeout让她循环执行,请问如何才能在Frame A中停止Frame B中的BFunction()函数的执行。 var timer=nullfunction BFounction(){ timer=setTimeout("BFounction()",1000)}假设B frame的名字是B;外面用clearTimeout(B.timer)就ok Frame B:var StopFunction=true;function BFounction(){ if(StopFunction) timer=setTimeout("BFounction()",1000)}Frame A<button onclick="top.FrameB.execScript('StopFunction=false')">停止</button> JS 弹出框confirm()中显示文本的语法问题,请指教下~ 请问对象定义的问题,写写 怎么获得记录在xml文档的位置? 怎么用文字做个超链接 急!!一个关于无闪动刷新页面的问题!! 请问高手 关于html中的parma标签的使用 元素 对象 有什么区别,如如:TEXTAREA 元素 | textArea 对象 请教一个javascript用正则表达式检验数字的问题 求助,还是那个一个字符串操作问题 请教:哪里有介绍CSS滤镜的资料啊? 怎么实现运行代码功能? 求代码:如何实现从一个多值的select添加到另一个多值的select中
我有两个Frame:A B
Frame B中有函数BFunction(),Settimeout让她循环执行,请问如何才能在Frame A中停止Frame B中的BFunction()函数的执行。
function BFounction()
{
timer=setTimeout("BFounction()",1000)
}假设B frame的名字是B;外面用clearTimeout(B.timer)就ok
function BFounction()
{
if(StopFunction)
timer=setTimeout("BFounction()",1000)
}Frame A<button onclick="top.FrameB.execScript('StopFunction=false')">停止</button>