Moin!
Zurück zu deinem Problem:
Du öffnest ein Popup-Fenster und lädst statt einer HTML-Seite ein Flash-Object in dieses Fenster. Unter Mozilla läßt sich das Fenster mit deinem Script auch wieder schließen, Microsoft weigert sich. Grund: Windows eben ...
Du kannst diese Hartnäckigkeit des IE umgehen, indem du eine weitere kleine HTML-Datei anlegst, ich habe sie mal "musike.html" genannt.
Der Name spielt aber keine Rolle, wenn der Link stimmt (ich habe das Script von einer anderen Seite geklaut, es paßt zufällig auch wenn der Typ nicht richtig ist):
<html>
<head>
<title></title>
</head>
<body style="margin:0px">
<object name=popupvideo id=popupvideo classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">
<PARAM NAME="URL" VALUE="http://www.dan-miller-musicworks.com/mysound.swf">
<PARAM NAME="ShowControls" VALUE="false">
<PARAM NAME="AutoStart" VALUE="TRUE">
<PARAM NAME="AnimationAtStart" VALUE="FALSE">
<PARAM NAME="TransparentAtStart" VALUE="TRUE">
<PARAM NAME="ShowStatusbar" VALUE="TRUE">
<PARAM NAME="enableContextMenu" VALUE="TRUE">
<PARAM NAME="AllowChangeDisplaySize" VALUE="TRUE">
<PARAM NAME="AutoSize" VALUE="TRUE">
<PARAM NAME="fullScreen" VALUE="FALSE">
<embed src="http://www.dan-miller-musicworks.com/mysound.swf" type='video/x-ms-asf-plugin' width="320" height="285" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" autostart="1" showcontrols="0" animationatstart="0" transparentatstart="1" AllowChangeDisplaySize="1" AutoSize="1" DisplaySize="2" enableContextMenu="0" windowless="1" ShowStatusBar="0" vspace="0" hspace="0" border="0" name="popmusik" fullScreen="0">
</embed>
</object>
</body>
</html>
Alles anzeigen
Speicher diesen Quelltext mal als "musike.html" in dein Verzeichnis.
Jetzt mußt du nur noch das aufrufende Script anpasen:
<html>
<head>
<title></title>
<script type="text/javascript" language="JavaScript">
<!--
function music()
{
var breite=100;
var hoehe=30;
var positionX=0;
var positionY=0;
pop=window.open('','music','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=0,width='+breite+',height='+hoehe+',top=10000,left=10000');
pop.resizeTo(breite,hoehe);
pop.moveTo(positionX,positionY);
pop.location= "musike.html";
}
//-->
</script>
</head>
<body onUnload="pop.close()">
<table border="1" cellspacing="0" cellpadding="0" width="200">
<tr>
<td>[url='javascript:music()']Musik an[/url]</td>
<td>[url='javascript:pop.close()']Musik aus[/url]</td>
</tr>
</table>
</body>
</html>
Alles anzeigen
Voila!
G.a.d.M.
Ronald