Midi player, I can't set volume level...see code here

R

rod

Help with music volume control... the following code works fine but I can't
seem to control the volume... being to High or FULL... after setting it to
5 or 5% I also set autostart false and the music still autostarts..
Can anyone suggest...


mid0 = "./SYSmidiSounds/Absurdo.MID"
mid1 = "./SYSmidiSounds/HateNoMore.MID"
mid2 = "./SYSmidiSounds/LoombaLoomba.MID"
mid3 = "./SYSmidiSounds/PlanetStupitor.MID"
mid4 = "./SYSmidiSounds/Absurdo.MID"
mid5 = "./SYSmidiSounds/HateNoMore.MID"
mid6 = "./SYSmidiSounds/LoombaLoomba.MID"
mid7 = "./SYSmidiSounds/PlanetStupitor.MID"
mid8 = "./SYSmidiSounds/Absurdo.MID"
mid9 = "./SYSmidiSounds/HateNoMore.MID"
midr = 0
now=new Date()
midr=(now.getSeconds() )%10
mide = " "
if (midr == 0)
..
..
.........
if (midr == 9)
{mide = mid9}
document.write("<embed src='"+mide+"' autostart'false' width='75'
height='45' loop='true' volume='5' </embed> ")


Thanks do appreciate
Rod
 
L

Lee

(e-mail address removed) said:
Help with music volume control... the following code works fine but I can't
seem to control the volume... being to High or FULL... after setting it to
5 or 5% I also set autostart false and the music still autostarts..
Can anyone suggest...


mid0 = "./SYSmidiSounds/Absurdo.MID"
mid1 = "./SYSmidiSounds/HateNoMore.MID"
mid2 = "./SYSmidiSounds/LoombaLoomba.MID"
mid3 = "./SYSmidiSounds/PlanetStupitor.MID"
mid4 = "./SYSmidiSounds/Absurdo.MID"
mid5 = "./SYSmidiSounds/HateNoMore.MID"
mid6 = "./SYSmidiSounds/LoombaLoomba.MID"
mid7 = "./SYSmidiSounds/PlanetStupitor.MID"
mid8 = "./SYSmidiSounds/Absurdo.MID"
mid9 = "./SYSmidiSounds/HateNoMore.MID"
midr = 0
now=new Date()
midr=(now.getSeconds() )%10
mide = " "
if (midr == 0)
.
.
........
if (midr == 9)
{mide = mid9}
document.write("<embed src='"+mide+"' autostart'false' width='75'
height='45' loop='true' volume='5' </embed> ")

You haven't set autostart to false. You're missing the "=" sign.

Note that you could eliminate all of those "ifs" by changing your
document.write() to:

document.write("<embed src='mide"+midr+"' autostart='false' width='75'
height='45' loop='true' volume='5' </embed> ")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top