• 天气预报调用


    <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/ss244.htm'></IFRAME>

    <iframe src="http://www.thinkpage.cn/weather/weather.aspx?c=37004&l=zh-CN&x=1&d=0&m=0&s=1&t=0&fc=0" frameborder="0" scrolling="no" width="200" height="250" allowTransparency="true"></iframe>

     

     <iframe src="http://weather.people.com.cn/customize/onpeople4.html" width="334" height="23" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="I2" align="center">
    </iframe>

     

    <iframe src="http://weather.265.com/weather.htm" width="160" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

    <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>

    <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"></ifreame>

    <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>

    <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"></IFRAME>

    <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>

    <iframe src="http://news.sina.com.cn/iframe/weather/342501.html" width="129" height="69" frameborder="0" marginwidth="1" marginheight="1" scrolling="no" name="I9" align="center">
    </iframe>

      有部分重复

    根据IP地址显示当前城市的天气预报代码

    本页面代码显示 网友所在城市天气预报代码,当前城市天气预告代码。这里还有指定城市的免费天气代码
    1.<iframe src="http://www.tianqi123.com/php/current_city.php" width=178 height=248 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url></iframe>
    2.<iframe src="http://www.tianqi123.com/php/current_city.php?c0=F9DC68&c1=white&c2=FEFCE0&t1=red&bg=white&w=178&text=no" width=178 height=248 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url></iframe>
    3.<iframe src="http://www.tianqi123.com/php/current_city.php?c0=red&c1=D96C00&bg=F4FFF4&w=178&h=20&text=yes&show_image=yes" width=178 height=21 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url></iframe>
    天气代码高级使用方法:

    如果您会HTML语言,您还可以在iframe代码中的url后面加参数,如:
    chengshi_321.html?c0=F9DC68&c1=white&c2=FEFCE0&t1=red&bg=white&w=178&h=250&text=no

    其中 c0 表示 表格第一行背景颜色,c1,c2表示表格其他行间隔的背景颜色,t1表示 标题颜色,bg 表示页面背景颜色,w表示表格宽度 h 表示表格高度

    当 text=yes 时,将会出现滚动的天气文字,show_image=no表示不显示天气图片,建议您自己调试看看,如:
    chengshi_321.html?c0=red&c1=FF9900&bg=F4FFF4&w=178&h=20&text=yes&show_image=no

    注意:颜色请不要加 # 符号,如 #FF9900 请写成 FF9900

  • 相关阅读:
    面向对象C++编程与实践考试答案与解析
    退役记 Wallace
    ArcGIS中多来源栅格数据的像元对齐设置
    前端进行AES加密接口进行解密
    Java学习笔记 HashSet源码分析
    Java学习笔记 LinkedList源码分析
    Linux学习笔记1 安装JDK
    Java学习笔记 ArrayList源码分析
    Vue+Leaflet实现加载Stamen显示地图
    Leaflet中使用layerGroup图层组实现图层切换
  • 原文地址:https://www.cnblogs.com/mxh691/p/1256708.html
Copyright © 2020-2023  润新知