The weather website providesCodeBut it is better to customize your own city, and there are three styles for you to choose from, web site: http://www.tianqi123.com/main/small_page.html,
If you use HTML, you can add parameters after the URL in the IFRAME code, for example:
Chengshi_321.html? C0 = f9dc68 & C1 = White & C2 = fefce0 & T1 = Red & BG = White & W = 160 & H = 250 & text = No
C0 indicates the background color of the first row of the table. C1 and C2 indicate the background color at intervals of other rows of the table. T1 indicates the title Color. bg indicates the background color of the page. W indicates the table width, h indicates the table height.
When text = Yes, the scrolling weather text will appear. We recommend that you debug it yourself, for example:
Chengshi_321.html ?? C0 = Red & C1 = ff9900 & BG = f4fff4 & W = 160 & H = 20 & text = Yes
Note: Do not add the # symbol to the color. For example, write the # ff9900 symbol as ff9900.
<IFRAME src = "http://www.tianqi123.com/small_page/chengshi_1.html" width = 160 Height = 248 marginwidth = 0 marginheight = 0 hspace = 0 vspace = 0 frameborder = 0 scrolling = No align = center id = URL> </ IFRAME>
<IFRAME src = "http://www.tianqi123.com/small_page/chengshi_1.html? C0 = f9dc68 & C1 = White & C2 = fefce0 & T1 = Red & BG = White & W = 160 & text = No "width = 160 Height = 248 marginwidth = 0 marginheight = 0 hspace = 0 vspace = 0 frameborder = 0 scrolling = No align = center id = URL> </iframe>
<IFRAME src = "http://www.tianqi123.com/small_page/chengshi_1.html? C0 = Red & C1 = ff9900 & BG = f4fff4 & W = 160 & H = 20 & text = yes "width = 160 Height = 21 marginwidth = 0 marginheight = 0 hspace = 0 vspace = 0 frameborder = 0 scrolling = No align = center id = URL> </iframe>
Transparent background
This method is not provided on the weather forecast website, that is, how to make the background of the weather forecast transparent, as described above, such:
Chengshi_1.html? C0 = f9dc68 & C1 = White & C2 = fefce0 & T1 = Red & BG = White & W = 160 & H = 250 & text = No
C0 indicates the background color of the first row of the table. C1 and C2 indicate the background color at intervals of other rows of the table. T1 indicates the title Color. bg indicates the page background color.
Here we change all colors to: transparent, and then add this parameter in the original code: allowtransparency = true, for example, this Code:
<IFRAME src = http://www.tianqi123.com/small_page/chengshi_1.html? C0 = transparent & C1 = transparent & C2 = transparent & T1 = transparent & BG = transparent & W = 160 & text = no width = 160 Height = 248 marginwidth = 0 marginheight = 0 hspace = 0 vspace = 0 frameborder = 0 scrolling = No align = center id = URL allowtransparency = true> </iframe>