summaryrefslogtreecommitdiffstats
path: root/htdocs/loadexplanation.js
blob: fa6cc5d1e1bda64f1730c7dc697732d624c0cc6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
d=document
w=window
msgs=new Array()
if (w && d && d.getElementsByTagName){
 w.onload=doubleUp
}
function doubleUp() {
 glist=d.getElementsByTagName("DIV")
 upto(1)
}
function upto(n) {
 if (n<glist.length) {
  for (i=n;i<glist.length && i<n+10;i++) {
   j=glist[i]
   cls=j.className
   if (cls) cls=cls.split(' ')
   if (cls.length>1) {
    if (cls[0]=='ve') msgs[cls[1]]=j.innerHTML
    if (cls[0]=='hidden' && msgs[cls[1]]) {
     j.className="ve "+cls[1]
     j.innerHTML=msgs[cls[1]]
    }
   }
  }
  if (w && w.setTimeout) setTimeout('upto('+i+')',500)
 }
}