PDA

View Full Version : Can someone correct my script?



HyeSung
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;

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

//addbgm('');
//'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~

glenngv
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

HyeSung
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~

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

http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Audio_and_Sound/

HyeSung
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