T his is a very nice type of music effect where you can give your visitors a choice of different music to listen to without having it play when the site first opens. They have the option of playing your choices or not listening to music at all.
D epending on your knowledge of HTML and Java scripts is not really that hard to put on your page. It is a two part "Copy & Paste" code that does take some reconfigurations to get your music in to the code.
B efore you can reconfigure anything you need to upload your Midi's into your editor. After you have your music uploaded to your editor then you can start to reconfigure the URL (path) for your music selections.
Y
ou may want to read this little article about Midi files and see if "Midi" is the choice for you.
[ Midi Files Read Me ]
I n the part of the script you paste in the <HEAD> section of your document you need to replace the default music with that of your own selections that you have uploaded. Be sure to use the complete path (URL) to call the midi file.
A lso when you put your URL's in this section leave songNum[0] = "#"; just the way it is. Do not change it!!
songNum = new Array();
songNum[0] = "#";
songNum[1] = "https://www.angelfire.com/ny5/consigliere/at_hop.mid";
songNum[2] = "https://www.angelfire.com/ny5/consigliere/gimmesum.mid";
I n the <BODY> section you need to change the codes default names to their songs to what you want to call your music. Here again leave "option "0" just the way it is. Do not change that one either!!
<form name=choose>
<select size=1 name=track onChange="chooseSong(this);">
<option value="0">Click For Music</option>
<option value="1">At The Hop</option>
N ow one last reconfiguration and you are ready to listen to "Music" on your site. At the very bottom of the code in the <BODY> section you will see one more "default" song without the entire URL. Replace that with one of yours with the entire URL with one of your music midi's.
document.write('<embed type="audio/midi" src="aeroplane.mid" AUTOSTART=false hidden=true VOLUME="90" name="musicSource" MASTERSOUND><'/EMBED>');
}
// End -->
</script>
O n one final note, you can add as many songs into this script as you need. Just follow the numerical sequence in both the <HEAD> and <BODY> sections of the script.
I
f you would like to add this effect to your pages, just grab the below link and you are there. If you have any problems with this, feel free to contact us.
[ Get Code Here ]
Search Our Site By Individual letter
[ A ]
[ B ]
[ C ]
[ D ]
[ E ]
[ F ]
[ G ]
[ H ]
[ I ]
[ J-K ]
[ L ] |
Little Tips Directory [ Page 1 ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5 ] [ Page 6 ] [ Page 7 ] |
[ Index Page 1 ]
[ Index Page 2 ]
[ Index Page 3 ]
[ Index Page 4 ]
[ Index Page 5 ] [ Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ] [ Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ] [ News Letter Archives ]
[ Navigation Page ]
[ Archives Of Published Material ] |
If you are part of the ever growing number of webmasters who enjoy
sharing your knowledge with others on web design, join The
Consigliere Ltd. web ring to broaden your scope of exposure.
Join Today
This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.
Copyright © 2001-2002, The Consigliere Ltd., All Rights Reserved.