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

Thread: Music Buttons

  1. #1
    Junior Member craZy18gurl's Avatar
    Join Date
    Jun 2010
    Location
    Lahore, PK
    Posts
    1
    Member #
    22175
    I'm making use of this code to play music on my site on the click of a button.
    Code:
    <script>
    function EvalSound(soundobj) {
      var thissound=document.getElementById(soundobj);
      thissound.Play();
    }
    </script>
    <embed src="sample.mp3" autostart=true width=0 height=0 id="sound1"
    enablejavascript="true">
     
    ---
     
    <img src="imgs/play.png" onClick="EvalSound('sound1')" />
    What I want to do is add another button which upon the click of stops the music from playing.

    Could someone please help me out on accomplishing this?

  2.  


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
  •  
All times are GMT -6. The time now is 04:24 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com