天空之城
new,think,program,happy to live
posts - 39,comments - 39,trackbacks - 0

<html>  
  <head>  
  <title>天气预报</title>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  <style   type="text/css"><!--  
  table   {     font-size:   12px;   line-height:   14px}  
  }  
  --></style>  
  <script   language   =   "javascript">  
  function   getweather(t)  
  {  
    window.open("http://appnews.qq.com/cgi-bin/news_qq_search?city="+t,   name="_self");  
  }  
  </script>  
  </head>  
   
  <body   leftmargin="0"   topmargin="0"   marginwidth="0"   marginheight="0">  
   
  <table   width="156"   height="36"   border="0"   align="center"   cellpadding="0"  

cellspacing="0">  
      <tr>    
          <td   align="center"><select   name="selectw"   style="height:19px;font-size:  

12px;width:78px"   align="absmiddle"><option   value="北京">北京</option><option   value="上

海">上海</option><option   value="天津">天津</option><option   value="石家庄">石家庄

</option><option   value="哈尔滨">哈尔滨</option><option   value="沈阳">沈阳</option><option

  value="长春">长春</option><option   value="太原">太原</option><option   value="济南">济南

</option><option   value="郑州">郑州</option><option   value="天津">天津</option><option  

value="呼和浩特">呼和浩特</option><option   value="西安"   selected>西安</option><option  

value="银川">银川</option><option   value="兰州">兰州</option><option   value="西宁">西宁

</option><option   value="乌鲁木齐">乌鲁木齐</option><option   value="合肥">合肥

</option><option   value="南昌">南昌</option><option   value="南京">南京</option><option  

value="杭州">杭州</option><option   value="武汉">武汉</option><option   value="长沙">长沙

</option><option   value="广州">广州</option><option   value="深圳">深圳</option><option  

value="福州">福州</option><option   value="厦门">厦门</option><option   value="南宁">南宁

</option><option   value="桂林">桂林</option><option   value="海口">海口</option><option  

value="重庆">重庆</option><option   value="成都">成都</option><option   value="贵阳">贵阳

</option><option   value="昆明">昆明</option><option   value="拉萨">拉萨</option><option  

value="香港">香港</option><option   value="澳门">澳门</option><option   value="台北">台北

</option></select></td>  
          <td   width="60"><input   name="imageField"   type="image"  

src="http://panel.qq.com/images/buttom-1.gif"   width="47"   height="21"   border="0"  

onClick="getweather(selectw.value)"></td>  
      </tr>  
      <tr   background="http://panel.qq.com/images/weather/bg-line.gif"   height="1">    
          <td   colspan="2"></td>  
      </tr>  
  </table>  
  <table   width="157"   border="0"   align="center"   cellpadding="0"   cellspacing="0">  
      <tr>  
          <td   bgcolor="5A91D6"><table   width="157"   border="0"   align="center"  

cellpadding="0"   cellspacing="0">  
                  <tr>    
                      <td   width="20"   bgcolor="#FFFFFF"   class="text02">  

&nbsp;&nbsp;<font   color="#FF0000">●</font></td>  
                      <td   bgcolor="#FFFFFF"   class="text02">     西安   </td>  
                  </tr>  
              </table>  
              <table   width="157"   border="0"   align="center"   cellpadding="2"  

cellspacing="1">  
                  <tr   align="center"   bgcolor="5A91D6">    
                      <td   colspan="2"><font   color="#FFFFFF">08月30日</font></td>  
                  </tr>  
                  <tr   align="center"   bgcolor="#FFFFFF">    
                      <td   width="40">天气</td>  
                      <td   width="117"><img  

src="http://news.qq.com/images/weather_p01.gif"   width="23"   height="23">阴转多云</td>  
                  </tr>  
                  <tr   align="center"   bgcolor="#FFFFFF">    
                      <td>气温</td>  
                      <td>22℃-30℃</td>  
                  </tr>      
  <tr   align="center"   bgcolor="#FFFFFF">    
                      <td>风力</td>  
                      <td>微风</td>  
                  </tr>        
  <tr   align="center"   bgcolor="5A91D6">    
                      <td   colspan="2"><font   color="#FFFFFF">08月31日</font></td>  
                  </tr>  
                  <tr   align="center"   bgcolor="#FFFFFF">    
                      <td   width="40">天气</td>  
                      <td   width="117"><img  

src="http://news.qq.com/images/weather_p01.gif"   width="23"   height="23">多云</td>  
                  </tr>  
                  <tr   align="center"   bgcolor="#FFFFFF">    
                      <td>气温</td>  
                      <td>23℃-32℃</td>  
                  </tr>    
  <tr   align="center"   bgcolor="#FFFFFF">    
                      <td>风力</td>  
                      <td>微风</td>  
                  </tr>  
              </table></td>  
      </tr>  
  </table><br>  
  <table   width="157"   border="0"   align="center"   cellpadding="0"   cellspacing="0">  
      <tr>    
          <td   height="20"   colspan="3"   align="center"><strong>北京</strong></td>  
      </tr>  
      <tr>    
          <td   height="18"   colspan="3"  

background="http://panel.qq.com/images/weather/bg-1.gif"><table   width="100%"   border="0" 

 cellspacing="0"   cellpadding="0">  
                  <tr   align="center">    
                      <td   width="50%">08月30日</td>  
                      <td   width="50%">08月31日</td>  
                  </tr>  
              </table></td>  
      </tr>  
      <tr>  
          <td   width="78"   align="center"><img  

src="http://news.qq.com/images/weather_p01.gif"   >晴转多云</td>  
          <td   width="1"  

background="http://panel.qq.com/images/weather/bg-line2.gif"></td>  
          <td   width="78"   align="center"><img  

src="http://news.qq.com/images/weather_p01.gif"   >多云转晴</td>  
      </tr>  
      <tr   bgcolor="999999"   height="1">    
          <td   colspan="3"></td>  
      </tr>  
      <tr>    
          <td   height="28"   align="center">18℃-30℃</td>  
          <td   width="1"  

background="http://panel.qq.com/images/weather/bg-line2.gif"></td>  
          <td   align="center">20℃-29℃</td>  
      </tr>  
      <tr   bgcolor="#000000">    
          <td   height="1"   colspan="3"></td>  
      </tr>   <tr>    
          <td   height="20"   colspan="3"   align="center"><strong>上海</strong></td>  
      </tr>  
      <tr>    
          <td   height="18"   colspan="3"  

background="http://panel.qq.com/images/weather/bg-1.gif"><table   width="100%"   border="0" 

 cellspacing="0"   cellpadding="0">  
                  <tr   align="center">    
                      <td   width="50%">08月30日</td>  
                      <td   width="50%">08月31日</td>  
                  </tr>  
              </table></td>  
      </tr>  
      <tr>  
          <td   width="78"   align="center"><img  

src="http://news.qq.com/images/weather_p01.gif"   >多云</td>  
          <td   width="1"  

background="http://panel.qq.com/images/weather/bg-line2.gif"></td>  
          <td   width="78"   align="center"><img  

src="http://news.qq.com/images/weather_p01.gif"   >多云</td>  
      </tr>

posted on 2006-05-14 12:18 太极虎~宏 阅读(540) 评论(1)  编辑 收藏 引用 所属分类: 代码

FeedBack:
# re: 一段“天气预报”的代码
2010-05-28 15:35 | ArnoldAlyson20
A publish close to this good post used to be released by writing service to have a possibility to <a href="http://www.essayslab.com">buy essay</a> and custom papers.  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理