onhover - play sound effect just once

  • Hello!
    I have a question: I have a button and an mp3 file. I want to make the mp3 play
    just once, when I touch the button with cursor. Now, the file plays
    continuously when cursor stays on the button. I need to make it play
    just once, regardless of the fact that the cursor is on the button or not.

    Einmal editiert, zuletzt von d&g (24. Oktober 2010 um 19:17)

  • EDIT: i might have misunderstood this. if you want it to play only once but still be able to be used over and over you needed change is to move your playsound command to onover instead of onhover. onhover is constantly called over and over while the mouse is on top of your hotspot. onover is called jsut once.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!