preCharge Forums - View Single Post - Adding music to your Home page
View Single Post
Old 08-08-2006   #1 (permalink)
Southy23
Senior Member
 
Southy23's Avatar
 
Join Date: Jul 2006
Location: United kingdom
Age: 22
Posts: 108
Send a message via MSN to Southy23 Send a message via Yahoo to Southy23
Default Adding music to your Home page

This code will add any music from your system to your home page enabling you to have your visitors entertained,
all you have to do is add this code to your Home page
Simply insert the below into the <body> section of your page. Be sure to configure the URL to the music file inside the script:

Code:
<script>
<!--
/*
Background music script
By Southy23*/

//specify FULL path to midi
var musicsrc="http://www.yourdomain.com/allfor.mid"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">')
else 
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>
__________________
YourOnlineXray
Southy23 is offline   Reply With Quote

 
Bad Credit Mortgages | Online Loans | Babb Fest | Beat the Credit Crunch | Credit Card Consolidation