IE Keeps Playing Audio Of Hidden Div

Feb 24, 2011

I'm trying to stop the audio in a hidden div from playing once a user clicks on the next video clip. i know this is a known bug in IE but i can't figure out how to fix this (as i am a total noob). can someone tell me how i can do this? And yes, my client refuses to use firefox and only IE

Here is my current code.

View 1 Replies


ADVERTISEMENT

IE Won't Stop Playing Audio When Div Is Hidden

Feb 24, 2011

I've a video list and when a user clicks on a video link it should play the video in one area of the page. but when you click on the second and third video links the audio from all videos play at the same time. i know this is a known bug in IE but for the life of me i can't fix it. it works fine for firefox but my client uses IE

How to stop the audio of the previous video when a new video link is clicked on?

<SCRIPT LANGUAGE="JavaScript">

View 1 Replies View Related

Playing Certain Audio Files - Or Possibly PHP

Jun 10, 2010

I want to use HTML5's audio coding similar to the one below:

In order to play sound files depending on the input. What I'm working on is a text-to-speech webapplication.

What I'd need to happen is for there to be an input and then allow the user to type anything into the input, so if they type in:

Hello, how are you doing?

Javascript or PHP will recognize each character and translate it into an audio sequence.

In example:

It'd detect the "H" in hello and play sound file "H.ogg"

It'd then detect the "E" in hello and play sound file "E.ogg"

View 3 Replies View Related

Playing Random Video - Not Just Audio

Aug 3, 2011

I managed to construct a script to play random sound files to make listening tests for students. The audio files were actually taken from video files and I would now like students to be able to see the video too. I have the code below which works fine for my (and the students') needs, except that only the audio is played and not the video (and the mov files definitely do contain video). Can anyone suggest how I might change the code so that the video is shown too, either on the same page, or in a pop-up window? I would have thought it would be a matter of changing the window.doSound lines, but if so I can't figure out how.

Code:

View 1 Replies View Related

Playing An Audio File Without Spawning A New Window ...

Jul 23, 2005

I want to play an audio file embedded on my page by clicking on
an audio image and the page change to a new page. Is there a
cross-browser Javascript way to do this? Right now the code I have
is ...

<html>
<head>
<title>Dictionary: homeostasis</title>
<link href="liveink.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="dictionary-area">
<span class="dictionary-word">homeostasis</span>
(<span class="dictionary-pos">Noun</span>)
<br/>
<div class="dictionary-defn">The maintenance of a constant internal
state in a changing environment that is maintained by continually
making adjustments to the internal and external environment.</div>
<a href="homeostasis.mp3" target="new"><img src="audio.gif"
border="0"></a>
<div class="dictionary-close-window"><a
href="javascript:window.close()">Close Window</a></div>
</div>
</body>
</html>

The inconvenience is right now a new window is spawned to play the
audio., which contains the controller for playing the audio (complete
with pause, stop, and play buttons). All my audio clips are less than
3 seconds in length.. How can I play the audio file without launching
the controller? I don't care if there's no way to stop/pause the audio
once it's started.

View 1 Replies View Related

Audio Keeps Playing While Visitor Browsing To Other Pages

Dec 10, 2010

I'm building an application. That have audio player.. When a visitor play the audio and it keeps playing while the visitor browsing to other pages.

View 4 Replies View Related

Streaming Audio Into Hidden Frame W/ Javascript Controls.

Jul 20, 2005

I want to stream audio into a hidden frame and load, stop, and control
volume via JavaScript. I'm thinking w/ Windows Media Player.

View 2 Replies View Related

Stopping A Video That Is Playing In A Hidden Div

Mar 15, 2010

I seem to have coded myself into a corner, and I'm hoping you can help me out.On a product demo page, I have set up popup video modals based on hidden divs. Everything works great.exceptIn IE (all versions as far as I can tell)When the video window is closed (div hidden), the video keeps playing. This does not happen in any other browser. URL...[code]I have implemented it on a test video. It stops the video playing when the window is closed, but when the user clicks the video a second time, it won't play at all.The only alternative I can see, is to make a "new window" pop up for each video (which is not what the designers wanted)[code]

View 3 Replies View Related

Div Playing Video Keeps Playing After Leaving Div

Dec 26, 2010

User clicks on image map that displays DIV1 with player id="Player1". When user clicks on another part of the map, DIV2 appears with another video - but DIV1's player "Player1" keeps playing. How can I stop the event after going to another div? Lots of efforts "out there" but I've yet to find out just how to do it successfully.

View 1 Replies View Related

Make The Player Select Playing With The Computer Or Other Player And Select Who Player Beginning Playing?

Dec 29, 2010

i need code in javascript to make the player select playing with the computer or other player and select who player beginning playing

View 2 Replies View Related

IE7 Image Switcher And Audio

Aug 20, 2007

PROBLEM 1:

I spent a lot of time finding code that would play an audio (.wav) file on a
mouseover cue that would work in Internet Explorer 6 and FireFox without any
user prompt to allow active-x scripts to be run etc, but unfortunately the
code does not work in Internet Explorer 7. Can you suggest an alternative?

PROBLEM 2:

When using a image switching code to swap an image to a .gif anim that plays
just once (created using Ulead Gif Animator 5), Internet Explorer 6 and
FireFox begin the animation cycle only when the image has been switched.
Unfortunately, Internet Explorer 7 seems to play the animation as soon as it
has been loaded so when it’s switched you only see the last frame. Can you
suggest an alternative? Code:

View 4 Replies View Related

JQuery :: Animated Gif With Audio?

Oct 25, 2011

I am using the Google audio player on a website and the html is:

[Code]...

and write a click function but it doesn't work. How can I do this?

View 6 Replies View Related

Stop Audio In Flash?

May 12, 2010

I have a webpage with a Flash audio player in it. I then implemented Facebox a JQuery lightbox. To stop the Flash movie showing through the Facebox I have added a show/hide javascript which does the job in Firefox and Safari but in IE the audio still plays when I hide the div. what I could add to my 'hidediv' function that will stop sound of Flash movie once div is hidden when in IE![URL]

View 3 Replies View Related

Hidden And Visible - Setup The Script To Have The Second Tab Automatically Hidden Prior To Reading The Code

Jan 9, 2010

I am trying to get a simple set of Javascript tabs to work properly. I have just two tabs and I want to set up the script to have the second tab automatically hidden prior to reading the javascript code because right now it shows the contents of both tabs when the page is loading and then the second tab disappears after all the script has loaded.

I have the jquery script linked to on the page and here is the way my script looks to run the tabs:

Code:

I want to add something like style="visibility:hidden;" to the DIV that isn't shown on page load and have it added and removed as necessary when users click on the tabs. So basically I would like the generated code to look like this:

Code:

View 4 Replies View Related

How Would I Discover The Text In A Block Element Hidden By Overflow:hidden Style Being Set?

Sep 20, 2005

Specifically, assume I have a div tag of absolute dimensions. I need
to figure out, first, whether or not the text inside the div tag is
partially hidden by the overflow setting, and if so, what the hidden
text is.

Is this even possible? Obviously, the rendering engine in the browser
"knows" this information, but is it accessible through Javascript?

View 2 Replies View Related

How Can I Play Midi And/or Audio Files?

Mar 24, 2006

How can I play midi and/or audio files using JavaScript?
I'm hoping there are some calls/APIs I can use that I am unaware of. My
JavaScript book from O'Reilly seems rather lacking in this area.

I'm looking for something like:

playMidiNote(pitch, duration);
playSoundFile(soundFileURL);

View 20 Replies View Related

Streaming Audio: Change Volume

Mar 19, 2007

I wanna play streaming audio (an asx.file) trough javascript. I allready found a tutorial on the net. Till so far it works (I can push play, pause and stop), but I want to change the volume to. An example: Code:

Do you know where the problem is? One thing that I must say is that the tutorial (where I took it from) worked with a wav-file, as you can see I work with a streaming file (asx-file).

View 2 Replies View Related

Creating An Own Audio/video Player?

Jun 2, 2011

I am not sure whether this requires flash or not, therefore I'd like to ask if it is technically possible to create your own audio/video player with JavaScript/jQuery? If not, could I create something similar just not with full functionality? Like stop, next, previous, etc. buttons?

View 3 Replies View Related

HTML5 Video & JS - Only Audio Plays?

Nov 23, 2011

I worked on this website :[URL]and cannot find out why it does not work in IE while it works in other browsers. The small video does not play while the sound does. As far as I can see it works fine in FF and Chrome.

View 1 Replies View Related

JQuery :: Clear All The Contents In The Div - For Stopping Possible Audio

Sep 15, 2010

$(document).ready(function (){

I'm trying to clear all the contents in the div (for stopping possible audio), but when i clear it and open the layer again its like the jquery don't find the id's inside the div.

View 10 Replies View Related

JQuery :: J Media Element Audio Player?

Jun 3, 2010

I am really lost in trying to hook up the controls. I've gone through and gotten all the files together from the demo, and tried using some of the UI helpers on "git" but I need an example to follow that's more for beginners

View 1 Replies View Related

JQuery :: Recommendations For Method To Play Mp3 Audio?

May 20, 2009

Is there a cross-browser jQuery plug-in that can preload several different mp3 audio files and provide play / stop methods?

View 2 Replies View Related

Insert An Audio Recorder Into Website For Users?

Oct 12, 2011

I have a project that aim to allow people who participate in the charity to record their experience in helping children in various poor countries. In order to make it more convenient, I am hoping to put this audio recorder that will enable users to record --> stored in my data base --> show to public in a forum link structure!

View 1 Replies View Related

Audio Player That Continues Across Page Loads?

Dec 10, 2009

I'm trying to figure out how [url].... has created the audio player at the top of their pages, that continues to play a song even when the user changes pages.It appears they have done this without the use of flash.

View 5 Replies View Related

HTML5 Audio Player With <a> Trigger Links

Jul 11, 2010

I made the following, but wanted the user action to update the audio player status without a page refresh. Currently, the code opens another page with just the player and plays the track picked. How could I make this so only the player src="" changes and nothing else.

Code:
<!DOCTYPE HTML>
<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>HTML5 Audio Test</title>
<script type="text/javascript">

[Code]....

View 2 Replies View Related

JQuery :: Setting Source Of Audio Element Programmatically?

Dec 17, 2011

how do I programatically set the souurce of an <audio> element?

[Code]..

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved