Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is this possible?

    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

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    #1) Your first post was 20 minutes ago. You don't need to re-post the same question twice. Give it a day or so, as some of the more brilliant minds will probably read your question during the night.

    #2) You might try downloading a trial version of Macromedia Flash MX, and searching for tutorials on Flash in order to make it all work. Flash may very well be the best solution to your problem.

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    don't use titles like that. read this...
    http://www.codingforums.com/showthre...?threadid=2090


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •