<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sofianonline.com &#187; add music</title>
	<atom:link href="http://sofianonline.com/tag/add-music/feed" rel="self" type="application/rss+xml" />
	<link>http://sofianonline.com</link>
	<description></description>
	<lastBuildDate>Sun, 29 Apr 2012 14:03:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Add music to your website</title>
		<link>http://sofianonline.com/add-music-to-your-website</link>
		<comments>http://sofianonline.com/add-music-to-your-website#comments</comments>
		<pubDate>Sun, 22 Feb 2009 11:49:33 +0000</pubDate>
		<dc:creator>sofian</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[add music]]></category>
		<category><![CDATA[Add music to your website]]></category>
		<category><![CDATA[Background sound]]></category>
		<category><![CDATA[embed music]]></category>

		<guid isPermaLink="false">http://sofianonline.com/?p=249</guid>
		<description><![CDATA[<a href="http://sofianonline.com/add-music-to-your-website"><img align="left" hspace="5" width="150" height="150" src="http://sofianonline.com/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><div class="addthis_toolbox addthis_default_style " addthis:url='http://sofianonline.com/add-music-to-your-website' addthis:title='Add music to your website '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>There are three ways how to add music to your website or blog: Use the music as background. Use an embeded console which can play the music automatically. Use script from other website which provides this service. Now, I want to show you how to do those ways. But I only test this in Windows [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://sofianonline.com/add-music-to-your-website' addthis:title='Add music to your website ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://sofianonline.com/add-music-to-your-website' addthis:title='Add music to your website '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><div class="gpo_bottomcontainer">
						<div class="gpo_buttons">
						        <g:plusone href="http://sofianonline.com/add-music-to-your-website" size="medium" count="true"></g:plusone>
						</div>
			   </div>
			   <div style="clear:both"></div><p>There are three ways how to <strong>add music to your website</strong> or blog:</p>
<ol>
<li>Use the music as background.</li>
<li>Use an embeded console which can play the music automatically.</li>
<li>Use script from other website which provides this service.</li>
</ol>
<p>Now, I want to show you how to do those ways. But I only test this in Windows based, not for Mac.</p>
<p><strong>1. Use the music as background.</strong></p>
<p><strong>1.1 Background sound<br />
</strong>This is a very simple step used for Internet Explorer (midi file only). Copy and paste this code to the HEADER between meta tag and stylesheet link. Change the myfile.mid with your music address.</p>
<blockquote><p>&lt;BGSOUND SRC=&#8221;myfile.mid&#8221; LOOP=&#8221;false&#8221;&gt;</p></blockquote>
<p><strong>1.2 Background sound for mp3, wav, and au files<br />
</strong>For other type of browser such as Mozilla or Opera (also IE), just copy and paste the code below.  Change the myfile.mp3 with your music address.<span id="more-249"></span></p>
<blockquote><p>&lt;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
if (navigator.appName == &#8220;Microsoft Internet Explorer&#8221;) {<br />
document.write(&#8216;&lt;bgsound src=&#8221;myfile.mp3&#8243; LOOP=&#8221;false&#8221;&gt;&#8217;);<br />
}<br />
else {<br />
document.write(&#8216;&lt;embed type=&#8221;application/x-mplayer2&#8243; pluginspage=&#8221;http://www.microsoft.com/Windows/MediaPlayer/&#8221; Name=&#8221;MediaPlayer&#8221; src=&#8221;myfile.mp3&#8243; AutoStart=&#8221;true&#8221; ShowStatusBar=&#8221;0&#8243; ShowControls=&#8221;0&#8243; ShowDisplay=&#8221;0&#8243; volume=&#8221;1&#8243; HEIGHT=&#8221;1&#8243; WIDTH=&#8221;1&#8243; loop=&#8221;false&#8221;&gt;&lt;br&gt;&#8217;);<br />
}<br />
// End &#8211;&gt;<br />
&lt;/script&gt;</p></blockquote>
<p><strong>2. Use an embeded console which can play the music automatically.</strong></p>
<p><strong>2.1 Windows player console</strong></p>
<p>Every computer using windows os will absolutely has windows media player. So, it&#8217;s the best way to add wmp console to your website. Just download and copy the java script file below.</p>
<p><a title="java script for wmp" href="http://sofianonline.com/wp-content/uploads/2009/02/script_wmp.zip" target="_blank">Click to download the java script file for the Windows Media player.</a></p>
<p>Then copy and paste the code below tou your html. Don&#8217;t forget to change the address of your script_wmp.js.</p>
<blockquote><p>&lt;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221; src=&#8221;script_wmp.js&#8221;&gt;&lt;/script&gt;</p></blockquote>
<p><strong>2.2 Quick time player console</strong></p>
<p>To add a small Quicktime console, copy and paste the following code. Note that the computer should have quicktime installed.</p>
<blockquote><p>&lt;object classid=&#8221;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&#8221; codebase=&#8221;http://www.apple.com/qtactivex/qtplugin.cab&#8221; height=&#8221;16&#8243; width=&#8221;250&#8243;&gt;<br />
&lt;param name=&#8221;src&#8221; value=&#8221;mysong.mp3&#8243;&gt;<br />
&lt;param name=&#8221;autoplay&#8221; value=&#8221;true&#8221;&gt;<br />
&lt;param name=&#8221;controller&#8221; value=&#8221;true&#8221;&gt;<br />
&lt;embed height=&#8221;16&#8243; width=&#8221;250&#8243; src=&#8221;mysong.mp3&#8243; pluginspage=&#8221;http://www.apple.com/quicktime/download/&#8221; type=&#8221;video/quicktime&#8221; controller=&#8221;true&#8221; autoplay=&#8221;true&#8221;&gt;<br />
&lt;/object&gt;</p></blockquote>
<p><strong>2.3 Real Audio Player</strong></p>
<p>Just copy and paste the code below to your website html.</p>
<blockquote><p>&lt;OBJECT ID=RVOCX CLASSID=&#8221;clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA&#8221; WIDTH=&#8221;350&#8243; HEIGHT=&#8221;36&#8243;&gt;<br />
&lt;PARAM NAME=&#8221;SRC&#8221; VALUE=&#8221;mysong.mp3&#8243;&gt;<br />
&lt;PARAM NAME=&#8221;CONTROLS&#8221; VALUE=&#8221;ControlPanel&#8221;&gt;<br />
&lt;PARAM NAME=&#8221;CONSOLE&#8221; VALUE=&#8221;one&#8221;&gt;<br />
&lt;EMBED SRC=&#8221;your-file.mid&#8221; WIDTH=&#8221;350&#8243; HEIGHT=&#8221;36&#8243; NOJAVA=&#8221;true&#8221; CONTROLS=&#8221;ControlPanel&#8221; CONSOLE=&#8221;one&#8221;&gt;<br />
&lt;/OBJECT&gt;</p></blockquote>
<p><strong>3. Use script from other website which provides this service.</strong></p>
<p>You cand find many website in google which serves this. For example, you can visit <a title="Code Lagu" href="http://codelagu.com" target="_blank">codelagu.com</a>. Just search your song, and get the code for your site.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://sofianonline.com/add-music-to-your-website' addthis:title='Add music to your website ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://sofianonline.com/add-music-to-your-website/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

