Code for displaying weather forecast information on the webpage (copy the code to Your webpage. Of course, weather forecast can only be used when the Internet is connected)

Source: Internet
Author: User
Name: 265 weather automatically obtains local weather conditions based on IP addresses
Code: <IFRAME src = "http://weather.265.com/weather.htm"
Width = "168" Height = "54" frameborder = "no" border = "0" marginwidth = "0 & quoat; marginheight = "0" scrolling = "no"> </iframe>
Name: QQ weather forecast code (1)
Code: <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>
Note: This method is suitable for insert in the sidebar of a webpage. But one drawback is that the four cities above are established and cannot be changed to another. During insertion, select the location on the webpage and copy all the source code in the left column.

Name: QQ weather forecast code (2)
Code: <IFRAME id = 'ifm2' width = '000000' Height = '000000' align = 'center' marginwidth = '0' marginheight = '0' hspace = '0' vspace =' 0 'frameborder = '0' scrolling = 'no' src = 'HTTP: // weather.qq.com/inc/ss258.htm'> </iframe>
Note: This is also suitable for insert in the sidebar of a webpage. The preceding cities can be customized, for example, Xiamen can be changed to another city. The custom method is to modify the numbers marked in red in my code, starting from 1 to "Hong Kong". Each number represents a city, and Xiamen is 287, find the specific city.

Name: Sina weather forecast code
Code: <IFRAME id = 'ifm2' width = '000000' 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"> </iframe>
Note: This is suitable for inserting in the header bar of a webpage. The city above can be customized, for example, Shijiazhuang can be changed to another.
Name: QQ weather forecast code (3)
Code: <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 = Xiamen"
Allowtransparency = "true"> </iframe>
Note: This is suitable for inserting in the positive bar of a webpage. The preceding cities can be customized, for example, Xiamen can be changed to another city. The custom method is to modify the name marked in red in my code. This is relatively simple, just use Chinese characters to change it. For example, if you are from Fuzhou, you just need to change "Xiamen" to Fuzhou.
Name: QQ weather forecast code (4)
Code: <IFRAME width = 160 Height = 230 frameborder = 0 scrolling = No src = http://appnews.qq.com/cgi-bin/news_qq_search? City = Nanchang> </iframe>
Name: QQ weather forecast code (5)
Code: <IFRAME src = "http://appnews.qq.com/cgi-bin/news_qq_search? City = Nanchang"
Frameborder = "0" width = "160" scrolling = "no" Height = "230"> </iframe>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.