View Full Version : Javascript causing embedded media player to freeze

02-07-2007, 09:42 PM
I have a menu on the right side of my screen with links to pass a div id to a javascript function that hides and displays the sub menus. When you click on a link, it freezes what's playing in the embedded media player. Is this something with javascript or the media player?

You can see the problem here: http://www.uviewnet.com/tv

I tried sticking the embedded player into an iFrame, but that didn't seem to fix it.

Edit: After thinking about it some more, there is a javascript button that makes the video go full screen, so it can't be just my javascript, it has to be specific to this function. Here is the function that shows/hides the div:

function show_nav_div(selected_div)
document.getElementById(selected_div).style.display = (document.getElementById(selected_div).style.display=="block" ? "none" : "block");

Edit 2: Another thing I found, is that it only seems to be an issue on IE6, with IE7 it works fine. It also doesn't seem to matter whether you are running WMP9 or WMP10.