Tâm trạng hàng ngày | Hạnh phúc 2-7-2025 09:43 PM |
|---|
Đã viết: 13 ngày [LV.3]Spam 3
|
Mời bạn đăng ký để giao lưu kết bạn nhé <3
Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký
x
Instructions for newbies only
1. Upload a photo with JPG format and some mp3-formatted files to your host (My Account/ Files).
2. Download playlist.zip.
3. Extract it to any folder in your computer. Check if there are 3 files: playlist.xml, config.xml and mp3player.swf.
4. Open playlist.xml with notepad (right click and choose open with notepad) and look for these codes:
- <track>
- annotation>Song's title - Composer - Singer</annotation>
- <location>http address of the mp3-formatted file</location>
- </track>
Sao chép mã
You may need to make copies of the above code according to the number of songs that are in your playlist, then edit the codes as follows::
- annotation: song's name, its composer, or anything relating to the song;
- location: http addresses of mp3 files.
When you've done, save the file, also in xml format. If you have many playlists, you should give these xml files different names, e.g. playlist1.xml, playlist2.xml,...
5. Open config.xml with notepad:
- <mp3config>
- <!-- choose here if you want the mp3player to automatically start and shuffle songs (true or false) -->
- <autostart>false</autostart>
- <shuffle>false</shuffle>
- <!-- choose the mp3player repeat mode (none, one, all or list (plays the entire playlist once)) -->
- <repeat>list</repeat>
-
- <!-- choose the mp3player volume (0 to 100) -->
- <volume>80</volume>
-
- <!-- choose here if you want to show the display and playlist (true or false) -->
- <showdisplay>true</showdisplay>
- <showplaylist>true</showplaylist>
-
- <!-- choose here in what frame you want links to be opened (_blank, _self, _top or a framename) -->
- <linktarget>_blank</linktarget>
-
- <!-- choose the mp3player colors (hexadecimal, from 0x000000 to 0xffffff) -->
- <backcolor>0xffffff</backcolor>
- <frontcolor>0x000000</frontcolor>
- <lightcolor>0xC7EF65</lightcolor>
- <!-- you can set a JPG as the background here to skin the mp3player (url to the jpg file) -->
- <jpgfile></jpgfile>
-
- <!-- (for webmasters) URL of a script, called on start and completion of a song -->
- <!-- the following vars are sent with POST: title, file, identifier, action ('start' or 'complete') -->
- <callback></callback>
-
- </mp3config>
Sao chép mã
autostart: you can either set the playlist play automatically (true) or have to be started (false). In my own opinion, autoplay may disturb some visitors and may prevent them from visiting your blog later on.
- shuffle: random play of your playlist, with 2 options - true và false.
- repeat: 4 options - none (no repeat), one (one song), all (all songs in the list) or list (repeat the whole list once).
- volumn: from 0 to 100.
- showdisplay: display the control menu(true/ false).
- showplaylist: display the list of song's names (true/ false).
- linktarget: open in a new window when click on (_blank), same window (_self), also the same window (_top) but when the HTML file using iframe codes (this is not applied to Opera Blog though). Honestly, I don't know what these configurations are for, since I couldn't find any link on the list.
- backcolor: background color.
- frontcolor: text color.
- lightcolor: text colors change when the mouse moves in or any song is selected.
- jpgfile: URL of the background image for the playlist (which has been uploaded in step 1), beginning with http://
- callback (sorry that I still don't know what this is for ).
After editting the file, you will save the file in xml format. Similar to playlist.xml, if you may want different background for each playlist, you may need different configurations, i.e. save these configuration files with different names, e.g. config1.xml, config2.xml,...
6. Upload 3 files mp3player.swf, playlist.xml and config.xml to your host.
7. Copy and paste the following code to your entry:
- <embed hspace="5" vspace="5" src="mp3player.swf" menu="false" quality="high" width="450" height="338" name="index" allowScriptAccess="never" type="application/x-shockwave-flash" Pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="&config=config.xml&file=playlist.xml" wmode="transparent" border="0"></embed>
Sao chép mã
You must change the locations of 3 files mp3player.swf, config.xml and playlist.xml with their HTTP Addresses so that the list could play.
In addition, you may need to take care of the followings in the above code:
- menu means the control menu, with 2 options - true (autoplay) or false (play on click).
- width and height are sizes of the background image for your playlist.
Well, you've done Good luck and enjoy your playlist
Demo http://yenbairock.info |
|