天气asp

七款天气预报代码<iframe width="150" height="240" frameborder="0" scrolling="No" src='http://appnews.qq.com/cgi-bin/news_qq_search?city=xxx'></iframe>

 

其中的“xxx”是每个城市的代码:比如武汉的就是%CE%E4%BA%BA
下面是其他的一些城市的编码:

   上海-%C9%CF%BA%A3
   北京-%B1%B1%BE%A9
   青岛-%C7%E0%B5%BA
   济南-%BC%C3%C4%CF
   武汉-%CE%E4%BA%BA
   福州-%B8%A3%D6%DD

[ Run ][ Copy ] [ Save ]
 <iframe src="http://weather.265.com/weather.htm" width="168" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
 
[ Run ][ Copy ] [ Save ]
 <IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.qq.com/inc/ss258.htm'></IFRAME>
[ Run ][ Copy ] [ Save ]
 

<IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src="http://news.sina.com.cn/iframe/weather/130101.html%22%3E%3C/ifreame>
[ Run ][ Copy ] [ Save ]
<iframe width="469" height="218" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://appnews.qq.com/cgi-bin/news_weather_search?city=厦门" allowTransparency="true"></iframe>
[ Run ][ Copy ] [ Save ]
<IFRAME ID='ifm1' WIDTH='405' HEIGHT='332' ALIGN='center' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC="http://weather.qq.com/24.htm%22%3E%3C/iframe>
[ Run ][ Copy ] [ Save ]
<iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://minisite.qq.com/Weather/news_new.html" allowTransparency="true"></iframe>

补一个

[ Run ][ Copy ] [ Save ]
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>天气预报</title>
<style type="text/css">
<!--
td {
 font-size: 12px;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
var openW;

function openWindow(theURL,winName,features) { //v2.0
//openW=window.open(theURL,winName,features);
//var mxh2 = window.open("about:blank","window_mxh")
//var mxh2 =window.open(theURL,winName,features);
window.showModalDialog(theURL,test(),'dialogHeight:270px;dialogWidth:265px;scroll:no;status:no')
}
function test(){
location.href="index.htm";

}
//-->
</script>

<script language="javascript" id="objscript"></script>
<script language="JavaScript" type="text/JavaScript" src="http://www.116.com.cn/116/home/weather/public.js%22%3E%3C/script>
<script language="JavaScript" type="text/JavaScript" src="http://www.116.com.cn/116/home/weather/weather.js%22%3E%3C/script>
<script language="JavaScript" type="text/JavaScript" src="http://jsp.116.com.cn/notice/iptocityid.jsp%22%3E%3C/script>
<script language="JavaScript">

 var locid;
 var cityname;
 var defid;
 
 if(getCookie("defid")=='')
 {
 locid=CityID;
 
 
 setCookie("defid",CityID);
 
 }else
 {
 locid=getCookie("defid");
 
 }
 var havecheck;
 if(getCookie("check")==''){
 havecheck='2';
 }else{
 havecheck=getCookie("check");
 }
 var show;
 if(havecheck=='0'){
 locid=getCookie("CityID");
 
 show=0;
 }else {
 locid=getCookie("defid");
 
 show=1;
 }
 
 var urlstr = "http://jsp.116.com.cn/weather/%22+locid+%22.js";
 
 document.all["objscript"].src = urlstr;
 //var oWea = new makeWeatherObj();
 
</script>

<body topmargin="0" leftmargin="0" style="background-color=transparent">
<SCRIPT language="javascript">
var oWea = new makeWeatherObj();
</script>
<div align="center">
 <table width="180" height="52" border="0" cellpadding="0" cellspacing="0">
 <tr>
 <td align="center" valign="middle"><table width="139" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="53" rowspan="2" align="center"><SCRIPT language="javascript">
 var weather24=oWea.swWeather24.split("-");
 document.write("<img src=http://www.116.com.cn/116/home/weather/images/icons/"+transTab(weather24[0])+"_small.gif border='0'>");
 if(weather24.length==2) document.write("<img src=http://www.116.com.cn/116/home/weather/images/icons/"+transTab(weather24[1])+"_small.gif border='0'>");
 </script></td>
 <td width="86" align="center"><font color="#ff6600">
 <SCRIPT language="javascript">
 document.write(oWea.swName);
 </script>
 </font></td>
 </tr>
 <tr>
 <td align="center"><SCRIPT language="javascript">
 var wendu=oWea.swWendu24.split("-");
 document.write("<span class='f12blue2'>"+wendu[0]+"</span>");
 </script></td>
 </tr>
 </table></td>
 </tr>
 </table>
</div>

posted @ 2008-10-09 11:52  itecho  阅读(251)  评论(0编辑  收藏  举报