/    Sign up×
Community /Pin to ProfileBookmark

Some One Please Help Me Asap!!!!!

can someone please help me!!!!! i tried using a javascript code where theres a pulldown menu and you can choose wat song you would like to play, and i dont want to use the midis in the code, does anyone know where i can find free midi files so i can replace the midi urls in the code, and it doesnt work on my site, sum1 plz help!!! heres the code:

<!– TWO STEPS TO INSTALL MIDI MENU:

  • 1. Copy the coding into the HEAD of your HTML document

  • 2. Add the last code into the BODY of your HTML document –>
  • <!– STEP ONE: Paste this code into the HEAD of your HTML document –>

    <HEAD>

    <SCRIPT LANGUAGE=”JavaScript”>
    <!– Original: Nicholas Loar –>
    <!– Web Site: [url]http://www.cass.net/~anarchy[/url] –>

    <!– This script and many more are available free online at –>
    <!– The JavaScript Source!! [url]http://javascript.internet.com[/url] –>

    <!– Begin
    songNum = new Array();
    songNum[0] = “#”;
    songNum[1] = “http://javascript.internet.com/img/midi-menu/whiskey.mid“;
    songNum[2] = “http://javascript.internet.com/img/midi-menu/aeroplane.mid“;
    songNum[3] = “http://javascript.internet.com/img/midi-menu/christina.mid“;
    songNum[4] = “http://javascript.internet.com/img/midi-menu/hell.mid“;

    var music = null;
    var track = 0;
    var ver = navigator.appName;
    function audioCheck(plugName) {
    for (var i = 0; i < navigator.plugins.length; i++) {
    if (navigator.plugins[i].name.toLowerCase() == plugName.toLowerCase()) {
    for (var j = 0; j < navigator.plugins[i].length; j++) {
    if (navigator.plugins[i][j].enabledPlugin) {
    return true;
    }
    }
    return false;
    }
    }
    return false;
    }
    function chooseSong(s) { // ie
    track = s.options[s.selectedIndex].value;
    if (ver == “Microsoft Internet Explorer”) {
    document.all.music.src = songNum[track];
    } else {
    songPlay(‘play’);
    }
    }
    function songPlay(cmd) { // netscape
    if (audioCheck(“LiveAudio”)) {
    if (cmd == ‘play’) {
    document.musicSource.play(false, songNum[track]);
    }
    } else {
    alert(“You Do Not Have The Correct Plugin”);
    }
    }
    // End –>
    </script>
    </HEAD>

    <!– STEP TWO: Copy this code into the BODY of your HTML document –>

    <BODY>

    <center>
    <form name=choose>
    <select size=1 name=track onChange=”chooseSong(this);”>
    <option value=”0″>Click For Music</option>
    <option value=”1″>Whiskey In A Jar</option>
    <option value=”2″>Aeroplane</option>
    <option value=”3″>Genie In A Bottle</option>
    <option value=”4″>Hell</option>
    </select>
    <input type=button onMouseDown=”chooseSong(document.choose.track)” value=” Play “>
    </form>

    <script language=”JavaScript”>
    <!– Begin
    var ver = navigator.appName;
    if (ver == “Microsoft Internet Explorer”) {
    document.write(‘<bgsound src=”#” ID=music loop=1 AUTOSTART=true>’);
    } else {
    document.write(‘<embed type=”audio/midi” src=”aeroplane.mid” AUTOSTART=false hidden=true VOLUME=”90″ name=”musicSource” MASTERSOUND></EMBED>’);
    }
    // End –>
    </script>
    </center>

    <p><center>
    <font face=”arial, helvetica” size=”-2″>Free JavaScripts provided<br>
    by <a href=”http://javascriptsource.com”>The JavaScript Source</a></font>
    </center><p>

    <!– Script Size: 2.53 KB –>

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @David_HarrisonFeb 27.2005 — You don't have to use /mid's, use an mp3 or something.

    A little note though, when I surf I listen to music, if I came to your site and there was music, I'd probably just leave.
    ×

    Success!

    Help @broken_innocenc spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...