View Full Version : Can someone correct my script?

Dec 5th, 2002, 02:05 AM
I've posted this last time but no one answered me... can any kind soul pls help...

Erm... i wanna put music in my webpage but it's like i wanna show the player so tt ppl can stop or skip to another song... i remember there's a javascript that can do it but I forgot the full script... it goes something like this if i didn't rem wrongly :

<script language="JavaScript">

var playMode = 1;
var restLength = 4.5;

//(1.0a...; )
//var showTitle = 1;

//'Track No.'
addbgm('http://sing.1mp3','Track 1',324);
addbgm('http://sing.2mp3','Track 2',324);
addbgm('http://sing.3mp3','Track 3',324);
addbgm('http://sing.4mp3','Track 4',324);

// --></script>

Well, some of the script I dun remember is what and I think I made quite a lot of mistakes...and I think the script is not really tt short...so muz be I miss out quit a no. of things...so can someone correct me?

Thanks in advance~

Dec 5th, 2002, 03:42 AM
we can't correct the script if it's incomplete. The most important part is missing, the addbgm() function

Dec 5th, 2002, 03:44 AM
Oh... then can someone who knows the function help me... coz i really dun rem wat's the whole thing... can juz type out the script me me? Thanks a million~

Dec 5th, 2002, 05:44 AM
See if you can find a suitable sound script for you:


Dec 5th, 2002, 05:49 AM
hey thanks alot... i'll go explore... if i have any probs then i'll ask again... hee~ sorry... coz i juz beginner only... not v good in it... but thanks anyway!:D