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 2 of 2

Thread: Stop music

  1. #1
    JPM
    JPM is offline
    Regular Coder
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stop music

    How would you stop something like this on the press of a button:

    <embed src='Take It Or Leave It .mp3' id="music" hidden="true"
    autoplay="true"></embed>


    thanks
    <JPM />

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The builtin stop function should suffice.

    Code:
    <embed src='Take It Or Leave It .mp3' id="music" hidden="true" autoplay="true" name="mySound"></embed>
    
    <a href="javascript&#58;document.embeds['mySound'].stop()">Stop</a>


  •  

    Posting Permissions

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