<% id=session("id") t1=session("t1") t2=session("t2") if len(id)=0 then t1=true t2=true else cs="Provider=Microsoft.Jet.OLEDB.4.0;"&"Data Source="&"C:\FTP\sponser\weather\my\user.mdb" set conn=server.createobject("ADODB.Connection") conn.Mode=3 conn.connectionstring=cs conn.open sql= "select * from detail where id='"&id&"'" set rs=conn.execute(sql,recsaffected,adcmdtext) bday=rs("bday") score=rs("score") rs.close name=session("name") end if link="/" dot=" " dotp=" " doty=" " dotb=" " dotr=" " dotg=" " dotbg=" " path=server.MapPath(link&"dataa/readings.txt") set fs = CreateObject("Scripting.FileSystemObject") set ss = fs.openTextFile(path,1) s=ss.readall hkotemp=mid(s,instr(s,"HK Observatory")+19,4) hkorh=mid(s,instr(s,"HK Observatory")+29,3) path=server.MapPath(link&"dataa/warn.txt") set ss = fs.openTextFile(path,1) warn=ss.readall if not warn="no" then warn=replace(warn,vbnewline,""");"& vbnewline & "myScroller1.addItem(""") end if if t1 then path=server.MapPath(link&"dataa/forecast.txt") set ss = fs.openTextFile(path,1) forecast=ss.readall forecast=mid(forecast,8) forecast=replace(forecast,"。"&vbnewline&vbnewline,vbnewline) forecast=replace(forecast,"。",vbnewline) forecast=replace(forecast,vbnewline&vbnewline,vbnewline) forecast=replace(forecast,vbnewline,""");"& vbnewline & "myScroller1.addItem(""") end if if t2 then path=server.MapPath(link&"dataa/5day.txt") set ss = fs.openTextFile(path,1) fday=ss.readall fday=mid(fday,8) fday=replace(fday,"。","") fday=replace(fday,vbnewline & vbnewline,vbnewline) fday=replace(fday,vbnewline,""");"& vbnewline & "myScroller1.addItem(""") end if %> 香港天氣資訊中心
default.asp>banner.gif border=0 alt="返回主頁"> topbg.gif>
 
<%if len(id)>0 then%>
my/logout.asp method=post> my> my/cinfo.asp>image/cinfo.gif border=0 alt="更改資料"> my/smain.asp>image/smain.gif border=0 alt="自訂主頁">
 <%=name%> <%if month(now)=month(bday) and day(now)=day(bday) then%> 生日快樂<%elseif hour(now)<12 then%> 早安<%elseif hour(now)<18 then%> 午安<%else%> 晚安<%end if%>!  積分:<%=score%>  <%else%> my/login.asp method=post> my> 立即登記 my/nopwd.asp>忘記密碼
用戶名: 密碼:  <%end if%>
now onmouseover=smenu("1") onmouseout=dmenu("1")>現時天氣 now/aws.asp>各區最新天氣
now/rain.asp>最新雨量分佈圖
now/radar256.asp>最新平面雷達圖像
now/radar.asp>最新立體雷達圖像
forecast>天氣預測 report onmouseover=smenu("3") onmouseout=dmenu("3")>過去天氣 report/rain.asp')>過去24小時雨量
report/radar.asp')>過去平面雷達圖像動畫
wmap>天氣圖 sat onmouseover=smenu("5") onmouseout=dmenu("5")>衛星雲圖 report/kochi.asp')>過去高知大學衛星雲圖動畫
report/cwb.asp')>過去台灣氣象局衛星雲圖動畫
tc>熱帶氣旋 sea>海洋航空 other onmouseover=smenu("8") onmouseout=dmenu("8")>其他資料 other/unit.asp>氣象計算機
other/wreport.asp>天氣報告術語
learn>教育資源 in onmouseover=smenu("10") onmouseout=dmenu("10")>互動地帶 討論區
my/contact.asp>氣象迷通訊錄
<%if len(id)>0 then conn.close end if%>