Jump to content

How do I stop audio in a hidden frame?


Guest Joe

Recommended Posts

I have three hidden frames that rotate content when the user clicks next. The content slider works fine but I don't know how I can embed audio properly. I have an audio file for each frame, but when I go to frame 2, the audio in frame 1 continues to play. How can I stop this problem. I want the previous audio to automatically stop when the next frame becomes visible.

 

> Somebody showed me the javascript below but I don't know how to customize it for windows media audio player or even where to put it:

 

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("filename")
else if (previndex==2)
 videoplayer.stop("filename")
 else if (previndex==3)
 videoplayer.stop("filename")

 

:rolleyes: Please help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...