求助 一小段vbs代码

dawn06 dawn06 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
public n,num,ref
n=0
num="1"
ref=1

sub init
on error resume next

parent.window.focus
setinterval "receive",15000
setinterval "flesh",150000
setinterval "if ref=0 then flesh",1200000
if "guest"="guest" then window.open "welcome.asp","","toolbar=no,width=340,height=200"
end sub

sub receive
on error resume next
if document.forms(0).reftm.value="1" then
document.forms(0).refmenu.value="0"
n=n+1
parent.app13_ft1.window.location="reflesh.asp?n="&n
end if
end sub

sub flesh
on error resume next
if num<>document.forms(0).online_num.value and document.forms(0).refmenu.value="1" then
ref=1
num=document.forms(0).online_num.value
if document.agent.document.forms(0).msgnum.value="0" then document.agent.window.location.reload
if document.friend.document.forms(0).msgnum.value="0" then document.friend.window.location.reload
if document.ollist.document.forms(0).msgnum.value="0" then
document.forms(0).reftm.value="0"
document.ollist.window.location.reload
end if
else
ref=0
end if
end sub

setinterval 是什么意思,搜索也没有
...全文
评论 4
收藏 已收藏
分享
返回顶部
dawn06
ASP 28,401 成员 356,940 内容