52 users online (1 members and 51 guests)  


  Results 1 to 2 of 2

Related

  1. to stop row growing in table    Forum: Javascript Forum
    Replies: 0
  2. Stop refreshing iframe    Forum: Javascript Forum
    Replies: 2
  3. Help me stop my hedging....    Forum: General Discussion
    Replies: 5
  4. Stop Inline Frame    Forum: Website Scripts Forum
    Replies: 1
  1. #1
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156

    stop bg music link?

    how can i make a link dat stops my bg music from playing?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hello.

    This 'might' work. Its a JavaScript to access a sound object.

    First, we have to give the sound object a NAME -

    Code:
    <EMBED
                  SRC="REGGAE.MID"
                  HIDDEN=TRUE
                  AUTOSTART=FALSE
                  NAME="firstSound"
                  MASTERSOUND>
    The name is firstSound.

    The the link would be -

    Code:
    <a href="javascript:document.firstSound.stop ( );">Stop the music</a>
    The other alternative is to set HIDDEN to FALSE. This will leave a visible control panel for the music.

    If you need some more info about accessing music objects with JavaScript, have a look at this thread -

    http://www.ahfb2000.com/webmaster_he...ighlight=music

    Hope it helps.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread