<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> 张家界旅行社天气预报1张家界风景区天气预报1湖南湘中旅天气预报
<% '获取远程文件 Function GetURL(url) Set Retrieval = CreateObject("Microsoft.XMLHTTP") With Retrieval .Open "GET", url, False .Send GetURL = .responsebody GetURL = Bytes2BStr(GetURL) if len(.responsebody)<100 then response.write "Error: Get URL" response.end end if End With Set Retrieval = Nothing End Function '二进制转换 Function bytes2bstr(vin) strreturn = "" for i = 1 to lenb(vin) thischarcode = ascb(midb(vin,i,1)) if thischarcode < &h80 then strreturn = strreturn & chr(thischarcode) else nextcharcode = ascb(midb(vin,i+1,1)) strreturn = strreturn & chr(clng(thischarcode) * &h100 + cint(nextcharcode)) i = i + 1 end if next bytes2bstr = strreturn End Function '取得特定文字之间的文字 Function GetBetween(Text0, Text1, Text2) tmp_pos_1 = Instr(Text0, Text1) tmp_pos_2 = Instr(Text0, Text2) GetBetween = Mid(Text0, tmp_pos_1 + len(Text1), tmp_pos_2 - tmp_pos_1 - len(Text1)) End Function function city(code) Html=GetURL("http://news.163.com/weather/news/qx1/57558.html") 'xxxx01 = GetBetween ( Html, "this.swCity = """, "this.swSubDiv") 'xxxx01 = GetBetween ( Html, "this.swCity = """, "this.swSubDiv") 'xxxx02 = GetBetween ( Html, "this.swTemp = """, "this.swTempCel") 'xxxx03 = GetBetween ( Html, "this.swCIcon = """, "this.swWindS") 'xxxx04 = GetBetween ( Html, "this.swWindS = """, "this.swWindD") 'xxxx05 = GetBetween ( Html, "this.swBaro = """, "this.swHumid") 'xxxx06 = GetBetween ( Html, "this.swHumid = """, "this.swReal") 'xxxx07 = GetBetween ( Html, "this.swReal = """, "this.swUV") 'xxxx08 = GetBetween ( Html, "this.swUV = """, "this.swVis") 'xxxx09 = GetBetween ( Html, "this.swVis = """, "this.swLastUp") 'xxxx10 = GetBetween ( Html, "this.swConText = """, "this.swFore") 'xxxx01 = left(xxxx01, len(xxxx01) - 7) 'xxxx02 = Round(((5/9)*( CDbl(left(xxxx02, len(xxxx02) - 7)) -32))) 'xxxx03 = "weather_icon/" + left(xxxx03, len(xxxx03) - 7) + ".gif" 'xxxx04 = Round(CDbl(left(xxxx04, len(xxxx04) - 7)) * 1.609334, 2) 'xxxx05 = Round(CDbl(left(xxxx05, len(xxxx05) - 7)) * 3.386389, 2) 'xxxx06 = CDbl(left(xxxx06, len(xxxx06) - 7)) 'xxxx07 = Round(((5/9)*(CDbl(left(xxxx07, len(xxxx07) - 7)) -32))) 'xxxx08 = CDbl(left(xxxx08, len(xxxx08) - 7)) 'xxxx09 = Round(CDbl(left(xxxx09, len(xxxx09) - 7)) * 1.609334) 'xxxx10 = left(xxxx10, len(xxxx10) - 7) 'Response.write ""&xxxx01&"
" 'Response.write "" 'Response.write "["&xxxx10&"]
" 'Response.write "露点温度:"&xxxx02&"℃
" 'Response.write "感觉温度:"&xxxx07&"℃
" 'Response.write "紫外线强度:"&xxxx08&"
" 'Response.write "湿度:"&xxxx06&" %
" 'Response.write "风速:"&xxxx04&" 千米/小时
" 'Response.write "能见度:"&xxxx09&" 千米
" 'Response.write "气压:"&xxxx05 & "千帕
" %> <% html=getbetween(html,"天气预报","") Response.write Html end function %> <%call city("CHXX0010")%>
24小时免费热线:400-887-6656
设为首页
加入收藏
联系我们
 
您的位置:首页 -> 天气预报
 
区域导航
 
 
旅游咨询台
 
散 客:0744-8291177
团 队:0744-8291177
会 务:0744-2118755
票 务:0744-8290666
田小姐:13574481551
张先生:13037440064
 
天气预报
 
张家界天气预报
  张家界天气预报提供5日内张家界天气情况,近1-2日之天气预报信息一般比较准确,后3天天气情况只是一种天气预计,游客在出行前应再次核对,以真正让本预报能成为出行天气指南。为方便张家界的连线旅游,现将张家界周边天气预报一并列出,供参考。
周边景区天气预报:  凤凰  长沙  韶山  衡山  岳阳
关于我们      免责声明      站点留言      旅游投诉      支付方式      友情链接      网站地图
网站备案
网站备案
Copyright©2008-2010 张家界三峡旅游网 All Rights Reserved
地址:湖南省张家界市旅游局办公大楼2楼210 邮编:427000
预订服务热线:(86)0744-8290666、8291177、8289000(全国市话)  手机热线:(0)13574481551 传真:0744-8262156
联系人:张科、田拥军、玉萍 站务信箱:travel@hn-cts.com 网络管理员QQ:364415176
网站备案号:湘ICP备08001212号 网站设计:同盛科技 专注于网站设计