Jump to content
Sign in to follow this  
  • entries
    570
  • comments
    2427
  • views
    217129

Entry #15.c !)*#$)&@@)&)#)(@*

Sign in to follow this  
Mushu

139 views

I will now pull a Valve (for the second time)
[source language="javascript"]
// This is the quickie source for the music
// randomizer I wrote. Basically, you slam it
// into your page, and it slams back a cool
// marquee showing what's playing and a hidden
// EMBED tag for yer music. Have fun...
// SINCE IT DIDN'T WORK OUT FOR ME!!?!?!

// Oh yeah, and this is the sole intellectual
// property of L "Mushu" Campbell, and not to
// be used, or otherwise reproduced without
// explicit content. Ha.

var random = Math.random();
var path = ""
var desc = ""

if (random < .02) {
path = "http://www.geocities.com/SunsetStrip/Stage/3796/aerith.mid";
desc = "Aerith's Theme from Final Fantasy VII";};
else if (random < .05) {
path = "http://www7.ocn.ne.jp/~dork/FF7_tifa.mid";
desc = "Tifa's Theme from Final Fantasy VII";};
else if (random < .07) {
path = "http://www7.ocn.ne.jp/~dork/FF7_cido.mid";
desc = "Cido's theme from Final Fantasy VII (Japanese Characters don't take!!!)";};
else if (random < .09) {
path = "http://www7.ocn.ne.jp/~dork/FF9_not-alone.mid";
desc = '"Not Alone" from Final Fantasy VII';};
else if (random < .11) {
path = "http://www7.ocn.ne.jp/~dork/FF4_opening.mid";
desc = "Opening theme from Final Fantasy IV";};
else if (random < .13) {
path = "http://www7.ocn.ne.jp/~dork/midi.FF3_Crystal-Tower.html";
desc = "Music from Crystal Tower, Final Fantasy III";};
else if (random < .15) {
path = "http://www7.ocn.ne.jp/~dork/ff9_eternal-fertile.mid";
desc = '"Eternal Harvest" from Final Fantasy IX';};
else if (random < .17) {
path = "http://www7.ocn.ne.jp/~dork/ff9_omoi.mid";
desc = "More random music from Final Fantasy IX";};
else if (random < .26) {
path = "http://www7.ocn.ne.jp/~dork/FF10_zanal.mid";
desc = "Zanarkand Theme from Final Fantasy X";};
else if (random < .28) {
path = "http://www7.ocn.ne.jp/~dork/FF10_normal-battle.mid";
desc = "Battle remix from Final Fantasy X... had to fit in MIDI, I did..";};
else if (random < .30) {
path = "http://www7.ocn.ne.jp/~dork/sd2_field.mid";
desc = 'Field music from "Saintly Sword Legend 2" Japanese game (my translations suck, sorry)';};
else if (random < .35) {
path = "http://www7.ocn.ne.jp/~dork/midi.ff7_fill.html";
desc = "Hell yes, Chocobo music from Final Fantasy VII";};
else if (random < .42) {
path = "http://ffquest.com/9Prelude.mid";
desc = "Prelude to Final Fantasy IX (menu music)";};
else if (random < .49) {
path = "http://ffquest.com/9Place_Return.mid";
desc = "The Place I'll Return to Someday - Final Fantasy IX";};
else if (random < .58) {
path = "http://ffquest.com/9I_Must_Protect.mid";
desc = '"The Thing I Must Protect" - Final Fantasy IX';};
else if (random < .62) {
path = "http://ffquest.com/9Terra.mid";
desc = "Terra - Final Fantasy IX";};
else if (random < .67) {
path = "http://ffquest.com/9Dissipating_Sorrow.mid";
desc = "Dissapating Sorrow - Final Fantasy IX";};
else if (random < .78) {
path = "http://ffquest.com/9Melodies_of_Life_FF.mid";
desc = "Melodies of Life - Final Fantasy IX";};
else if (random < .80) {
path = "http://ffquest.com/9Secret_Library.mid";
desc = "The Secret Library of Daguerro - Final Fantasy IX";};
else if (random < .93) {
path = "http://ffquest.com/9Loss_of_Me.mid";
desc = "Loss of Me - Final Fantasy IX";};
else {
path = "";
desc = "You're not listening to anything. Refresh to change the music";
};

document.write('');
document.write("You're listening to: ");
document.write(desc);
document.write('
');
document.write('"100" HEIGHT="60" WIDTH="144" HIDDEN=TRUE SRC="');
document.write(path);
document.write('">');

path = ""
desc = ""
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!