Big Stepper
12-17-2002, 02:00 AM
I'm trying to insert audio in a script. It's the roullete script where an alert comes up bang your dead. I want to make it where you also hear a gunshot, Can anyone help me with this? I keep getting errors when i try to do it. My website is under my profile. The script is on the games page....
function fireit(){
var theone=Math.floor(Math.random()*6)
if (theone<=document.fire.bullets.value-1)
alert("Bang. You\'re dead!")
else{
document.fire.message.value="Whew. Got lucky!"
setTimeout("document.fire.message.value='Play Roulette'",500)
}
}
Thanks,
Chris
function fireit(){
var theone=Math.floor(Math.random()*6)
if (theone<=document.fire.bullets.value-1)
alert("Bang. You\'re dead!")
else{
document.fire.message.value="Whew. Got lucky!"
setTimeout("document.fire.message.value='Play Roulette'",500)
}
}
Thanks,
Chris