$$$.. Essential Element for Web Development.: How to add a song to your blog

How to add a song to your blog


How to Embed mini windows media player in the blog.

This code can be added to the blog by using the "Add a page element" under Layout of Blogger dashboard... choose "html/javascript", then put the code in there n save it... just uploaded the song and paste the URL of the song in the code .


<object id="MUSIC" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="220" height="63" type="application/x-oleobject"> <param value="http://URL.mp3" name="URL"> <param value="True" name="SendPlayStateChangeEvents"> <param value="True" name="AutoStart"> <param value="full" name="uiMode"> <param value="9999" name="PlayCount"> <param value="true" name="enabled"> <param value="100" name="Volume"> <param value="false" name="enableContextMenu"> </object>


Ajustment of the codes :


param value="true" name="AutoStart"..the player will auto play, if "false" will not play until we click it.


param value="full" name="uiMode"..player will haf full function, "mini" will just haf play/stop/volume functions, or "none"


param value="9999" name="PlayCount"... Times the repeat to play ,as many as 1 to 9999 times


param value="true" name="enabled"... show controls of the player (eg. play/stop)


param value="false" name="enableContextMenu... prevent anyone from right clicking over the player ,"true" mean allow.


Adding Muliple Songs


Muliple Songs To play more than 1 song, write down multiple mp3 link URL by notepad then save it as .m3u file...


<object id="MUSIC" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="220" height="63" type="application/x-oleobject"> <param value="http://URL/mysongs.m3u" name="URL"> <param value="True" name="SendPlayStateChangeEvents"> <param value="True" name="AutoStart"> <param value="full" name="uiMode"> <param value="9999" name="PlayCount"> <param value="true" name="enabled"> <param value="100" name="Volume"> <param value="false" name="enableContextMenu"> </object>



CODE:


#EXTM3U


#EXTINF:ARTIST NAME - SONG TITLE


http;//url.MP3 #EXTINF:ARTIST NAME - SONG TITLE


http;//url.MP3


#EXTINF:ARTIST NAME - SONG TITLE


http;//url.MP3


#EXTINF:ARTIST NAME - SONG TITLE


http;//url.MP3


e.g:


#EXTINF:Leon - Whatever song(EXAMPLE)


http://whatever.com/...../whoever.mp3 (EXAMPLE)


Upload the .m3u file and copy the URL then paste it inside the code above.


Done!!


Labels:

Recent Blog Contents:

 
|DMCA©2008 **drop.lt2.lt Network Blogs Contact | [^To the Top^]