' Her looper vi igennem vores array og udskriver tidszoner, den valgte tidszone udskrives med grå baggrund og den vil altid have tiden lige nu. Document.Write "<p><font face=verdana size=2>" For n = 0 To UBound(arrTS) If arrTS(n,1) = curTimeZone Then Document.Write "<span style=""background-color: #C0C0C0"">" Document.Write DateAdd("h",arrTS(n,1)-curTimeZone,Now) &" - "& arrTS(n,0) If arrTS(n,1) = curTimeZone Then Document.Write "</span>" Document.Write "<br>" Next Document.Write "</font></p>"
' Her laver vi en dropdown liste hvor alle tidszoner kan vælges Document.Write "<p><form action=2000070901.asp method=GET><select size=1 name=""ts"">" For n = 0 To UBound(arrTS) If arrTS(n,1) = curTimeZone Then sel = " selected" : Else sel = "" Document.Write "<option"& sel &" value="""& arrTS(n,1) &""">"& arrTS(n,0) &" ("& arrTS(n,1) &")</option>" Next Document.Write "</select></option>" Document.Write " <input type=submit name=go value=Go></form>" </script>
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.