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