Simple Machine Codes
March 28, 2024, 06:07:01 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Blog Music

Pages: [1]   Go Down
  Print  
Author Topic: Blog Music  (Read 1141 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: June 01, 2008, 12:38:42 pm »

Javascript or Below Board:
Code:
<script>
function BlogMusic(ID,URL){
if(location.href.match("blog/(main|entry)/" + ID + "$")){
//Created by Agent Moose (smcodes.smfforfree3.com)
document.write('<embed src="' + URL + '" autostart="true" loop="true" hidden="true"><noembed><bgsound src="' + URL + '"></noembed>');
};};
BlogMusic("ID","URL");
</script>

ID = The ID of the user you want to add the music to
URL = The URL of the music.

Add more lines to add more music to a blog section:
Code:
BlogMusic("ID","URL");

Enjoy Smiley
Report Spam   Logged

Share on Facebook Share on Twitter

Musicinsanity
Music Is Life.
100 Club Member

Offline Offline

Gender: Male
Posts: 209


www.Musicinsanity.tk - NEED HELP


View Profile WWW
« Reply #1 on: June 01, 2008, 03:10:05 pm »

Well done moose
Report Spam   Logged

I do need advertisers and staff @ WWW.MUSICINSANITY.TK

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy