View Single Post
Old 02-23-2013, 02:21 PM   PM User | #1
obenns
New Coder

 
Join Date: Nov 2011
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
obenns is an unknown quantity at this point
Internet Explorer Javascript .play() and .pause() HTML5 methods - IE8

Hi there.

Well aware IE8 won't support my html5 audio or video, thats no problem what so ever. However I have some javascript that plays these at certain points, some on hover, some on click, doc load etc etc.

The problem is IE8 doesn't recognise it, and therefore doesn't execute anymore of my javascript, even other functions.

e.g.

$(document).ready(function() {

$('#music').pause(); // Not supported in IE8

function() { // Supported in IE8 yet not running. due to the above.
Whatever code
}
}

How can I make IE8 ignore these methods?

Thanks lifesavers!
obenns is offline   Reply With Quote