28,406
社区成员
发帖
与我相关
我的任务
分享
<script>
function getmsgflag(){
alert("call 调用我")
}
//getmsgflag()
</script>
<script>
window.parent.test.getmsgflag()
</script>
<script>
function getmsgflag(id){
alert("call 调用我,并给我赋值" + id)
return "old"//为什么是“old”,不是参数id?不明白,呵呵
}
</script>
<script>
var newID=window.setTimeout("refmessage()",1000)
function refmessage(){
var flag=window.parent.test.getmsgflag(newID);
if (flag=="old"){
location.href = "call.asp";
alert("!")
}
var id=window.setTimeout("refmessage()",1000)
}
function getmsgflag()
dim msgflag
msgflag = "old"
getmsgflag = msgflag
end function
newID=window.setTimeout ("refmessage",10000)
sub refmessage
if window.parent.test.getmsgflag = "old" then
location.href = "call.asp"
alert("!")
end if
ID=window.setTimeout ("refmessage",10000)
end sub