Internet Amp version 2.02
=========================================

Author : Lefteris Haritou
Homepage : http://www.geocities.com/~lef/
Script : © 1998-1999 Lefteris Haritou
Compatibility : IE 4, IE5
Please report bugs to : lefh@hotmail.com

=========================================

=============================
What's New :
=============================

Version 2.02 :
=============================
================================================================================================

Fixed bug which made Netscape 3/4 report a JavaScript error (oops ....)
Fixed bug with Image pre cache

================================================================================================

Version 2.01 :
=============================
================================================================================================

Fixed refresh button bug in IE4/5

================================================================================================

Version 2.0 :
=============================
================================================================================================

One major improovement (and that's why I decided to call this version 2.0 and not 1.2) :

Fixed incompatibility issue with all versions of Windows Media Player (it prooved that version 1.1 didn't fixed that at all, allthough I though so)

Fixed incompatibility issue with IE5

Added File existance check : If the file doesn't exist, Iamp displays "Error :File not found" and then loads the next track !

Changed the time routine so that time is calculated upon system's clock and not with internal routine which had problem's with high performance Cpu's (the clock was running faster)


Now the script should run in all IE4/5 browsers !

================================================================================================

Version 1.1 :
=============================
================================================================================================

+ New improoved random play function
+ New repeat function (allows you to choose between repeating a single song or the whole song sequence)
+ Fixed incompatibility bug with Windows Media Player (tested with Media Player 6)
+ Improoved design of Playlist
+ Some slight changes in the look of the Player

================================================================================================


=============================
What is Internet Amp :
=============================
Internet Amp is a next-generation Midi - Mp3 player that runs from your Browser
Currently it's only working with Microsoft Internet Explorer 4 +

It runs fine with any midi files and depending on the version of Active Movie or Windows Media Player
it will also play mp3 files too !
The script allows the user to adjust volume, balance, select track from a track list, display track name,
author and time (elapsed or remaining).
It has also a Playlist and ability to play any song immediately. Also features random or repeat play.

The script is unique. It even allows you to seek to any point of the song by using the Track button.
Any of you familliar with Winamp (one of the best mp3 players) will find all features immediately.


=============================
How to install Internet Amp :
=============================
Edit the file demo.html (using any HTML or text editor).

- First you need to copy and paste the cccode in your HTML page.
The code's start and end are marked. Just copy and paste it.

- After that second step is to adjust thhhe Internet Amp's display position in your page.
This is set in the above code and speccifically in the lines :

audiodiv.style.posTop=30;    //Display Vertical Position is set here (distance from top in pixels)
audiodiv.style.posLeft=30;   //Display Horizontal Position is set here (distance from left in pixels)

As you easy understant these values determine the position of the display.
The first value is the distance from top edge of browser in pixels.
Just change it and see which value fits your needs (higher number will move display lower)

Second value sets vertical position by setting distance from left edge from Browser.
Again set different values untill you place the display where you like.

- Third step is to create your own playlllist.

Just decide which midi (wav, mp3 or whatever) audio files you will have.
Then decide the order you will have them and start adding these entries in your HTML file and in Internet Amp's code.
The position where you need to add them is marked (as it says : //Add below your song entries)
To help you I have allready set up an entry as an example. It says :

songurl[0]="1.mid"
songtitle[0]="Phil Collins - Against All Odds"

songurl variable defines the audio archive filename and songtitle what Internet Amp will display in it's display window.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IMPORTANT : You should not use a quotation mark in a songurl or songtitle description, because else IAMP will not work.
If you need to use a quotation mark, type a backslash before the quotation mark :
Example : If you wish to have as songtitle Phil Collins - "Against" All Odds, you should type as songtitle :
songtitle[0]="Phil Collins - \"Against\" All Odds\"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

=============================
Example of playlist creation :
=============================
Lets say I want to have 3 songs.
Song's #1 filename is called mercury.mid
and I want as a song description to have : "Freddy Mercury - Living on my own"

In Internet Amp code I add the entry :

songurl[0]="mercury.mid"
songtitle[0]="Freddy Mercury - Living on my own"

(Please notice first song is songurl[0] and not songurl[1])

Song #2 will be henley.mid
and I want as a song description to have : "Don Henley - Boys of summer"

In Internet Amp code I add the entry  :

songurl[1]="henley.mid"
songtitle[1]="Don Henley - Boys of summer"

Song #3 will be enigma.mid
and I want as a song description to have : "Enigma - Return of innocence"

In Internet Amp code I add the entry  :

songurl[2]="enigma.mid"
songtitle[2]="Enigma - Return of innocence"


So my Internet Amp code will look like this :

.........

//Add below your song entries


songurl[0]="mercury.mid"
songtitle[0]="Freddy Mercury - Living on my own"

songurl[1]="henley.mid"
songtitle[1]="Don Henley - Boys of summer"

songurl[2]="enigma.mid"
songtitle[2]="Enigma - Return of innocence"



// Song entries should be placed above here

.........

At last you need just to define wether the player should autostart playing or wait for the user to select a track and play it.
This is controlled in the line :

autostart=true

As you see the default value is to  automatically start.
If you dont wish this just replace the value true with false :

autostart=false

After that just save your HTML file and you are alomst done.

- Last step is to upload to your page allll the files in the zip archive (except the demo.html) and your new HTML file (with the Internet Amp code in it).
Also don't forget to upload your songs too.
Then just test it !


=============================
F.A.Q. :
=============================
1.) What about Netscape users ? Will Inetrnet Amp malfunction on them or cause any JavaScript errors ?
    
	Off course NOT ! The script is so written that any other browser ignores it (without any errors)

2.) What if my songs are in a different directory other than the script directory ?
	
	The songurl variable can be a full path or even a full URL. So lets say your page
	is at geocities and your midi song is on AOL. Just put in as songurl the full URL address (e.g. songurl[2]='http://members.aol.com/xuser/song1.mid')

3.) Why isn't Inetrnet Amp working in my IE 4/5 ? 

	Well some times this happens. Please report any problems to lefh@hotmail.com

Feel free to send your comments on Internet Amp to lefh@hotmail.com
Also if you really like the script suggest it to your friends !


And as a last word :

A WARNING TO THE PEOPLE THAT DELETE OR REMOVE MY 
CREDITS
 AND PUT THEIR OWN :

Stop getting 
credits
 for something you haven't done or deserve.
I worked hard to make this script and to get the knowledge to make this script.
Think twice before doing it. Cause if I find you you will face the consequences.
I am really disappointed by all these people who rip-off my scripts and present them as theirs.
I faced many times the dilemma to stop writing any free Scripts. Please don't make this dilemma a final decision.

Lefteris Haritou
http://www.geocities.com/~lef/
24-03-1999
Revision Date : 10-05-1999

    Source: geocities.com/huynhngocthienson