Weather forecast code with transparent background

Source: Internet
Author: User

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>

 

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.