0831

所属分类:多媒体
开发工具:Java
文件大小:29KB
下载次数:88
上传日期:2006-04-29 20:38:53
上 传 者songfengya
说明:  代码简介: javascript很酷的主页音乐播放器,不下是你的损失
(code description : Home javascript cool music player, no less than your loss)

文件列表:
amp.js (13571, 1999-05-24)
amphtml.js (4056, 1999-05-11)
demo.html (1697, 1999-06-21)
i-a1.gif (489, 1998-08-20)
i-a1p.gif (490, 1998-08-20)
i-a2.gif (457, 1998-08-20)
i-a2p.gif (468, 1998-08-20)
i-a3.gif (470, 1998-08-20)
i-a3p.gif (474, 1998-08-20)
i-a4.gif (479, 1998-08-20)
i-a4p.gif (476, 1998-08-20)
i-a5.gif (484, 1998-08-20)
i-a5p.gif (489, 1998-08-20)
i-abt.gif (446, 1998-12-19)
i-back.gif (8735, 1998-12-19)
i-bsel.gif (336, 1998-08-23)
i-logo.gif (874, 1999-03-23)
i-pl.gif (380, 1998-08-20)
i-plp.gif (372, 1998-08-20)
i-r.gif (479, 1998-08-20)
i-rp.gif (480, 1998-08-21)
i-s.gif (468, 1998-08-20)
i-sp.gif (469, 1998-08-21)
i-track.gif (44, 1998-12-19)
i-vsel.gif (471, 1998-08-23)
k666说明1.txt (111, 2001-02-11)
_blank.wav (80, 1998-12-15)

Internet Amp version 2.02 ========================================= Author : Lefteris Haritou Homepage : http://www.geocities.com/~lef/ Script : 19***-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 code in your HTML page. The code's start and end are marked. Just copy and paste it. - After that second step is to adjust the 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 playlist. 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 all 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

近期下载者

相关文件


收藏者