DHTML og Windows Media problem
Jeg har et stort problem, med layer og media playeren.Når jeg sætter et lag til at være usynligt, stopper den media playeren. Er der nogen der ved hvorfor?????
Det er denn kode jeg teste på:
<html>
<head>
<script language=\"JavaScript\">
<!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
// Show/Hide functions for non-pointer layer/objects
function show(id) {
if (ns4) document.layers[id].visibility = \"show\"
else if (ie4) document.all[id].style.visibility = \"visible\"
}
function hide(id) {
if (ns4) document.layers[id].visibility = \"hide\"
else if (ie4) document.all[id].style.visibility = \"hidden\"
alert(document.MediaPlayer1.PlayState);
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR=\"#FFFFFF\">
<A HREF=\"java script:show(\'blockDiv\')\">show</A> - <A HREF=\"java script:hide(\'blockDiv\')\">hide</A>
<DIV ID=\"blockDiv\" STYLE=\"position:absolute; left:50px; top:100px; width:30px; height:30px; clip:rect(0px 30px 30px 0px); background-color:red; layer-background-color:red;\">
</DIV>
<div align=\"center\"><OBJECT ID=\"MediaPlayer1\"
classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"
codebase=
\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715\"
standby=\"Loading Microsoft® Windows® Media Player components...\"
type=\"application/x-oleobject\">
<PARAM NAME=\"AutoStart\" VALUE=\"true\">
<PARAM NAME=\"FileName\" VALUE=\"mms://itv.digieyez.com/digisite/nasa_200.wmv\">
<PARAM NAME=\"ShowControls\" VALUE=\"False\">
<PARAM NAME=\"ShowStatusBar\" VALUE=\"False\">
<PARAM NAME=\"AnimationAtStart\" VALUE=\"False\">
<PARAM NAME=\"TransparentAtStart\" VALUE=\"True\">
<PARAM NAME=\"ClickToPlay\" VALUE=\"False\">
</OBJECT></div>
</BODY>
</HTML>
