javascripts
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Music > Multi midi file player

 

Multi midi file player script

AUTHOR: Lefteris Haritou
TYPE: Freeware
BROWSERS: IE 4+, IE 6+, NS 4+

This script allows the visitor to select the song to play from a list of MIDI files.


EXAMPLE



1)
Insert this script in the <HEAD>, between <HEAD> and <BODY> or in the <BODY> section of the page.

then copy (CTRL-C) & paste (CTRL-V)

2) Insert this FORM in the <BODY> section where you want the multi midi file player to appear in the page.

then copy (CTRL-C) & paste (CTRL-V)

3) Insert the onload event handler inside the <BODY> tag as follows:

<body onload="cls()", followed by other tags such as bgcolor, etc..

copy (CTRL-C) & paste (CTRL-V)

4) You need to name the midi files you wish to use as song1.mid, song2.mid etc..

In the script you define how many songs you are going to use and their names:

song[1] = "Guitar # 1"
song[2] = "Guitar # 2"
song[3] = "Piano # 3"
song[4] = "Jazz guitar # 4"

In this piece of code you define where the midi files are stored:

location.href='midifiles/song'+x+'.mid'

Enjoy the script !


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.