Add weather forecasts and background music to the blog [favorites]

Source: Internet
Author: User

Add music and weather forecast on the csdn blog

I. Add music

1. Because csdn does not support uploading music and video files, so, first have a free space network, upload your own music, the following is part of the free space collected on the network http://blog.csdn.net/OpenHero/archive/2006/04/06/652876.aspx and then apply for a space, upload the file and then get the network path of the file, for example I upload a file in the http://www.163888.net to get the path http://music1.163888.net/698162882/2006/04/06/03/MUSIC/40607222826030.mp3

2. In csdn write files,Source codeAnd then add the HTML file.

Background MusicCode:

Method 1: <bgsound src = "http: // your background music address" loop = "infinte">

Method 2: <embed src = http: // your background music address width = 0 Height = 0 loop = true>

(This Code does not show the player)

Method 3: <embed src = http: // your background music address width = 2 Height = 2 loop = true>

<Embed src = "http://music1.163888.net/698162882/2006/04/06/03/MUSIC/40607222826030.mp3" width = "170" Height = "25" type = "audio/MPEG" autostart = "true" loop = "infinite"> </embed>

(This code displays the player)

The above parameters can be searched on the network;

Save and check the effect :)

Similarly, you can add media playback effects and play video programs.

2. Add a weather report

Many websites provide online weather reports.

The most common method is to use the link provided by QQ for processing. For example, my blog is handled by using QQ's online weather service.

Method 1:

Add in source 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/ss125.htm'> </iframe>

Method 2:

weather forecast




location. You can enter a location such as Beijing or Shanghai ~~

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.