", "
") idActionMessage.style.display = "" idActionMessage.InnerHTML = txtCallToAction '} End Function '----------------------------------------------------------------- ' '----------------------------------------------------------------- Function RotateAVInfoMessage (num) '{ showAVInfoMessage num,true if IsScanRunning() then gTimerID = window.setTimeout ("RotateAVInfoMessage(-1)", gRotatingFactsSpeed) ' -1 is sent so that the main message will not be changed end if '} End function '----------------------------------------------------------------- ' '----------------------------------------------------------------- Function showAVInfoMessage (num, rotator_call) '{ dim txtAVInfoMessage, strDetailsMsg if num >= LBound(strAVInfoMessage) and num <= UBound(strAVInfoMessage) then txtAVInfoMessage = strAVInfoMessage(num) ' new message is required else txtAVInfoMessage = strFactoids(0) ' same message or just rotation end if if IsScanRunning() then '{ if strFactoids(0) = txtAVInfoMessage then '{ same main message, just rotate if rotator_call then ' don't rotate uless called from the rotator thread '{ txtAVInfoMessage = strFactoids(gCurrFactoidIndex) ' read the current rotated message to display if gCurrFactoidIndex <> 0 then txtAVInfoMessage = "" & txtAVInfoMessage & "" if gCurrFactoidIndex = UBound(strFactoids) then gCurrFactoidIndex = 1 else gCurrFactoidIndex = gCurrFactoidIndex + 1 '} end if '} else '{ new message, update the main message and restart the rotation strFactoids(0) = txtAVInfoMessage ' save the new message at the header message in the rotation list 'Go back to the main message 'gCurrFactoidIndex = 0 '} end if 'if rotator_call = false then exit function ' interruption messages during rotation would not show up immediately, it will wait until next rotator call '} else '{ txtAVInfoMessage = InsertHREFs (txtAVInfoMessage) '} end if idAVInfoMessage.InnerHTML = txtAVInfoMessage idAVInfoMessage.style.display = "" '} End function '----------------------------------------------------------------- ' '----------------------------------------------------------------- function startScan() '{ dim sLocation gMaxFilesFound = false gScannedFilesCount = 0 gFoundVirusesCount = 0 gScanCancelled = false txtLog.innerHTML = InitTextLog() strInfectedFile = "" strInfectedFiles = "" idActionMessage.style.display = "none" idAVInfoMessage.style.display = "none" txtInfected.innerHTML = "" & strLabelInfectedFiles & ": 0" 'txtButton.innerHTML = "| " & strHeaderFileName & " | " & strHeaderVirusName & " |