PHP expert |
|
headrnscriptrnsongNum = new Array(); rnsongNum[0] = #; rnsongNum[1] = music1.wma; rnsongNum[2] = music2.mp3; rnsongNum[3] = music3.wma; rnvar music = null; rnvar track = 0; rnvar ver = navigator.appName; rnfunction audioCheck(plugName)rn { rn for (var i = 0; i navigator.plugins.length; i++)rn {rn if (navigator.plugins[i].name.toLowerCase() == plugName.toLowerCase())rn {rn for (var j = 0; j navigator.plugins[i].length; j++)rn {rn if (navigator.plugins[i][j].enabledPlugin)rn {rn return true;rn }rn }rn return false;rn }rn }rn return false;rn } rnfunction chooseSong(s)rn { ie rn track = s.options[s.selectedIndex].value; rn if (ver == Microsoft Internet Explorer)rn {rn document.all.music.src = songNum[track]; rn }rn elsern {rn songPlay('play');rn }rn } rnfunction songPlay(cmd)rn { netscape rn if (audioCheck(LiveAudio))rn {rn if (cmd == 'play')rn {rn document.musicSource.play(false, songNum[track]);rn }rn }rn elsern {rn alert(U heeft niet de juiste Plugin);rn }rn }rnscriptrnrnrnheadrnbodyrnSELECT onchange=chooseSong(this);aler(this) size=1 name=track rnOPTION value=0StopOPTION rnOPTION value=2OPTION rnSELECTBRrn!-- dit is maar een idee hoe je het kan laten werken --rnSCRIPT language=JavaScript rnvar ver = navigator.appName; rnif (ver == Microsoft Internet Explorer) { rndocument.write('bgsound src=# ID=music loop=-1 AUTOSTART=false'); rn} else { rndocument.write('embed type=audiomidimp3 src=# MASTERSOUND AUTOSTART=false hidden=true loop=true VOLUME=200 name=musicSourceEMBED');} rnSCRIPTrnbodyrnrnps niet mijn eigen script maar k weet niet meer waarvan wel |