Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: stop button

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    4
    Member #
    10404
    Is it possible to code a 'stop button' for a page that has a <bgsound source> playing a looped wav. file.

    I know I could get an interface using <embed> but they look really tacky.

    Thanks for your help.

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Hmm... I have an idea, but no guarantee that it'll work. Write a page; when you go to write the bgsound, use:
    Code:
    <bgsound source="blah.wav" id="bgsound" />
    I don't use bgsound, so I'm not sure exactly what it looks like. The important thing is that you have the `id="bgsound"' in there. Then, the stop button:
    Code:
    <input type="button" id="stopButton" value="Stop Background Music"
    	onclick="document.getElementById('bgsound').parentNode.
    		 removeChild( document.getElementById('bgsound') );" />
    I think that'll work. Not sure, however.


Remove Ads

Posting Permissions

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

Search tags for this page

bgsound stop

,

stop bgsound

Click on a term to search for related topics.
All times are GMT -6. The time now is 02:43 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com