Results 1 to 1 of 1

Thread: How do I stop embeded audio on hidden frame

  1. #1
    Join Date
    May 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How do I stop embeded audio on hidden frame

    Script Title: Featured Content Slider v2.4

    Script URL: Featured Content Slider v2.4

    I am trying to use Featured Content Slider v2.4 but I fail to automatically stop audio files embeded in hidden frames. please help me to stop invisible frames from playing audio. I used different mp3 files in all frames.
    Here is the code provided to customize but I don't know how to use it. Do I need a specific plugin for audio player or what? I'm on win xp platform.


    Code:
    onChange: function(previndex, curindex){
    if (previndex==curindex) //if two indices point to the same slide (page first loads)
     return //do nothing
    else if (previndex==1)
     videoplayer.stop("cats")
    else if (previndex==2)
     videoplayer.stop("dogs")
    else if (previndex==3)
     videoplayer.stop("myvacation")
    }
    Last edited by Snookerman; 05-15-2009 at 05:43 AM. Reason: added [code] tags

Bookmarks

Posting Permissions

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