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 7 of 7
  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Is is possible to have multiple "screaming buttons" on same page

    I have inserted the "screaming Button" on my page and wanted to have more than one. I was able to put more than one button but the same sound keepes comming from both.

    Is it possible to make multiple sounds/buttons on the same page?

    AND SECONDLY how can I insert a gif to be the "screaming button"

    JAVASCRIPT I am referring too is located here
    http://wsabstract.com/java/java4.shtml

    Thank you for your time
    Steve

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,043
    Thanks
    0
    Thanked 251 Times in 247 Posts
    change the sound parameter to a different sound file

    <param name=sound value="doh.au">

    Regarding the insertion of image, I don't think you can do it.
    If it's possible, it should have been defined in the <param> tags (or at least the author mentions it).

  • #3
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I put a different sound file in. The first one is DOH.au the other is canttakeit.au but the both play the same one??
    http://home.comcast.net/~snkjonaitis/
    that is where they are located....this is where i store pics,files, and test java.....

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,043
    Thanks
    0
    Thanked 251 Times in 247 Posts
    As there's no documentation provided by the author, I don't know the inner workings of this applet. Better contact the author directly.

  • #5
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I tried to contact him but all his emails get returned undeliverable

    Guess I will hunt for another program that is similar, if you know of any please let me know.

    Thanks
    Steve

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    just an idea of how u could do it, migth not work, and remember to change FileName

    <html>
    <head>
    <script>
    function play(aFile)
    {
    document.getElementById('player').src=aFile;
    document.getElementById('player').play;
    }
    </script>
    </head>

    <body>
    <embed autostart="False" loop="False" id="player" style="visibility:hidden"></embed>

    <button onclick="play('FileName');">Play 1</button>
    <button onclick="play('FileName');">Play 2</button>

    </body>
    </html>

  • #7
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks I will test it when I get a chance and let you know.


  •  

    Posting Permissions

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