Powered by Blogger.

How to play songs from 4shared randomly in blogspot


If you visit this site, on the main page you will hear a song that will run randomly.

how to make it I will give a little tutorial to create a script that can do it. however, you should note that this will make your website become more severe while loading the data, then I suggest if you want to get good value in the search engines then do not do it or just plug this script on a particular page on a site like this.

The first thing you need to do is get embed script at 4shared site,  then copy the link on the embed script.

then go to the blogger dashboard and select the menu Template -> Edit HTML, then look for the tag </body>
 and then paste this script at the top of the  tag </body>
 


   <b:if cond='data:blog.pageType == &quot;index&quot;'>
<embed allowfullscreen='never' allowscriptaccess='never' flashvars='autostart=true' height='0' id='lagu' src='' type='application/x-shockwave-flash' width='0'/>
    </b:if>
<script type='text/javascript'>
var dat=jQuery.noConflict();
var dat=[&quot;http://www.4shared.com/embed/4327921170/f5ac1694&quot;,&quot;http://www.4shared.com/embed/3654768659/9aed1fbf&quot;,&quot;http://www.4shared.com/embed/3651950252/e0107203&quot;];
var hsl=dat[Math.floor((Math.random()*3)+0)];
document.lagu.src=hsl;
</script>

Note:  

  • Replace the red text with link the songs you want
  •  Replace the blue text with the number of songs you want to attach
  • Delete the green text if you want to play songs at any page in your site
  • Finally save your template and enjoy the song :D
Terima kasih telah membaca artikel tentang How to play songs from 4shared randomly in blogspot di blog bulung software jika anda ingin menyebar-luaskan artikel ini dimohon untuk mencantumkan link sebagai Sumbernya, dan bila artikel ini bermanfaat silahkan bookmark halaman ini di web browser anda, dengan cara menekan Ctrl + D pada tombol keyboard anda.

Artikel terbaru :