EMT
10-28-2010, 06:01 AM
I am using switchmenu to open and play videos and then close them and stop the video. It works great for Opera, Safari and Firefox but with IE it does not stop the video from playing when closed. How do I stop the video in IE? Any help would be greatly appreciated.
The following is the script in the head section of my page.
<script type="text/javascript">
<!--
function switchMenu(obj) {
var el = document.getElementById(obj);
if ( el.style.display != "none" ) {
el.style.display = 'none';
}
else {
el.style.display = '';
}
}
//-->
</script>
And these are in the body of my page.
<div id="wrapper">
<div style='display:none' id="pysotof">
&
<a onClick="switchMenu('pysotof');" title="Switch the Menu" style="cursor:pointer">
The following is the script in the head section of my page.
<script type="text/javascript">
<!--
function switchMenu(obj) {
var el = document.getElementById(obj);
if ( el.style.display != "none" ) {
el.style.display = 'none';
}
else {
el.style.display = '';
}
}
//-->
</script>
And these are in the body of my page.
<div id="wrapper">
<div style='display:none' id="pysotof">
&
<a onClick="switchMenu('pysotof');" title="Switch the Menu" style="cursor:pointer">